Can I Control My Ac With My Phone
This remote AC controller enables you to measure room temperature and switch on/off your air conditioner from outside with your smartphone. You can plow on your air conditioner before reaching domicile and stay comfy at home. Let's create DIY air conditioner remote controller with obniz.
Things used in this projection
· Obniz
· IR module
· LM32DZ
· Smartphone
Step 1 — setting up obniz
To get started, all y'all need to do is to follow 3 steps.1. Connect obniz to wifi2. Connect devices like LED or motors to obniz3. Browse QR code of obniz and start programming. You do non need to install whatever software.
Step 2
Connect IR module and LM32DZ to obniz as beneath and identify information technology in your house.
Footstep 3
Write the programme written in the program section. Yous need to modify obniz ID in the program to yours. By clicking "save & open up," you lot can come across the room temperature.
Footstep 4
Record your air conditioner'due south indicate for ON/OFF.
The example programme contains comment outed code for IR receiver. Remove the annotate out and record your air conditioner's ON/OFF signal. Your signal volition be shown in the log.
Write the recorded information array into your program.
Use it!
Open the HTML on the web browser with your smartphone. You lot can control your air conditioner from everywhere in the globe!
What is Obniz?
Obniz is a cloud-connected IoT evolution board. You can program on the web browser of whatever smartphone or computer and the control is sent to obniz through the cyberspace via obniz cloud. By connecting the Obniz to the cloud through wifi, users tin 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 — Balance or WebSocket API — on obniz cloud. Not simply elementary IO on/off just also UART, I2C, BLE etc tin 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. Yous can just start programming in HTML, browser and circuit have already been integrated. If you write a program to collect sensor values, you tin make a chart of the values easily.
In terms of hardware, every IO tin drive up to 1A with overcorrect protection, therefore high current enervating devices such as motors can be directly connected to Obniz IO. GPIO and AD can exist used on every IO. UART, SPI etc peripherals tin exist assigned to every IO. Even output voltage 3v/5v tin be inverse by software. Most electric parts tin can be connected directly. Embedded parts such every bit switch, OLED display, and BLE are fix for employ on programme.
Plan
<!-- HTML Example -->
<html>
<head>
<meta proper name="viewport" content="width=device-width, initial-calibration=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.one/css/bootstrap.min.css">
<script src="https://obniz.io/js/jquery-iii.2.1.min.js"></script>
<script src="https://unpkg.com/[email protected]/obniz.js"></script>
</caput>
<trunk>
<div id="obniz-debug"></div>
<h1 id="temp">Measuring...</h1>
<p>
<button id="on" class="btn btn-master btn-block">Plough ON</button>
</p>
<p>
<push button id="off" course="btn btn-primary btn-block">Plough OFF</push>
</p>
<script>
var obniz = new Obniz("OBNIZ_ID_HERE");
obniz.onconnect = async office () {
//var sensor = obniz.wired('IRSensor', {vcc:0, gnd:3, output: ii});
//sensor.start(office (arr) {
// console.log('detected!!')
// panel.log(JSON.stringify(arr));
//})
// Javascript Instance
var tempsens = obniz.wired("LM35DZ", { gnd:vii , output:8, vcc:nine});
tempsens.onchange = function(temp){
$("#temp").text('' + parseInt(temp)+ ' caste')
obniz.display.articulate();
obniz.display.font('Avenir', 60)
obniz.display.print('' + parseInt(temp) + '℃')
};
var infraredLed = obniz.wired('InfraredLED', {anode: 1, cathode: 3});
$("#on").click(function(){
// your value for ON here.
infraredLed.send([])
})
$("#off").click(function(){
// your value for OFF here
infraredLed.send([])
})
}
</script>
</torso>
</html>
L O A D I N Thou
. . . comments & more!
Can I Control My Ac With My Phone,
Source: https://hackernoon.com/control-ac-from-anywhere-with-smartphone-diy-smart-home-d1320ac373a8
Posted by: bezansonthemon.blogspot.com
0 Response to "Can I Control My Ac With My Phone"
Post a Comment