Please create a schematic diagram for an industrial control system based on an ESP32 Development Board. Connect the components using the exact pin assignment specified below:
- CORE MICROCONTROLLER:
- Use an ESP32 DevKit NodeMCU board.
- Connect GND to a common Ground rail.
- Connect 5V/VIN to a +5V VCC power rail.
- SENSORS:
- Ultrasonic Sensor (HC-SR04): Connect Trig to ESP32 GPIO 26, Echo to ESP32 GPIO 27, VCC to 5V, and GND to GND.
- Load Cell Amplifier (HX711 Module): Connect DOUT (Data) to ESP32 GPIO 4, PD_SCK (Clock) to ESP32 GPIO 2, VCC to 5V, and GND to GND.
- ACTUATORS & RELAYS (Driven through NPN transistors or optocouplers if needed):
- Valve 1 / Main Inlet (pinValvulaEntrada): Connect control input to ESP32 GPIO 32.
- Valve 2 / Overflow (pinExceso): Connect control input to ESP32 GPIO 33.
- Valve 3 / Drain (pinDesague): Connect control input to ESP32 GPIO 13.
- INDICATORS & PERIPHERALS:
- Active Buzzer (pinBuzzer): Connect positive control pin to ESP32 GPIO 21 and negative to GND.
- LED Wait (ledEspera): Connect anode through a 220-ohm resistor to ESP32 GPIO 22, and cathode to GND.
- LED Rest (ledReposo): Connect anode through a 220-ohm resistor to ESP32 GPIO 25, and cathode to GND.
- SPI TFT Display (ST7735): Connect CS to ESP32 GPIO 5, Reset to ESP32 GPIO 16, and DC/RS to ESP32 GPIO 17.
Please place the components neatly on the canvas, route all the wiring nets cleanly according to these pins, and label the nets appropriately based on their functions.