Critics welcomed

Thread Starter

Circuit-Crafter96

Joined May 10, 2024
11
Looking for some feedback and constructive criticism on my latest board design. If you see anything, please let me know what i got right/wrong/ could've done differently.

Project description: Smart Light Switch: A PCB controlling a Wi-Fi-enabled light switch, allowing users to control lights remotely via a smartphone app.

1. Microcontroller (MCU):
  • A microcontroller with Wi-Fi capability, such as the ESP8266 or ESP32. These chips handle both the processing and the Wi-Fi communication.
2. Power Supply:
  • AC to DC Converter: Converts the mains AC voltage (e.g., 120V or 240V) to a DC voltage suitable for the microcontroller (typically 3.3V or 5V).
  • Voltage Regulator: Ensures a stable DC voltage to the MCU (e.g., an LDO or a buck converter).
3. Relay or Triac:
  • Relay: An electromechanical switch that controls the high voltage side (lights).
  • Triac: A semiconductor device used for switching and controlling the AC load.
4. Optocoupler:
  • Provides isolation between the low-voltage MCU circuit and the high-voltage AC circuit to protect the MCU.
5. Capacitors:
  • Decoupling Capacitors: Typically 0.1µF and 10µF capacitors near the power pins of the MCU for noise reduction.
  • Bulk Capacitors: Larger value capacitors for stabilizing power supply (e.g., 100µF).
6. Resistors:
  • Pull-up/Pull-down Resistors: Used for ensuring correct logic levels on inputs and outputs.
  • Current-Limiting Resistors: Typically used with LEDs or other components that need current regulation.
7. Diodes:
  • Flyback Diode: Protects the relay coil from voltage spikes.
  • Rectifier Diodes: If designing an onboard AC to DC converter.
8. LED Indicators:
  • Used to indicate the status of the switch (e.g., power on, Wi-Fi connected).
11. Connectors:
  • Screw Terminals: For connecting the high-voltage AC wiring.
  • Programming Header: For flashing the microcontroller during development.

Schematic:
1726531348900.png

1726531379852.png
1726531438073.png

Board:
1726532321640.png
 

jim_TX

Joined Jul 17, 2023
11
I would not have 120VAC on the board.
I would use one of the many AC-DC Power Bricks available - perhaps one that has a +5VDC output. Then just down-regulate that to your required +3.3V.

When you put 120VAC onto your board, you get into all sorts of issues - <shudder>
 

Thread Starter

Circuit-Crafter96

Joined May 10, 2024
11
I would not have 120VAC on the board.
I would use one of the many AC-DC Power Bricks available - perhaps one that has a +5VDC output. Then just down-regulate that to your required +3.3V.

When you put 120VAC onto your board, you get into all sorts of issues - <shudder>
Thanks I'll look into this. Appreciate the feedback
 

MaxHeadRoom

Joined Jul 18, 2013
30,657
Thread starter Similar threads Forum Replies Date
Elektrishun Marketplace 26
Wendy Off-Topic 34
Top