A lightweight smart home project that allows you to control infrared-enabled devices—such as televisions, air conditioners, and robotic/vacuum cleaners—remotely using an ESP8266 microcontroller and a mobile application.
This project turns an ESP8266 board into a universal IR remote controller. By capturing the IR signals of your existing target devices and loading them onto the microcontroller, you can trigger IR commands over Wi-Fi via a custom mobile application.
- ESP8266 Board (e.g., NodeMCU V2/V3, WeMos D1 Mini)
- IR Transmitter LED (940nm IR LED)
- (Optional) NPN Transistor (e.g., 2N2222) or MOSFET module to boost IR LED range
- Resistor (100Ω - 220Ω depending on setup)
- Breadboard and Jumper Wires
Connect the IR transmitter LED to your ESP8266 as follows:
| IR LED Pin | ESP8266 Pin | Notes |
|---|---|---|
| Short Leg (Cathode) | GND | Ground connection |
| Long Leg (Anode) | D2 (GPIO4) | Data/Signal output pin |
Tip: If you need a longer range for your remote control signal, consider using a transistor circuit to drive higher current through the IR LED.
Before flashing the main code onto your ESP8266, you must capture the specific IR codes for your target device (TV, AC, vacuum, etc.):
- Use an IR Receiver Module (e.g., VS1838B) connected to your ESP8266.
- Load an IR receiver/decoder sketch in the Arduino IDE (using libraries like
IRremoteESP8266). - Press the buttons on your original remote control while monitoring the Serial Monitor to record the HEX/Protocol codes.
- Numerous tutorials and guides on capturing IR codes are available on YouTube and electronic forums.
- Open a new sketch in Arduino IDE.
- Install the IRremoteESP8266 library via Tools > Manage Libraries...
- Insert your recorded IR codes into the project sketch.
- Select your ESP8266 board model and COM port under Tools.
- Upload the code to your ESP8266.
📱 Mobil Uygulama Entegrasyonu
To control the IR transmitter remotely from your smartphone: IR vericiyi akıllı telefonunuzdan uzaktan kontrol etmek için:
If you are going to start using the application, send a request to celalce25@hotmail.com. Eğer uygulamaya başlayacaksanız celalce25@hotmail.com adresinden istekte bulunun. The application file (APK) will be sent to your email address. Uygulama (APK) mail adresinize gönderilecektir.
If you have questions, feedback, or need help creating the mobile application, please get in touch:
- Email: [celalce25@hotmail.com )
This project is open-source and available under.