View Full Version : How to use PCA9532 led dimmer with basic stamp???
05-11-2006, 04:06 PM
My english is not good. http://forums.parallax.com/images/smilies/sad.gif
I need use PCA9532 (http://www.semiconductors.philips.com/pip/PCA9532BS.html) to control some LED with with basic stamp. I have BS2p24-IC connected to PCA9532 via I2C bus and use "I2COUT " command in program code, but it not work... http://forums.parallax.com/images/smilies/sad.gif I'm in big stress, because I must finish this project tomorrow.
Please, help me somebody
Thanks a lot
05-11-2006, 04:22 PM
It would be real helpful if you showed us the program code that you are using now, so we can help you to correct it.
05-11-2006, 05:36 PM
Two other things ocurred to me as I was waiting for your response. However, as regards that response, please also mention what the actual problem is - "it not work" doesn't tell us much http://forums.parallax.com/images/smilies/smile.gif
I trust you are aware that there are only 2 permissable sets of pin ports that can be used to access I2C devices with the BS2p series of PBASIC Stamps. You may either:
Specify 0 in the first parameter and then use pins 0 and 1 (SDA, SCL)
Specify 8 in the first parameter and then use pins 8 and 9 (SDA, SCL)
and no others. Additionally whichever pair of pins you use, each will need to have a 4.7K pull-up resistor on it (SDA and SCL).
05-11-2006, 05:51 PM
I was fix it, I'm so stupid, very stupid http://forums.parallax.com/images/smilies/tongue.gif It was broken SDA cable :) hmm. osciloscope is very usefull :)
But very very thanks for your interest, have a nice day... http://forums.parallax.com/images/smilies/smile.gif
PS: I have always stupid problems like this (broken cable, bad connections... )