Image 1 — 12 push buttons on a ESP32
Image 2 — 12 push buttons on a ESP32
Image 3 — 12 push buttons on a ESP32
▲ 13 r/esp32projects+1 crossposts

12 push buttons on a ESP32

Hi! For a sequencer project, I need to connect these 12 push buttons to an ESP32, using a Ground-to-pin configuration (or at least that's what I'm thinking about). Now the problem is that the Esp32 devkitv1 doesn't have enough pins capable of reading pish buttons ins. I think I have two options here, and I'd like to know which one you think it's best and why:

Option 1: use a series of different resistors, an connect all the push buttons to one analog pins (3v -> push buttons sequence -> analog pin), given the different resistors values, I should read different currents on each button and therefore know what is being pressed. This seems kinda long to do, and I'm concerned that I wouldn't be able to read multiple buttons being pushed at the same time correctly

Option 2: connect the buttons, keeping the ground-to-pin configuration, to a MCP23017 I2C GPIO extension module, which should be able to handle all of them. I never used this module, but I have a couple from a box of scavenged electronics I found a year ago.

If you have another idea in mind let me know :)

Thank you all in advance

u/fngr_funker — 10 days ago
▲ 2 r/Motors

ESP32 Transistor Switch board for washing machine pump motor

Hi! I am looking for a silent way to switch on/off some AC 220v Motors, with a Microcontroller like an ESP32. I am currently using a 4channel relay board, and it works fine, but relays make a little noise and I don't like it, I want the switching board to be silent.

The motors I am using are modded washing machine pump motors, as you can see in photo. They run on 220v AC, and absorb approximately 0,2A.

Does anyone know if there's some off-the-shelf transistor switch boards that can be operated with a ESP32?

If anyone is interested in the 3D printed parts I designed to mod this synchronous motor I'd be glad to share them :)

Thanks to whoever is gonna help 🌷🍀

u/fngr_funker — 2 months ago