I did a similar thing: interfaced four buttons with one analogue input. I considered using R-2R but decided that is only good for ICs where it is easier to make ratios of resistors than absolute values. Instead I used just 5 resistors, 1K, 2K, 3.9K and 8.2K from each switch and a single pull-up of 1K.
This is an incredible idea. Has it been set up for Esphome? (For one dimmer and its push switch.) It would be great for people with 3 core wire going to their light switch as we could then use a rotary encoder in place of the light switch wired to an Esp32 running Esphome in the attic connected to a dimmer module to control the room light without any rewiring. (I'm new to all of this and don't have the programming ability.)
I did a similar thing: interfaced four buttons with one analogue input. I considered using R-2R but decided that is only good for ICs where it is easier to make ratios of resistors than absolute values. Instead I used just 5 resistors, 1K, 2K, 3.9K and 8.2K from each switch and a single pull-up of 1K.
Clever and smart. Subscribed.
This is an incredible idea. Has it been set up for Esphome? (For one dimmer and its push switch.)
It would be great for people with 3 core wire going to their light switch as we could then use a rotary encoder in place of the light switch wired to an Esp32 running Esphome in the attic connected to a dimmer module to control the room light without any rewiring. (I'm new to all of this and don't have the programming ability.)
Why not just multiplex them for fewer pins still and fewer discretes too?