Help with A/D and photosensors.
Posted: Tue Aug 06, 2024 6:27 pm
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.