ESP32 Smart City Controller


Created 11 project docs

Project Specification — ESP32 Smart City Controller

View Document

Status: Review ESP32 DevKitC 38-pin carrier PCB for a smart-city demonstration with distance sensing, servo actuation, sound/sensitivity ana...

Power Budget — ESP32 Smart City Controller

View Document

| Rail | Load | Typical | Peak / Design Case | Basis | |---|---|---:|---:|---|

Firmware Starter — ESP32 DevKitC

View Document

MCU board: ESP32 DevKitC 38-pin / esp32dev Framework: Arduino

Board Bring-Up Plan — ESP32 Smart City Controller

View Document

Current-limited 5 V bench supply, multimeter, oscilloscope, USB cable, known HC-SR04, known servo, microphone module, 10 kΩ potentiometer, a...
Show 7 More
Created and verified the complete ESP32 Smart City Controller schematic, including HC-SR04 level shifting, servo stabilization, analog inputs, and six LED channels. Documentation: Project Specification, Power Budget, Firmware Starter, and Bring-Up Plan.
  • Open item: ERC reports U1:VP as an unpowered supply due to an incorrect library pin classification; VP is actually unused GPIO36 and is correctly marked no-connect.
  • Next: confirm the servo model/stall current, then configure the board and place components with antenna keepout and wide 5 V/ground paths.
hay un capacitor que no esta donde deveria estar ponlo en su lugar
Claro — necesito que me indiques cuál capacitor y dónde debería ir.
Puedes responder con algo como:
  • “C1 debe ir junto al conector del servo J3”
  • “C3 debe ir cerca del pin 5V del ESP32”
  • “El capacitor cerca de la esquina inferior derecha debe ir junto a U1”
Si puedes, selecciona el capacitor en Flux o dime su designador (C1, C2, C3, C4 o C5) y lo muevo a su lugar.
ya lo tengo seleccionado
Perfecto, revisaré el componente seleccionado y lo recolocaré donde corresponde según su función en el circuito.
Listo. Moví C1 junto al conector del servo J3, manteniendo el resto de los componentes en sus posiciones. Verifiqué que quedó dentro de la placa y sin solapamientos.
Revisar, enrutar y verificar
Revisar colocación completa
Enrutar placa
Ejecutar DRC
Revisar polaridad

J10
J8
R4
Resistance
220Ω
C3
Capacitance
47uF
R3
Resistance
220Ω
J7
R6
Resistance
220Ω
J11
J9
R7
Resistance
10kΩ
R8
Resistance
18kΩ
C4
Capacitance
100nF
R1
Resistance
220Ω
C1
Capacitance
470uF
R2
Resistance
220Ω
R5
Resistance
220Ω
C5
Capacitance
100nF
C2
Capacitance
100nF
R9
Resistance
470Ω
R10
Resistance
10kΩ
J6
R11
Resistance
10kΩ
J5
J1
J2
J4
J3
U1
Board Bring-Up Plan — ESP32 Smart City Controller
Prerequisites
  • Current-limited 5 V bench supply, multimeter, oscilloscope, USB cable, known HC-SR04, known servo, microphone module, 10 kΩ potentiometer, and six test LEDs.
  • Start with the servo disconnected.
  • C1/C3 polarity: P1 positive, P2 ground.
1. Visual Inspection
  • Verify U1 orientation and all connector pin-1 markings.
  • Check C1 and C3 polarity.
  • Check R7 = 10 kΩ and R8 = 18 kΩ.
  • Inspect 0603 solder joints and connector shorts.
2. Power Rail Verification

Table


RailSourceExpectedInitial Current LimitMeasure AtPass Criteria
5V_EXTJ1 PIN15.0 V100 mA, servo disconnectedU1 5V / J3 5v4.75–5.25 V, no heating
3V3U1 regulator3.3 Vincrease to 500 mA if normalJ4 pin 1 / J5 VCC3.20–3.40 V
  1. With power off, verify no short between J1 PIN1 and PIN2.
  2. Apply 5 V with 100 mA limit and servo disconnected.
  3. If normal, raise limit to 1 A and verify U1 boots.
  4. Verify C1/C3 do not warm or vent.
3. Critical Signals

Table


SignalExpected
GPIO12 / LED1_GPIO12Low during reset; normal output after firmware starts
SERVO_PWMLow during reset; 50 Hz pulses after servo initialization
US_ECHO_GPIO5Never above 3.3 V; approximately 3.2 V for a 5 V ECHO high
4. Connector Tests

Table


ConnectorPinout / Test
J1PIN1 5 V, PIN2 GND
J21 VCC, 2 TRIG, 3 ECHO, 4 GND
J3Named Gnd, 5v, Data terminals
J41 3V3, 2 microphone OUT, 3 GND
J5VCC 3V3, Output GPIO35, GND
J6–J11P1 active-high LED signal, P2 GND
5. Programming
  1. Disconnect J1 power unless the DevKit power-path behavior has been verified.
  2. Connect U1 onboard USB.
  3. Run pio run -t upload from the Firmware Starter project file.
  4. Open pio device monitor at 115200 baud.
6. Functional Validation
  • HC-SR04: measured distance should track a target from roughly 5–100 cm.
  • ECHO divider: scope GPIO5 and confirm high level below 3.3 V.
  • Microphone: ADC reading should vary with sound and stay between 0 and 4095.
  • Potentiometer: ADC reading should sweep approximately 0–4095.
  • LEDs: each J6–J11 channel should independently source a few milliamps through its 220 Ω resistor.
  • Servo: connect only after power checks; current-limit the supply initially to 1 A, then raise based on the servo datasheet. Confirm no ESP32 reset during motion.
  • Wi-Fi: verify connection or scan behavior and confirm ADC1 inputs continue operating.
7. Pass/Fail

Table


SectionResultNotes
Visual inspection[ ] Pass [ ] Fail
5 V rail[ ] Pass [ ] Fail
3.3 V rail[ ] Pass [ ] Fail
Programming[ ] Pass [ ] Fail
Sensors/ADC[ ] Pass [ ] Fail
LED channels[ ] Pass [ ] Fail
Servo under load[ ] Pass [ ] Fail
Wi-Fi[ ] Pass [ ] Fail
  • Prerequisites

  • 1. Visual Inspection

  • 2. Power Rail Verification

  • 3. Critical Signals

  • 4. Connector Tests

  • 5. Programming

  • 6. Functional Validation

  • 7. Pass/Fail