How to use PCA9532 led dimmer with basic stamp???
Koco86
Posts: 6
Hi everyone,
My english is not good.
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... I'm in big stress, because I must finish this project tomorrow.
Please, help me somebody
Thanks a lot
My english is not good.
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... I'm in big stress, because I must finish this project tomorrow.
Please, help me somebody
Thanks a lot
Comments
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.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
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
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)
OR
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).
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
I was fix it, I'm so stupid, very stupid It was broken SDA cable [noparse]:)[/noparse] hmm. osciloscope is very usefull [noparse]:)[/noparse]
But very very thanks for your interest, have a nice day...
PS: I have always stupid problems like this (broken cable, bad connections... )