Hello welcome back . This is second part of the wireless home automation . In previous part we have connected home applience with relay and controlled with arduino . In this part we are going to add wireless feature of that device . One arduino is acts as remote controller ie transmitter which transmit input signal from buttons and another arduino receives those signal and switch on home appiliences according to the button pressed . Now first of all connect the circuit as shown in circuit diagram above and upload the hex file after compiling the below code . Upload these code seperately , one code is for transmitter and another for receiver. The short description is shown below the code . You can download whole project from this link wireless home automation . RF module library for proteus can be download from this link Modulo .
transmitter part code is
receiver part code is
First of all I want to tell please make a habit of reading arduino official documentation . In this project I have referenced from aduino serial communication from this link . The code is very simple .
First of all the transmitter transmit a secret code to the next arduino according to the button pressed . Let's say we are transmitting 1 if button 1 is pressed and similarly 2 if button 2 is pressed and so on using the function serial.write(int) . Then at the receiver side the second arduino detects these transmitted number comming from RF module and receive those numbers and take action according to the received number . Let's say first button 1 is pressed at transmitter side and 1 is transmitted and the second microcontroller detect 1 and it thinks to turn on 1st relay . And similary if 2 is received then it turns on 2nd relay and so on . Using this simple concept we are finally able to make a wireless home automation . If you didnot understand what i mean please read these as shown in link below step by step and you will finally know what i meanRemote controlled Home automation without using microcontroller (Part-1)
- Remote controlled Home automation without using microcontroller (Part-2)
- Remote controlled Home automation without using microcontroller (Part-1)
- AVR atmega32 chip to chip serial communication
If you have any question about this project please comment below and please share this project . Thank you .