- This topic has 4 replies, 3 voices, and was last updated 3 years, 4 months ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › PCF8574 i2c digital I/O expander › PCF8574-transistor base switch
Tagged: Arduino, npn, pcf8574, transistor
Hi @xreef,
Thank you for this great library and all the effort you did.
I am having difficulties to drive a transistor using the PCF8574 GPIO as a basic switch. My objective is to turn on and off audio lines using the bjt driven by the expender.
I would like to request for sample/example schematic or circuit you use to connect a transistor to the expander.
Thank you in advance
Hi tsctrl,
here a schema with a simple npn transistor to light a led.
Bye Renzo
Hi, this works fine with an LED but I’m having trouble driving a 12V motor using the npn as a switch to complete the ground. Any idea why this would happen?
Hi Celeb10,
I think the transistor isn’t sufficient to control a 12v motor, you need more ampere, try to use a MOSFET.
Bye Renzo
thanks Bye Renzo
More
Just like a well-organized workbench, this website uses cookies to function properly and efficiently.
🛠️ The Essentials (Necessary): Some cookies are categorized as necessary and are stored on your browser because they are critical for the basic working of the site.
📊 The Analytics (Third-party): We also use third-party cookies to help us analyze traffic and understand which projects you like the most. These are stored only if you give us the green light.
You can choose to opt-out, but keep in mind that disabling them might make the site experience a bit less "smooth".
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
