How to make your own RF Home Automated System

How to make your own RF Home Automated System

In this post, I will show you how to make your own RF (radio frequency) home automated system. I just made a dummy prototype with cheap components which you can easily source. Although I have posted something like these before here, this is more elaborate and useful.

See Also:

 

The System will be in two parts: Transmitter and receiver. Below is the list of components you will be needing:

Transmitter:

Receiver:

Libraries:

 

Setup

Transmitter (433mhz):

RF TX VCC –> Arduino Nano 5v pin

RF TX GND –> Arduino Nano GND

RF TX Data –> Arduino Nano pin D8

 

4×4 push button

Connect the first four rows of the 4×4 push buttons to Arduino Nano pins D2, D3, D5, D6. If you need to control more loads, you can extend it by connecting more push buttons.  The GND pin goes to Arduino Nano GND

 

LED:

This LED lights up whenever a button is pressed indicating data transmission. Connect the LED to Arduino Nano pin D4.

 

Receiver:

RF Receiver (433mhz):

RF RX VCC –> Mega 5v pin

RF RX GND –> Mega GND pin

RF RX data –> Mega pin D11

 

OLED Screen

GND –> Mega GND

VCC –> Mega 3.3v pin

SCL –> Mega SCL pin

SDA –> Mega SDA pin

 

PIR Sensor

VCC –> Mega 5v pin

GND –> Mega GND

out –> Mega pin D2 (we will be using interrupt, you can read more about that here).

 

Temperature and humidity Sensor:

VCC –> Mega 5v pin

GND –> Mega GND

out –> Mega pin D7

 

Relay Module:

VCC –> Mega 5v pin

GND –> Mega GND

In1 –> D10

In8 –> D5

In2 –> D3

In4 –> D4

 

You can now attach the loads to their respective modules.

 

LED:

This LED lights up when a corrupted data is recieved, you can connect it to D13.

 

Loads:

I will be controlling an AC voltage bulb, solenoid lock (don’t power this from Arduino direct, use an external power supply), a LED and DC Fan. You can still expand it.\

 

NOTE: Shorter Antenna goes to the TX and longer one to the reciever.

 

CODE

You can get the full code here, it is well commented and easy to understand.

RF-Home Automation CODE

 

Results:

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *