Optional Hardware
Every exercise runs in the Wokwi simulator, so no hardware is needed. Schools that want to build the circuit for real need only these parts — one set per pair of students.
Board and basic equipment
- 1 pcsESP32 DevKit (ESP32-DevKitC V4 or similar)3.3V safe
Its GPIO pins use 3.3V logic and are not 5V tolerant. Power the sensors from the 3V3 pin.
- 1 pcsUSB cable (data capable; micro-USB or USB-C depending on the board)3.3V safe
Charge-only cables carry no data — if the board does not show up on the computer, try another cable first.
- 1 pcsBreadboard (830 tie points)3.3V safe
The ESP32 DevKit is wide; use a full-size breadboard so that free rows remain on both sides.
- 1 pcs
Sensors
Actuators and indicators
- 1 pcs5 mm red LED3.3V safe
The alarm lamp. Long leg (anode) to the resistor, short leg (cathode) to GND.
- 1 pcs5V 1-channel relay moduleCaution
Switches the cooling fan. Connect VCC to the 5V pin. Most 5V relay modules work with the ESP32’s 3.3V signal, but some do not trigger — then use a 3.3V-compatible module or a transistor driver. NEVER switch mains voltage (230V) in class.
- 1 pcs5 mm yellow LED3.3V safe(optional)
Only for the early-warning task in Exercise 1 (GPIO 4, with its own 220 Ω resistor).
Used in exercises: #1
Passive components
- 1 pcs10 kΩ resistor3.3V safe(optional)
Only for a bare 4-pin DHT22: pull-up between the data line and 3V3. A 3-pin DHT22 module has one on board; not needed in Wokwi.
Used in exercises: #1
- 1 pcs10 kΩ potentiometer3.3V safe
Stands in for the machine’s vibration level. Outer legs to 3V3 and GND — NOT 5V — middle leg to GPIO 34.
- 1 pcs220 Ω resistor3.3V safe
Limits the LED current. At 3.3V it gives about 5–6 mA — bright enough and safe for the pin.
