-->
Page 1 of 1

Source more current for weak high output PCF8574A

PostPosted: Tue Nov 13, 2018 10:27 am
by Maximize0987
Hey guys I have a PCF8574A connected to a esp8266. it is a 8 port gpio extender. I read the specs wrong thinking it could output high 10ma. It can only output 100ua. I am still hoping to make this work. Can someone help with what I need transistor, mosfet, darlington trans. I need about 2.5ma to signal this relay. I am brand new to transistors and not sure how to make it work. Currently I have 2n2222 on hand.

Thanks for your help!

Re: Source more current for weak high output PCF8574A

PostPosted: Thu Nov 15, 2018 5:25 am
by btidey
Depends a bit on what voltage level high you need.

If you can tolerate the Vd - 0.6V (e.g. 2.7V) then you can use your 2n2222 in a darlington config; Collector to Vd, Base to PCF8547A pin, Emitter to load.

If you want maximum voltage high (e.g. 3.3V) then use a p-channel Mosfet (e.g. AO3401). Source to Vd, Gate to PCF8547A pin, Drain to load. Note that this will invert the sense of the logic. High means off. That might be good anyway as this would be the default PCF8547A power up state.

Personally I prefer Mosfets in switching applications.

Re: Source more current for weak high output PCF8574A

PostPosted: Thu Nov 15, 2018 8:09 am
by rudy
I don't know what you are trying to drive (other than needing 2.5mA) but you can put an external pull up resistor on the port pin. For example, a 220 ohm resistor. This would be enough to drive most optocouplers. (led current) But if you need current plus a higher voltage then you would need something active.