Circuit to pass PWM
Posted: Tue Sep 23, 2025 11:31 pm
Hey y’all. I am designing a game board with some LED pieces. When a player places a piece on the board the ESP32 should sense its presence and begin sending PWM to it. If no piece is present the PWM signal should pass to the next space. Here’s my circuit idea.

Pres S1 (presence sensor) is wired to a multiplexer and a logic lever shifter, then to the GPIO.
PWM1 comes from the microcontroller.
PWM2 routes to the next board space.
The game piece has a magnet to trigger the SPDT reed switch.
After assembling on a breadboard, dowsntream pieces do not receive PWM. It’s possible that the PWM signal flows through both the transistor’s emitter and the LED data out. (Gonna borrow an oscilloscope to verify.)
Are there any glaring mistakes with this idea? Is there a better way to do it?
tia

Pres S1 (presence sensor) is wired to a multiplexer and a logic lever shifter, then to the GPIO.
PWM1 comes from the microcontroller.
PWM2 routes to the next board space.
The game piece has a magnet to trigger the SPDT reed switch.
After assembling on a breadboard, dowsntream pieces do not receive PWM. It’s possible that the PWM signal flows through both the transistor’s emitter and the LED data out. (Gonna borrow an oscilloscope to verify.)
Are there any glaring mistakes with this idea? Is there a better way to do it?
tia