Pages: [1]   Go Down
Author Topic: i2c expander and LEDs  (Read 859 times)
0 Members and 1 Guest are viewing this topic.
New York City, NY
Offline Offline
Full Member
***
Karma: 0
Posts: 101
Arduino Rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all, I trying to control 16 LED's using SFE PCF8575c.  I was able to test the chip using this example    in which the LEDs are turned HIGH/LOW in sequence from LSB to MSB. I wired the 8575c breakout board as shown in the example however the LEDs are all very very dim. I can see them flickering so I know the code and wiring works. I believe the issue is the chip
Quote
PCF8575 in source mode can't provide enough current.
and my wiring is in
Quote
"sink" mode (5v -> LED -> PCF8575 pin)
. What can I do to provide more current to the LEDs. I read somewhere perhaps a PNP transistor. I also tried putting a 330ohm resistor on each LED pin (i.e 8575 i/o pins) but that did little to help. Any ideas?
Logged

================================
http://twit.tv/floss61
Think different
Think UbuntuStudio
============================

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26344
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

http://www.ti.com/lit/ds/symlink/pcf8575.pdf
From the datasheet, looks like the part really only sinks current, not sources it.
I would say you'd want to send a 0 to the pin that you want to turn on, with resistor from 5V to anode, and cathode to the pin.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

New York City, NY
Offline Offline
Full Member
***
Karma: 0
Posts: 101
Arduino Rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks CrossRoads, I'll give that a try. Just to be clear, The part I'm using http://www.sparkfun.com/products/8130 is the PCF8575c http://www.ti.com/lit/ds/symlink/pcf8575c.pdf which as I understand is slightly different from the 8575 used in the demo and the datasheet you mentioned.

Quote
- Quasi output: upper transistor is on for half
a clock cycle and then held up by a weak
current source (25-mA sink)

Quote
Quasi Output (Weak Current Source)

PCF8575/C 16-bit with Interrupt
« Last Edit: April 22, 2012, 10:20:20 pm by Pitchoilcan » Logged

================================
http://twit.tv/floss61
Think different
Think UbuntuStudio
============================

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 518
Posts: 26344
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Spec'ed the same:

P00, P-port input/output. Open-drain design structure. Connect to VCC through a pullup resistor.

So Vcc to Resistor to LED Anode, Cathode to Pxx.  Low = LED on.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: