Page 1 of 1

Help with PCA9685

Posted: Thu Jul 25, 2019 8:11 pm
by javikistan
Hey! I recently purchased this controller because I needed to control 8 servos, but now I'm wondering if I can use the rest of the pins to read from other kinds of sensors (in my case the would be IR sensors).

I'm working on a DEVKIT V1 with Arduino framework (because I'm more used to) but I can't come up with a solution. I know you can work with leds and such, but I would need to execute a digitalRead().
Someone has more experience?

Re: Help with PCA9685

Posted: Thu Jul 25, 2019 8:28 pm
by JeremyH
I'm pretty sure the pins on the PCA9685 can only be used for outputs.

Just scanned the datasheet again and didn't see anything.

I have used MCP23017 before to expand GPIO. Or MCP3008 for ADC.

Hope this helps.

Thanks,
Jeremy H

Re: Help with PCA9685

Posted: Fri Jul 26, 2019 11:43 am
by javikistan
Yeah at least I can discard the possibilty. What Im going to try next is to use the v+ and gnd pin of 4pins of the controller yo power supply my sensors but connect them directly to my esp32