Smart Home Setup Guide
Control lights, fans, AC units, and appliances from your phone. Set bedtime schedules, morning routines, and voice commands — all without buying expensive proprietary gadgets.
Overview
Turn any home into a smart home with ESP32 microcontrollers and Giantronic. No subscriptions, no proprietary hubs, no monthly fees — just open hardware and a powerful platform that puts you in control.
Giantronic lets you connect everyday appliances — lights, fans, air conditioners, door locks, and more — to ESP32 boards, then manage them from a web dashboard or mobile app. Set schedules so your morning starts automatically, create scenes that adjust your entire home with one tap, and use voice commands for hands-free control.
Lighting Control
Dim, schedule, and group lights room by room. Set warm tones at night and bright white in the morning.
Fan & AC
Automate fans and air conditioning based on time, temperature, or manual triggers.
Scenes
One-tap "Good Morning", "Movie Night", or "Leaving Home" modes that adjust everything at once.
Voice Control
Custom voice keywords that trigger scenes or individual devices through any assistant.
Hardware You Need
You don't need expensive proprietary gadgets. These affordable components are all you need to get started.
ESP32 DevKit
The brain of your smart home. ~$5 each, WiFi + Bluetooth, 34 GPIO pins. Get 1-2 per room depending on device count.
Relay Module
2/4/8 channel relay modules switch high-voltage appliances safely. ~$3-6. Use one channel per light or fan.
DHT22 Sensor
Temperature and humidity sensor for climate-aware automation. ~$3. Optional but great for AC scheduling.
Jumper Wires
Male-to-female and male-to-male jumper wires for connecting components. ~$2 for a bundle of 40.
5V Power Supply
USB charger or dedicated 5V power adapter for the ESP32. Use a quality supply for reliability.
Enclosures
3D-printed or purchased enclosures for a clean installation. Mount near each room's switch box.
Total cost per room: Around $15-25 for an ESP32 + relay module + wires. Compare that to $200+ for a single proprietary smart switch.
Wiring Guide
Connect your ESP32 to relay modules and sensors. Always disconnect power before wiring.
Relay Module Connection
Each relay channel controls one appliance. The ESP32 sends a low/high signal to the relay's IN pin, and the relay switches the high-voltage load.
ESP32 GPIO2 ──────→ Relay IN1 (Living Room Light) ESP32 GPIO4 ──────→ Relay IN2 (Bedroom Fan) ESP32 GPIO5 ──────→ Relay IN3 (AC Unit) ESP32 GND ──────→ Relay GND ESP32 5V ──────→ Relay VCC (or use external 5V)
DHT22 Sensor Connection
ESP32 GPIO15 ──────→ DHT22 DATA (with 10kΩ pull-up) ESP32 3.3V ──────→ DHT22 VCC ESP32 GND ──────→ DHT22 GND
Safety first: Relay modules switch mains voltage (110V/220V). If you're not comfortable with electrical wiring, have a qualified electrician handle the high-voltage connections. The ESP32 side is low-voltage (3.3V/5V) and safe to work with.
Pin Configuration
Configure each GPIO pin in the Giantronic dashboard to match your wiring setup.
| Pin Name | GPIO | Type | Mode | Description |
|---|---|---|---|---|
Living Room Light | 2 | Relay | Output | Main ceiling light in living room |
Bedroom Fan | 4 | Relay | Output | Ceiling fan in master bedroom |
AC Unit | 5 | Relay | Output | Air conditioner power relay |
DHT22 Sensor | 15 | DHT22 | Input | Temperature and humidity readings |
Kitchen Light | 16 | Relay | Output | Kitchen overhead light |
Night Light | 17 | Relay | Output | Hallway night light (5% dim via PWM) |
Setting Up Schedules
Automate your home so it runs itself. Set it once and forget it.
-
Morning Routine — 7:00 AM
Kitchen light ON, bedroom fan ON, AC set to 24°C. Start every day the same way without lifting a finger.
-
Day Mode — 9:00 AM
Living room light OFF (natural light), kitchen light OFF. Save energy during daylight hours.
-
Evening Mode — 6:00 PM
Living room light ON, bedroom fan ON, AC ON if temperature above 26°C. Comfortable evening without thinking about it.
-
Bedtime — 11:00 PM
All lights OFF except night light at 5%. Fan ON low. AC OFF. Wind down for sleep.
Repeat schedules: Set each schedule to repeat on specific days (e.g., "Mon,Tue,Wed,Thu,Fri" for workdays) or leave empty for one-time triggers.
Creating Scenes
Scenes let you control multiple devices with a single tap from the dashboard or mobile app.
Good Morning Scene
{
"name": "Good Morning",
"actions": [
{ "pin": "Living Room Light", "state": true },
{ "pin": "Kitchen Light", "state": true },
{ "pin": "Bedroom Fan", "state": true },
{ "pin": "AC Unit", "state": true }
]
}
Movie Night Scene
{
"name": "Movie Night",
"actions": [
{ "pin": "Living Room Light", "state": false },
{ "pin": "Night Light", "state": true, "level": 20 },
{ "pin": "Bedroom Fan", "state": true }
]
}
Leaving Home Scene
{
"name": "Leaving Home",
"actions": [
{ "pin": "Living Room Light", "state": false },
{ "pin": "Kitchen Light", "state": false },
{ "pin": "Bedroom Fan", "state": false },
{ "pin": "AC Unit", "state": false },
{ "pin": "Night Light", "state": false }
]
}
Voice Commands
Assign custom voice keywords to scenes and devices for hands-free control through any voice assistant.
{
"keyword": "good morning",
"turnOn": true,
"deviceType": "scene",
"language": "en",
"targets": [{ "scene": "Good Morning" }]
}
Giantronic stores voice keywords that work with any assistant — Google Home, Alexa, Siri, or custom setups. The keyword triggers the associated scene or device action when detected.
Energy Tips
Monitor and reduce your home's energy consumption with Giantronic's built-in tracking.
Per-Device Tracking
See exactly how much energy each light, fan, and appliance consumes. Identify the biggest power hogs.
Daily Reports
Get daily summaries showing peak usage times, total consumption, and cost estimates.
High Usage Alerts
Set thresholds to get notified when consumption exceeds expected levels. Catch wasteful devices early.
Pro tip: Schedule your AC to turn off 30 minutes before you usually leave, and back on 30 minutes before you return. This alone can save 15-20% on cooling costs.
Next Steps
Ready to set up your smart home? Here's where to go next.
Full Documentation
Complete platform docs — device pairing, pin config, API reference.
Mobile App
Android app setup — manage your home from your phone.
API Reference
REST API docs — build custom integrations and automations.