Sense → Decide → Act: complete control systems with servos, fans, and relays
Go beyond reading sensors. This strand adds actuators — servos, fans, relays, and LEDs — so the ESP32 can take action based on sensor data. Build systems that sense the environment, make decisions, and respond automatically.
From sweeping a servo to building an automated climate control system.
Connect a servo to the ESP32. Write MicroPython to sweep from 0° to 180°. Understand PWM duty cycles and angle mapping.
Wire a DC fan through a MOSFET. Read a DHT22 sensor. When temperature exceeds a threshold, the fan turns on. Add hysteresis to prevent rapid switching.
Use two LDRs mounted either side of a servo-mounted panel. The servo adjusts angle to face the brighter light source. Links to the Solar Power strand.
Subscribe to MQTT topics from Node-RED. Build dashboard buttons and sliders that control servo angle and fan speed remotely from a phone.
Combine sensing and actuating: monitor temperature, humidity, and light. Automatically open vents (servo), run fans, and trigger LED grow lights. Full dashboard monitoring.
Use a servo to open a feeding hatch on a timer or via dashboard button. Add a weight sensor to track food levels. Send alerts when food is low.
Before you hand over to the next group: