10 analog sensor, 74HC4067 adc mulplexer with esp32

219 views
Skip to first unread message

Dávid Pásztor

unread,
Jun 6, 2022, 12:06:23 PM6/6/22
to TasmotaUsers
Hi,

My new project is making a esp32 tasmota weather station with more analog sensor than esp32 can handle. I ordered a 74HC4067 adc mulplexer from aliexpress, but doesnt work.

Please help me:
How to wire the 74HC4067 adc mulplexer with esp32?
How to setup on the web ui?
How to configure the 16 analog ports?


Philip Knowles

unread,
Jun 6, 2022, 12:36:32 PM6/6/22
to Dávid Pásztor, TasmotaUsers

You’re a bit on your own here. Essentially it looks like you will need to use four GPIO as outputs to S0-S3 to select which analogue input to use then wait for the reading then send the result and then move to the next one. It would probably easier to do the control outside the ESP32 because of the slight delay in the outputs switching – send the MQTT for S)-S3 to select the analogue input then wait for confirmation that the outputs have switched then read the ADC. You might be able to do it with rules and/or Berry scripting. You will not be able to see the different readings in the UI unless you use scripting.

 

Good luck

 

Phil K

 

Sent from Mail for Windows

--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/0746d44c-dacc-4cc4-9a77-898cef3f027en%40googlegroups.com.

 

Andrew L

unread,
Jul 31, 2022, 6:11:17 PM7/31/22
to TasmotaUsers
gemu2015 wrote up a nice example script using the scripting feature of Tasmota that uses the multiplexer to get 16 analog values. Should be on the scripting recipes page in Docs. (Not Berry)
Reply all
Reply to author
Forward
0 new messages