What We Will Build
A smart home system that controls lights, fans, and appliances via a mobile app — powered by ESP32 and Blynk IoT platform.
Components Required
- ESP32 board
- 4-channel relay module
- Jumper wires
- Blynk app (Android/iOS)
Step 1: Set Up Blynk
Install Blynk app, create a new template, add widgets (buttons), and copy your Auth Token.
Step 2: Wire the Hardware
Connect relay IN pins to ESP32 GPIOs (e.g. GPIO 23, 22, 21, 19). Power the relay module with 5V.
Step 3: Upload the Code
Install Blynk library in Arduino IDE, paste your Auth Token, WiFi credentials, and upload.
Step 4: Test
Open the app and tap buttons — your relays should click instantly.
Safety Note
Always ensure proper insulation when working with AC appliances. Consult a professional electrician for high-voltage wiring.