Low-Power Sensor Node Design


So 1 10UF capacitor, 1 100NF capacitor, 1 PC817B optocoupler, 1 1N4148 diode
Yes — for the minimum add-on parts, that list is reasonable:
Minimum extra parts

Table


QtyPartRecommendation
1Generic Capacitor10 µF on the 5 V rail
1Generic Capacitor100 nF on the 5 V rail
1U1PC817B is a good choice
11N4148relay flyback diode
One correction
Your current design already has D1 as an D1. That can work as the flyback diode too.
So you have two valid options:
  • Buy 1x 1N4148 and use that for the relay diode
  • Or keep using D1 = D1 if you already have it
Simplest answer
If you’re ordering today, I’d say:
  • 1x 10 µF capacitor
  • 1x 100 nF capacitor
  • 1x PC817B
  • 1x flyback diode: either 1N4148 or D1
If you want, I can give you the exact placement for those two capacitors next.
Find exact parts
Choose package sizes
Add pull-up resistor

Waiting for input


Schematic of ESP32 Smart Plug Modular Power Hub
ESP1
Q1
D1
PS1
Schematic Not Placed

The schematic has not been placed. Flux can arrange symbols and draw wires to be more readable. This takes about 10–60 mins.

ESP32 Smart Plug Modular Power Hub