Using Multiple SPST button with one ADC of Arduino

Hi all.
I want to create project for home automation where I will use ESP12F as Microcontroller. I am now short of input pins for electrical switches. So I need to create a switch pattern where one ADC pin will use for multiple input option like the picture below.

Remember the switch is SPST not PUSH switch. The picture like this

But, I could not figure out how to do this. A circuit diagram and programming part may be instructed. I have search many in WEB but could not find any solution. please help.

an example from this discussion (it's in French but I'm sure google translate can help you out)

Be careful, the maximum input value of the ESP8266 is only 1V.

Be careful, the maximum input value of the ESP8266

is only 1V.

Then how to decrease from 3.3. to 1 volt. Shall in use voltage divider network?

Let me first translate in English and inform your surely.

if you’re using the bare chip then indeed the ESP8266 ADC pin input voltage range is 0 to 1V.

If you use an ESP8266 development boards, most of them come with an built in voltage divider, so the input range is 0 to 3.3V

depends on what you ave

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.