Maker Pro
Maker Pro

Connecting 6 push buttons with ESP32 with 1 common pin

StealthRT

Sep 4, 2010
146
Joined
Sep 4, 2010
Messages
146
Hey all I have 6 buttons that have the following voltage:

enter image description here









I want to hook up a 4N25 to each one of these so I can use the ESP32 as a "virtual push" to each of these buttons. When the button is pressed the 3.2vdc goes to ground.

enter image description here







To minimize the amount of wire going to each one I have come up with the following:

enter image description here















Is it possible to just hook 1 of the buttons left/bottom pins to all of the 4N25 chips so that I don't have to run 2 wires per button? Or is there a better way of doing this that will minimize the amount of wires?

The buttons are connected to a TM1650 chip.
 

Bluejets

Oct 5, 2014
6,862
Joined
Oct 5, 2014
Messages
6,862
Adding to the above, looks to me like you are shorting out the 4n25 internal LED (ok...but) you have no current limit resistors.
Likewise for the open collector unless you intend to use software pullups.
All seems rather unnecessary....please supply a complete circuit diagram and the code. (no fritzing stuff thanks)
 

Delta Prime

Jul 29, 2020
1,807
Joined
Jul 29, 2020
Messages
1,807
Like the man said, circuit and code.
"Adding to the above, looks to me like. Your a cool cat
@Bluejets .
 
Top