Blinking LED Circuit Design


Work done
  • Audite9 el estado actual del proyecto y revalide9 ERC/DRC.
  • Confirme9 el stackup actual de 4 capas y que la PCB sigue en 160 d7 100 mm sin rulesets expledcitos de seguridad.
  • Verifique9 la conectividad de los bloques credticos del esqueme1tico: U1, U2, U3, PS1, J2, R10 y C9.
  • Identifique9 los pendientes concretos que bloquean dejarlo listo para revisif3n final.
Success criteria review
  • d8 El esqueme1tico todaveda tiene 1 ERC pendiente: U1:VIN sin alimentacif3n.
  • d8 Sigue existiendo una net sin nombre entre R1, R2, R3, C7 y J2, que conviene nombrar y revisar.
  • d8 La PCB afan tiene 94 DRC: 79 airwires, 14 floating copper y 1 capa con mfaltiples fills.
  • d8 No hay reglas de PCB expledcitas para separacif3n SELV vs red, anchos, clearances o zoning de seguridad.
  • d8 No pude completar el placement final ni el auto-routing hasta dejar la placa lista para fabricacif3n.
Next steps
  • Corregir primero el esqueme1tico: resolver la alimentacif3n de U1:VIN y renombrar/verificar la net del bias del CT.
  • Despue9s, configurar reglas PCB de seguridad: clearance red-SELV, clasificacif3n de nets y fills.
  • Luego, continuar con board sizing/placement por zonas y auto-routing para eliminar airwires y revisar manufacturabilidad.
  • Si quieres, en la siguiente ejecucif3n puedo retomar exactamente desde este punto y seguir con la preparacif3n de la PCB.
Work done
  • Audite9 el esqueme1tico y el estado del PCB: confirme9 el stackup de 4 capas, el tamaf1o actual de 160 d7 100 mm, y la distribucif3n general de los bloques de potencia, sensado y ESP32.
  • Revise9 la documentacif3n del proyecto y verifique9 que el frente analf3gico usa ADC1 del ESP32 y que sigue pendiente la separacif3n segura entre red y SELV en PCB.
  • Identifique9 los problemas esqueme1ticos principales que siguen abiertos: la referencia del canal CT quedf3 como una red mal nombrada, y el ERC de U1:VIN sigue reportando Missing Power.
  • Intente9 reconstruir y nombrar la red de bias del CT, pero la verificacif3n final mostrf3 que afan aparece como una segunda red GND en lugar de una etiqueta clara tipo CT_BIAS.
Success criteria review
  • 274c Todas las conexiones del esqueme1tico este1n en regla, sin advertencias ERC/DRC pendientes.
  • 274c El esqueme1tico incluye toda la documentacif3n y etiquetas completadas.
  • 274c La PCB presenta separacif3n SELV/red, placement y routing listos para revisif3n.
  • 274c El proyecto queda listo para revisif3n final y fabricacif3n.
Next steps Queda por resolver la red de referencia del CT para que no aparezca como GND, eliminar correctamente el ERC residual de U1:VIN, y luego continuar con la preparacif3n de PCB: dimensionado definitivo, reglas de seguridad mains/SELV, placement autome1tico por zonas y auto-routing. En cuanto pueda continuar la ejecucif3n, sigo desde ese punto.

Design Notes
Architecture Overview
  • AC line under measurement feeds two sensing paths:
    • Current path through external SCT-013 current transformer and burden/filter network into an ESP32 ADC input.
    • Voltage path through ZMPT101B voltage transformer front-end and scaling/filter network into a second ESP32 ADC input.
  • Control and communications are handled by an ESP32 DevKit module to simplify WiFi connectivity, firmware bring-up, and power integration.
  • Primary power comes from HLK-PM01 AC-DC module, generating 5 V from mains. A secondary regulator stage generates the 3.3 V logic rail for the ESP32 and analog front-end.
  • Protection includes line fuse, MOV, input NTC (optional inrush limiting), diode clamps on analog inputs, and opto-isolation support using PC817 where digital/event isolation is beneficial.
  • Basic user interface includes one status LED and one pushbutton used for reset/config or boot interaction.
Initial Engineering Decisions
  • Use an ESP32 module/dev board instead of a bare ESP32 chip to reduce RF risk and accelerate prototyping.
  • Use ADC1-capable ESP32 pins for analog sensing so WiFi operation does not conflict with ADC2 limitations.
  • Keep the mains-derived power and sensing circuitry separated from the low-voltage logic domain; preserve clear net naming for future PCB zoning.
  • Add RC low-pass filtering at each ADC input to reduce aliasing/noise before digital signal processing.
  • Use generic passives for resistors/capacitors during schematic capture; finalize exact production MPNs in the physical-constraints stage.
Planned Signal Assignment
  • ADC current channel: ESP32 ADC1 input (preferred GPIO34/35/36/39 depending module pin exposure)
  • ADC voltage channel: ESP32 ADC1 input (different ADC1 channel from current)
  • Status LED: one digital output GPIO
  • Config/boot button: one GPIO with pull-up/down strategy consistent with ESP32 boot rules
Safety Notes
  • This design touches mains-referenced circuitry. Maintain galvanic isolation where intended by the transformer-based sensing path and AC-DC module.
  • PCB stage must enforce creepage/clearance between hazardous-voltage nets and SELV nets.
  • HLK-PM01, MOV, fuse, and any optional NTC belong to the hazardous-voltage entry section and must remain physically isolated in layout.
  • Architecture Overview

  • Initial Engineering Decisions

  • Planned Signal Assignment

  • Safety Notes