Help with A/D and photosensors.
Help with A/D and photosensors.
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.
-
- Posts: 9708
- Joined: Thu Nov 26, 2015 4:08 am
Re: Help with A/D and photosensors.
Hm, that mux should have worked fine. Can you show the circuit you used with that?
- jgustavoam
- Posts: 164
- Joined: Thu Feb 01, 2018 2:43 pm
- Location: Belo Horizonte , Brazil
- Contact:
Re: Help with A/D and photosensors.
Take a look to this tutorial:
https://tronixstuff.com/2013/08/05/part ... ltiplexer/
HC4067 Datsheet:
https://www.ti.com/lit/ds/symlink/cd74hc4067.pdf
https://tronixstuff.com/2013/08/05/part ... ltiplexer/
HC4067 Datsheet:
https://www.ti.com/lit/ds/symlink/cd74hc4067.pdf
Retired IBM Brasil
Electronic hobbyist since 1976.
Electronic hobbyist since 1976.
Who is online
Users browsing this forum: No registered users and 43 guests