PCF8574 vs PCF8591

Discussion specific to the intelligent brick, sensors, motors, and more.
Post Reply
achechin
Posts: 8
Joined: 04 Nov 2012, 03:38

PCF8574 vs PCF8591

Post by achechin »

Really simply question which still isn't clear to me.

What is the difference between PCF8574 and PCF8591? Please show it on examples rather than tell that one is digital IO other one is analog.

Thanks in advance!
Alex
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: PCF8574 vs PCF8591

Post by mattallen37 »

You are right, one in digital IO, and the other is analog. Out of these two ICs, I have only used the PCF8574, so the following about the PCF8591 is only based on what I know of the IC, not from personal experimentation with it.

PCF8574:
  • Write the lines low to sink current. << Drive LEDs etc. (BTW, it can sink, but not source current)
  • Write the lines high (float the IOs, but with pullups) and then read the IOs. << Good for reading switches etc.
PCF8591:
  • Read analog values (like from sensors). You could connect a POT, photoresistor/phototransistor, thermistor, etc.
  • Write analog value. This is only one channel. I can't think of a good beginners example for this.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
floppi
Posts: 48
Joined: 25 Jul 2012, 22:55

Re: PCF8574 vs PCF8591

Post by floppi »

Hi,

Here are some examples :

https://sourceforge.net/apps/phpbb/mind ... f=2&t=1584

https://sourceforge.net/apps/phpbb/mind ... 574#p14800

and recently I used a PCF8574 to drive a ULN2803 with some transistor to drive 4 DC motors with bidirectional control up to 500ma, I will soon post this.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest