Remote control is almost a standard accessory for most home applications, like TV, air conditioner and so on. Dozens of companies have released many different kinds of IR remote control products. Like airbox from haier.
Though remote control brings us leisure, when you really need it but have completely no clue where it is, or which one it is, you have every right to be pissed off. To solve the remote clutter, IKEA may tell you to buy a remote storage bag, but believing in a geek spirit as us, we would tell you to stack up a hardware and download an app so that you can integrate all your remote commands into one Android device. Sounds like no bother to track and find the correct remote?
Step 1 introduce
The hardware connection is simple enough:
Step 2 introduce
1) At the very beginning, prepare the library. Using git clone or just to download the zip.
2) Copy folder into arduino’s library path.
3) Open Arduino IDE and choose the BeaconIR_demoCode from the example DropDownList.
4) Upload it to Seeeduino.
Step 3 introduce
The panel needs to gain approval from Seeeduino before they talk via Bluetooth. That agreement is pair-up.
Open the APP. Click the first button with a Bluetooth logo on, then a note will pop up for you to select device and enter PIN.
The default PIN is "0000", as the second picture.
Step 4 introduce
Before the IR remote controls something, it must learn from the encoded infrared signal. Tap the second button on the screen. After that, point the remote to the infrared receiver. Press the key you want the panel to learn till you find message "Got it!" show up on the screen.
Step 5 introduce
Now you should be ready to use this function. Point the infrared emitter to the conditioner. Tap the third button on the screen. What happens to the conditioner? If it reacts to your command, congratulations! If not, back to the "Pair-up" step, and have these all over again.
Seeeduino plays a mailman role in this project. We added an infrared receiver on it, so that Seeeduino can get the command message from the remote. We added a bluetooth module on it, so that Seeeduino can talk with the Android panel we used here. And at last we added an infrared emitter so that Seeeduino is capable of sending IR commands. Besides, to run up all these electricity consumers, we prepared a Lipo rider to handle the battery. You can find how all these devices look like on the first picture and the principle diagram on the second picture.
The whole process can be divided into three simple steps. They are:
Implementation of the software:
I create a state machine which consists of three basic states on arduino:
1) SM_WAITORDER: wait for order
2) SM_STUDY: study mode, begin to study, if there is no IR data within 10s, time out, turn to SM_WAITORDER
3) SM_ORDER: order mode, get order, send data to IR to control the IR equipment, such as TV.
We can put all this staff into a box and powered by battery, then paste it on an air conditioner. An awesome Bluetooth air conditioner has been brought into being.