Page 1 of 1

Help with A/D and photosensors.

Posted: Tue Aug 06, 2024 6:27 pm
by jopost
Hello. I am trying to use 14 photosensors on an ESP32-WROOM-32D dev board from IOTcrazy, I dont have enough pins to have each photocell on their own pin. Is there a way to setup a matrix of photocells. Its for a custom pillbox that needs to detect light level changes when the cap opens. There is 14 total cells that need to be checked. GIPO pins 15,2,0,4 aren't available on this board for a/d readings. Im stuck with 10 pins. Ive tried a analog multiplexer as well however the readings were inconsistent compared to normally reading from the same pin. The analog mux I was using was the HC4067.

Re: Help with A/D and photosensors.

Posted: Wed Aug 07, 2024 3:37 am
by ESP_Sprite
Hm, that mux should have worked fine. Can you show the circuit you used with that?

Re: Help with A/D and photosensors.

Posted: Fri Aug 09, 2024 3:28 am
by jgustavoam