I'm hoping to use a PCA9685PW (16 channel PWM LED driver chip) to control some aquarium light I've made. Basically I want to use 4 channels of the chip so I can independently turn on and dim 4 sets of LEDS.
I've got a PCA9685PW chip on a breakout board, opened up the datasheet ( http://www.nxp.com/documents/data_sheet/PCA9685.pdf ) and it went completely over my head.. Can someone advise on the basics, like how to set the address (I think its set by grounding / supplying 6 pins ?).
In PicBASIC PRO I use the following to read the hours minutes and seconds from the DS1307 RTC chip
Code:
I2CREAD SDApin,SCLpin,$D0,$00,[RTCSec,RTCMin,RTCHour]
The first part is straight forward, and I guess I need to use a different address than $D0,$00 so as not to clash with the RTC chip, but what would I need to do to send the PWM variable to the correct LED channel etc on the PCA chip. I currently use two variables B_PWM and W_PWM which currently has a value of between 0 and 254. It's simple enough to change that to from a byte to word variable as the PCA chip has 4095 steps, but other than that I'm lost ! Any help with interpreting the datasheet would be welcolm
Bookmarks