Make IoT-based Cadio Home Automation using ESP32 Google Assistant. Control relays with voice commands & switches. (No WiFi + EEPROM)
Required Components:
- ESP32 Devkit V1.
- 4-channel 5V SPDT Relay Module.
- DHT11 temperature sensor
- Switches
Circuit of the ESP32 Home Automation System
The circuit is very simple, I have used D23, D22, D21 & D19 GPIO to control the 4-channel relay module.
And the GPIO D13, D12, D14 & D27 are connected with switches to control the relay module manually.
The DHT11 sensor is connected to RX2 (GPIO16) and the WiFI LED is connected with the D15.
I have used a 5V 5Amp mobile charger to supply the circuit.
Please take proper safety precautions while connecting the AC appliances.
Tutorial video on ESP32 Cadio Home Automation
During this Internet of Things tutorial video, I covered the following topics:
- Quick demo on the Cadio home automation using ESP32.
- Explained the circuit diagram of the ESP32 IoT project.
- How to download Cadio firmware for ESP32.
- Steps to configure the Cadio home automation app.
- Steps to connect Google Home with the Cadio.
Configure ESP32 with Cadio Firmware
Upload the Cadio Firmware to ESP32
Please refer to the following article to upload the Cadio Firmware to ESP32.
Steps to upload Cadio Firmware to ESP32
Now reset the ESP32 and press the BOOT button for 5 seconds to go to config mode. In config mode, the inbuilt blue LED will start blinking.
Configure ESP32 using the Cadio app
First, install the Cadio Home Automation app from Google Play Store or App Store, and create an account in Cadio.
- Open the Cadio app, tap on the 3-dash icon, and select Configuration.
- Turn Off mobile data and connect the “CADIO” hotspot created by the ESP32.
- Select Relay Mode: “ACTIVE LOW”.
- Now enter the GPIO pins for Indicator LEDs and Devices as per the circuit. Then tap on the tick icon (in the top right corner).
- Select the WiFi Name and enter the WiFi Password. Also, enter a unique unit name and tap on the tick icon.
- Wait for some time the dashboard will appear automatically.
Change Device Names & Sensor Type in the Cadio app
- You have to long press on the device.
- Now tap on “Settings” to open the setting page.
- Give a Device name and select the Device icon. Then tap on the tick icon to exit. In a similar way change the device name for all the devices.
- Long press on the DHT sensor icon and go to “Settings”.
- Select the Sensor type DHT11 and exit.
Now connect the ESP32 to the circuit.
PCB for this IoT Project using ESP32
You can also use the following PCB for this home automation project.
If the Wifi is available, the ESP32 will automatically connect and the wifi LED will turn on.
You can control the the appliance from Cadio app from anywhere in the world. You can also tap on the MIC icon and control the devices with voice commands.
You can always control the appliances with manual switches. If the ESP32 is connected with WiFi, then you can monitor the real-time feedback in the Cadio Home Automation app.
If there is no internet, you can still control the relays with switches.
Control Appliances with Google Assistant
First, you have to connect the Cadio Home Automation app with Google Home.
After that, you can also control the appliances with Google Assistant.