Help with A/D and photosensors.

jopost
Posts: 1
Joined: Tue Aug 06, 2024 6:18 pm

Help with A/D and photosensors.

Postby jopost » 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.

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: Help with A/D and photosensors.

Postby ESP_Sprite » Wed Aug 07, 2024 3:37 am

Hm, that mux should have worked fine. Can you show the circuit you used with that?

User avatar
jgustavoam
Posts: 165
Joined: Thu Feb 01, 2018 2:43 pm
Location: Belo Horizonte , Brazil
Contact:

Re: Help with A/D and photosensors.

Postby jgustavoam » Fri Aug 09, 2024 3:28 am

Retired IBM Brasil
Electronic hobbyist since 1976.

Who is online

Users browsing this forum: No registered users and 149 guests