DIY Smart Home – Control AC from anywhere with Smartphone
- 5.773 Views
You can measure room temperature and control your AC from outside with your smartphone. Let’s create DIY air conditioner remote controller with obniz.
Things used in this project
- IR module
Step 1 – setting up obniz
To get started, all you need to do is to follow three steps.
- Connect obniz to wifi
- Connect devices like LED or motors to obniz
- Scan QR code of obniz and start programming. You do not need to install any software.
Connect IR module and LM32DZ to obniz as below and place it in your house.
Write the program written in the program section. You need to change obniz ID in the program to yours. By clicking “save & open,” you can see the room temperature.
Record your air conditioner’s remote signal for ON/OFF.
The example program contains comment outed code for IR receiver. Remove the comment out and record your air conditioner’s ON/OFF signal. Your signal will be shown in the log.
Put the recorded data array into your program.
Just open the HTML with your smartphone. You can control your air conditioner from everywhere in the world!
What is Obniz?
obniz is a cloud-connected IoT development board. You can program on the web browser of any smartphone or computer and the command is sent to obniz through the internet via obniz cloud. By connecting the obniz to the cloud through wifi, users can remotely control devices that are physically connected to obniz.
obniz has 12 IO and WiFi-BLE module. It can be controlled through the APIs – REST or WebSocket API – on obniz cloud. Not only simple IO on/off but also UART, I2C, BLE etc can be used by remotely controlling obniz via internet. All you need to do to connect obniz is to input unique ID by scanning QR code. Complicated processes are done by obniz and its cloud. You can just start programming in HTML, browser and circuit have already been integrated. If you write a program to collect sensor values, you can make a chart of the values easily.
In terms of hardware, every IO can drive up to 1A with overcorrect protection, therefore high current demanding devices such as motors can be directly connected to obniz IO. GPIO and AD can be used on every IO. UART, SPI etc peripherals can be assigned to every IO. Even output voltage 3v/5v can be changed by software. Most electrical parts can be connected directly. Embedded parts such as switch, OLED display, and BLE are ready for use on program.
More information on obniz is available on its website
$18 Welcome Bonus for new registrations Now https://jlcpcb.com