Connected air-conditioner remote of project Yelle
Yelle is a project developed in Fikrimuhal Head Quarters. It allows the team to control air-conditioning system via slack messages.
This program runs on chip esp8266 and with the help of Arduino core for esp8266, it's developed in Arduino environment.
yelle-remote currently runs in NodeMCU which is an esp8266 based development board. However it's supposed to run in other esp8266 boards as well.
To run the code you should follow these steps:
You can download the Arduino IDE to your computer from this link: https://www.arduino.cc/en/Main/Software
The easiest way is to use Boards Manager. You can follow these instructions the install it: https://github.com/esp8266/Arduino#installing-with-boards-manager
This library provides a very easy to use interface to receive and send infrared waves via your ESP chip. It also has protocol implementations and command mappings for lots of brands.
So download this library and add to your Arduino sketch using Library Manager or any method you want. You can follow this instruction set in case you have trouble adding the library: https://www.arduino.cc/en/Guide/Libraries
Create a file named config.h and put it beside of yelle-remote.ino. This file should include the following lines:
#define WIFI_SSID "your_ssid"
#define WIFI_PASS "your_password"
#define SERVER_NAME "your.domain.com"
#define SERVER_PORT "80"
Select your board, port and do other configuration. Now, you should be ready to go with yelle-remote!
- NodeMCU v1.0
- IR LED (SB-5010IRB-CT) x2
- General purpose transistor (NPN)
- 10R Resistor (could differ according to transistor and IR LED of your choice)
- Power adapter (or any kind of 5V power source)
- Breadboard, jumpers, cables, etc.
Here is the wiring scheme of the hardware:
Please note that Vcc is connected to NodeMCU's Vin and GND in emitter of the transistor is connected to NodeMCU's GND. I kept it this way to make the scheme easy on the eye.
Node mcu is powered via a usb power adapter.