- can send control signal to TV (Toshiba 32R1) and air conditioner (Fujitsu AS-AH402M) using ESP32 DevKitC and IR LED.
- can operate as a web server so that you can send commands from your smart phone
The project is built for VSCode with platformIO extension.
The OTA functionality is used to upload firmware and web front-end files in this example.
-
Clone this repository on a directory.
git clone https://github.com/shimmy-void/smart_remocon.git
-
Create a file to make configuration for wifi connection in
src/wifi_setting.hpp
and edit it as the following:const char* ssid = "<YOUR_WIFI_SSID>"; const char* password = "<YOUR_WIFI_PASSWORD>";
-
Assign a IP address for the ESP32 in your router.
In this example, a local IP address
192.168.1.101
is set for the ESP32. -
Edit platformio.ini to set the assigned IP address for the ESP32.
upload_port = <YOUR_ESP32_IP_ADDRESS>
-
Upload files of web contents (files in
data
folder) using OTA.Click the platformIO icon on the Activity Bar, and then click the following button:
PROJECT TASKS > Platform > Upload Filesystem Image OTA
-
Build the source code and upload the binary to the ESP32.
-
Open a browser and go to
192.168.1.101/
, then you will see the interface like the following image if the ESP32 could successfully connet to the Wifi and you could connect it.
-
TV
-
Air Conditioner
: Toggle Outside Quiet mode (this command is valid only when AC is turned off)
: Toggle Eco Fan mode (this command is valid only when AC is turned off)
: Turn Sterilization on (this command is valid only when AC is turned off)
- Enjoy it!
- IRremoteESP8266