Hardware and pinout
Ports, GPIO numbers, buttons and LEDs of the EDEXTRON USB-JST V1.2 adapter with the ESP32-C3 Super Mini.
Mains safety
Relay modules can switch 220 V mains. Only wire mains if you are qualified. Use an enclosure, keep low-voltage and mains wiring apart, and never work on the wiring while mains is connected. Check that your relay module is rated for the voltage and current of your load.
The kit
- EDEXTRON USB-JST V1.2 adapter: connects the ESP32-C3 Super Mini to six JST connectors
- ESP32-C3 Super Mini: Wi-Fi microcontroller, powered and flashed through its USB-C port
- Relay modules (Relay 1 and Relay 2), an LDR light-sensor module, and optionally a push-button module
Port map
| Connector | Port | Supply | ESP32-C3 pin | Standard firmware |
|---|---|---|---|---|
| J1 | I2C | 5 V | SDA GPIO4, SCL GPIO5 | not used |
| J2 | UART | 5 V | TX GPIO21, RX GPIO20 | not used |
| J3 | GPIO A | 5 V | GPIO0 | Relay 1 |
| J4 | GPIO B | 5 V | GPIO1 | Relay 2 |
| J5 | GPIO C | 3V3 | GPIO3 | LDR light sensor (analog) |
| J6 | GPIO D | 3V3 | GPIO10 | free (optional button) |
On the Super Mini itself:
| Part | Pin | Use |
|---|---|---|
| Blue LED | GPIO8 | Status LED (lit when the pin is LOW) |
| BOOT button | GPIO9 | Setup hotspot (hold 5 s), factory reset (hold 15 s), download mode for flashing |
Signal levels
Every JST signal pin is 3.3 V. The "5V" or "3V3" label on a port is only the supply voltage for the module plugged into it. A relay module on a 5 V port is fine, because the ESP32 only drives that pin as an output. Never connect a sensor or button module that sends a 5 V signal back into a pin: it can damage the ESP32-C3. Put inputs on the 3V3 ports (GPIO C and GPIO D).
Relays
- The firmware expects relay modules that switch on when their input is HIGH (
RELAY_ACTIVE_HIGH true). If your relay is on when the dashboard says OFF, your module is active-LOW. SetRELAY_ACTIVE_HIGH falseininclude/config.hand build from source (see Flash the firmware). - The cloud shows two relays per board: Relay 1 (GPIO A) and Relay 2 (GPIO B).
- All relays start OFF at power-up. See Relay state and safety.
Buttons
- BOOT (on the Super Mini): hold for 5 s and release to open the Wi-Fi setup hotspot. Hold for 15 s and release to factory reset. Hold it while you plug in USB to enter download mode for flashing.
- Kit button (optional): the standard firmware ships with the kit button turned off (
PIN_BUTTON -1). To use it, plug the button module into GPIO D and build withPIN_BUTTON 10. A short press then toggles Relay 1, and a 5-second hold opens the setup hotspot. The kit button can never factory reset the board.
Status LED
| LED | Meaning |
|---|---|
| Fast blink | Setup hotspot EDEXTRON-XXXX is open |
| Slow blink (1 s) | Looking for Wi-Fi |
| Short blink every 3 s | Connected to Wi-Fi, running normally |
| Very fast flicker while a button is held | Release now to open the setup hotspot |
| Solid while BOOT is held | Release now to factory reset |
Power
Power the board through the Super Mini's USB-C port from a good 5 V supply. If the serial log shows reset reason ... brownout, the supply or cable is too weak, especially with both relays switched on.