ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

Relay based 4 Wire Resistive Touch Screen Controlled Wireless Home Automation System with ATmega32 using 433MHz RF-I

1221
Mark as Favourite

In this project, we will learn How to design a Relay based 4 Wire Resistive Touch Screen Controlled Wireless Home Automation System with AVR ATmega32 microcontroller using 433MHz RF Part-I. Here, we will use the 4 wire resistive touch screen as the input device to control the appliances i.e 2 bulbs and 2 fans and we will also display the status of the appliances in a 16X2 alphanumeric LCD.

When we touch the touch screen, the outputs of the touch screen sensor changes and this change will be detected by the ATmega32 microcontroller. But the two outputs of touch screen are analog in nature, so these signals cannot be processed directly by the microcontroller. For this, we will use the ADC of the ATmega32 microcontroller to convert the analog signals to digital values. After converting the analog signals of touch screen to digital values, the ATmega32 microcontroller will process the digital values to know which key of the touch screen is touched. After knowing which key of the touch screen is touched, the ATmega32 microcontroller will send the required 4 bit signal to the HT12E encoder of RF transmitter circuit. The HT12E will encode the 8 bit address and 4 bit data given to it and then it will transmit the encoded signal serially to the RF module. The RF module will transmit the encoded data and address wirelessly. Also, the microcontroller will display the status of the appliances in the 16X2 alphanumeric LCD.

At the receiver end, the RF receiver module will receive the encoded 4 bit data and 8 bit address. Then, it will transmit the encoded signal serially to the HT12D decoder which will decode the received signal to 8 bit address and 4 bit data. After decoding, the HT12D will compare the received 8 bit address with its local 8 bit address. If the received address and the local address are same, then the received 4 bit data is sent to its output pins else the received data is discarded. The 4 bit output of HT12D is sent to the Quad Relay Driver to turn on and off appliances.

Here, we will use 2 keys of the touch screen to control one appliance. One key will be used to turn on and the other key will be used to turn off the appliance. So, for four appliances, we will use 8 keys of the touch screen. Apart from these 8 keys, we will use 2 more keys to turn on and off all appliances at a time. Now, touch the touch screen at different position and control your appliances as you want.

Control Hand Gestures

Appliance Status Change

Forward Tilt

Appliance 1 On/Off

Backward Tilt

Appliance 2 On/Off

Left Tilt

Appliance 3 On/Off

Right Tilt

Appliance 4 On/Off

no Tilt

 No changes

 

Softwares Required

Hardwares Required

Name Quantity
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 2pc
Quad Relay Driver 2pc
4 Wire Resistive Touch Screen Sensor 1pc
RG1602A 16X2 Alphanumeric LCD Green 1pc
433MHz RF Transmitter & Receiver Board 1pc
Power Supply Board 1pc
Home Appliance Board 1pc
1 to 1 Connector-Female to Female 1pc
5 to 5 Connector-Female to Female-1 Meter 9pc
10 to 10 FRC Female to Female Connector 1pc
AVR Trainer Board-100 with ATmega32 2pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for Relay based 4 Wire Resistive Touch Screen Controlled Wireless Home Automation System with ATmega32 using 433MHz RF-I is as follows

  • Steps - 1 ( 0f 42 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 2 ( 0f 42 )

    Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

  • Steps - 3 ( 0f 42 )

    Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

  • Steps - 4 ( 0f 42 )

    Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

  • Steps - 5 ( 0f 42 )

    Connect PortC header of AVR Trainer Board-100 with RF Transmitter header of RF Transmitter Board with a 10 to 10 FRC Female Connector.

  • Steps - 6 ( 0f 42 )

    Connect the TE bar pin and GND of RF Transmitter Jumper header with a jumper.

  • Steps - 7 ( 0f 42 )

    Set the address of RF Transmitter to 0x00 with the help of 8 way DIP switch in RF Transmitter Board.

  • Steps - 8 ( 0f 42 )

    Connect the Pin1, Pin2, Pin3, Pin4 and VCC pins of 4 Wire Resistive Touch Screen Board with PA0, PA1, PA2, PA3 and VCC pins of PortA header of AVR Trainer Board-100 with 5 to 5 Connector.

  • Steps - 9 ( 0f 42 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 10 ( 0f 42 )

    Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

  • Steps - 11 ( 0f 42 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Steps - 12 ( 0f 42 )

    Download the Relay based 4 Wire Resistive Touch Screen Controlled Wireless Home Automation System with ATmega32 using 433 MHz RF-I Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer

  • Steps - 13 ( 0f 42 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of Power Supply Board.

  • Steps - 14 ( 0f 42 )

    Connect the 12V and GND pins of Relay Control header of Quad Relay Driver with the 12V and GND pins of 12V and GND header of Power Supply Board with 1 to 1 Connectors.

  • Steps - 15 ( 0f 42 )

    Connect the A1, A2, A3 and A4 pins of Relay Control header of Quad Relay Driver with D8, D9, D10 and D11 pins of RF Receiver header of RF Receiver Board respectively with 1 to 1 Connectors.

  • Steps - 16 ( 0f 42 )

    Connect the Neutral and Phase of AC Supply from Wall to N and PH of AC Input Terminal Blocks of Quad Relay Driver with wires.

  • Steps - 17 ( 0f 42 )

    Connect the Neutrals of 2 Bulbs and 2 Fans to the N pin of AC Output Terminal Blocks of Quad Relay Driver with wires.

  • Steps - 18 ( 0f 42 )

    Connect the Phases of 2 Bulbs and 2 Fans to the PH1, PH2, PH3 and PH4 pins of AC Output Terminal Blocks of Quad Relay Driver respectively with wires.

  • Steps - 19 ( 0f 42 )

    Connect the 5V and GND pins of 5V header and GND header of Power Supply Board to VCC and GND pins of RF Receiver header of RF Receiver Board with 1 to 1 Female Connectors.

  • Steps - 20 ( 0f 42 )

    Set the address of RF Receiver to 0x00 with the help of 8 way DIP switch in RF Receiver Board.

  • Steps - 21 ( 0f 42 )

    Switch on the power with the help of Power Switch of Power Supply Board.

  • Steps - 22 ( 0f 42 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 23 ( 0f 42 )

    Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

  • Steps - 24 ( 0f 42 )

    Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

  • Steps - 25 ( 0f 42 )

    Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

  • Steps - 26 ( 0f 42 )

    Connect PortC header of AVR Trainer Board-100 with RF Transmitter header of RF Transmitter Board with a 10 to 10 FRC Female Connector.

  • Steps - 27 ( 0f 42 )

    Connect the TE bar pin and GND of RF Transmitter Jumper header with a jumper.

  • Steps - 28 ( 0f 42 )

    Set the address of RF Transmitter to 0x00 with the help of 8 way DIP switch in RF Transmitter Board.

  • Steps - 29 ( 0f 42 )

    Connect the Pin1, Pin2, Pin3, Pin4 and VCC pins of 4 Wire Resistive Touch Screen Board with PA0, PA1, PA2, PA3 and VCC pins of PortA header of AVR Trainer Board-100 with 5 to 5 Connector.

  • Steps - 30 ( 0f 42 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 31 ( 0f 42 )

    Connect the AVR USB Programmer to the PC/Laptop?s USB Port directly or with the help of USB AM-AF Cable.

  • Steps - 32 ( 0f 42 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Steps - 33 ( 0f 42 )

    Download the Relay based 4 Wire Resistive Touch Screen Controlled Wireless Home Automation System with ATmega32 using 433 MHz RF-I Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer

  • Steps - 34 ( 0f 42 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of Power Supply Board.

  • Steps - 35 ( 0f 42 )

    Connect the 12V and GND pins of Relay Control header of Quad Relay Driver with the 12V and GND pins of 12V and GND header of Power Supply Board with 1 to 1 Connectors.

  • Steps - 36 ( 0f 42 )

    Connect the A1, A2, A3 and A4 pins of Relay Control header of Quad Relay Driver with D8, D9, D10 and D11 pins of RF Receiver header of RF Receiver Board respectively with 1 to 1 Connectors.

  • Steps - 37 ( 0f 42 )

    Connect the Neutral and Phase of AC Supply from Wall to N and PH of AC Input Terminal Blocks of Quad Relay Driver with wires.

  • Steps - 38 ( 0f 42 )

    Connect the Neutrals of 2 Bulbs and 2 Fans to the N pin of AC Output Terminal Blocks of Quad Relay Driver with wires.

  • Steps - 39 ( 0f 42 )

    Connect the Phases of 2 Bulbs and 2 Fans to the PH1, PH2, PH3 and PH4 pins of AC Output Terminal Blocks of Quad Relay Driver respectively with wires.

  • Steps - 40 ( 0f 42 )

    Connect the 5V and GND pins of 5V header and GND header of Power Supply Board to VCC and GND pins of RF Receiver header of RF Receiver Board with 1 to 1 Female Connectors.

  • Steps - 41 ( 0f 42 )

    Set the address of RF Receiver to 0x00 with the help of 8 way DIP switch in RF Receiver Board.

  • Steps - 42 ( 0f 42 )

    Switch on the power with the help of Power Switch of Power Supply Board.

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 42 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 2 ( 0f 42 )

  • Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 3 ( 0f 42 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 4 ( 0f 42 )

  • Connect PortC header of AVR Trainer Board-100 with RF Transmitter header of RF Transmitter Board with a 10 to 10 FRC Female Connector.

    Steps - 5 ( 0f 42 )

  • Connect the TE bar pin and GND of RF Transmitter Jumper header with a jumper.

    Steps - 6 ( 0f 42 )

  • Set the address of RF Transmitter to 0x00 with the help of 8 way DIP switch in RF Transmitter Board.

    Steps - 7 ( 0f 42 )

  • Connect the Pin1, Pin2, Pin3, Pin4 and VCC pins of 4 Wire Resistive Touch Screen Board with PA0, PA1, PA2, PA3 and VCC pins of PortA header of AVR Trainer Board-100 with 5 to 5 Connector.

    Steps - 8 ( 0f 42 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 9 ( 0f 42 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-AF Cable.

    Steps - 10 ( 0f 42 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 11 ( 0f 42 )

  • Download the Relay based 4 Wire Resistive Touch Screen Controlled Wireless Home Automation System with ATmega32 using 433 MHz RF-I Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer

    Steps - 12 ( 0f 42 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of Power Supply Board.

    Steps - 13 ( 0f 42 )

  • Connect the 12V and GND pins of Relay Control header of Quad Relay Driver with the 12V and GND pins of 12V and GND header of Power Supply Board with 1 to 1 Connectors.

    Steps - 14 ( 0f 42 )

  • Connect the A1, A2, A3 and A4 pins of Relay Control header of Quad Relay Driver with D8, D9, D10 and D11 pins of RF Receiver header of RF Receiver Board respectively with 1 to 1 Connectors.

    Steps - 15 ( 0f 42 )

  • Connect the Neutral and Phase of AC Supply from Wall to N and PH of AC Input Terminal Blocks of Quad Relay Driver with wires.

    Steps - 16 ( 0f 42 )

  • Connect the Neutrals of 2 Bulbs and 2 Fans to the N pin of AC Output Terminal Blocks of Quad Relay Driver with wires.

    Steps - 17 ( 0f 42 )

  • Connect the Phases of 2 Bulbs and 2 Fans to the PH1, PH2, PH3 and PH4 pins of AC Output Terminal Blocks of Quad Relay Driver respectively with wires.

    Steps - 18 ( 0f 42 )

  • Connect the 5V and GND pins of 5V header and GND header of Power Supply Board to VCC and GND pins of RF Receiver header of RF Receiver Board with 1 to 1 Female Connectors.

    Steps - 19 ( 0f 42 )

  • Set the address of RF Receiver to 0x00 with the help of 8 way DIP switch in RF Receiver Board.

    Steps - 20 ( 0f 42 )

  • Switch on the power with the help of Power Switch of Power Supply Board.

    Steps - 21 ( 0f 42 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 22 ( 0f 42 )

  • Connect PortB header with LCD data header in AVR Trainer Board-100 with a 10 to 10 FRC Female Connector.

    Steps - 23 ( 0f 42 )

  • Connect RS, RW & EN pins of LCD control header with PD0, PD1 & PD2 pins of PortD header respectively in AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 24 ( 0f 42 )

  • Connect the 16X2 Alphanumeric LCD to the LCD header of AVR Trainer Board-100.

    Steps - 25 ( 0f 42 )

  • Connect PortC header of AVR Trainer Board-100 with RF Transmitter header of RF Transmitter Board with a 10 to 10 FRC Female Connector.

    Steps - 26 ( 0f 42 )

  • Connect the TE bar pin and GND of RF Transmitter Jumper header with a jumper.

    Steps - 27 ( 0f 42 )

  • Set the address of RF Transmitter to 0x00 with the help of 8 way DIP switch in RF Transmitter Board.

    Steps - 28 ( 0f 42 )

  • Connect the Pin1, Pin2, Pin3, Pin4 and VCC pins of 4 Wire Resistive Touch Screen Board with PA0, PA1, PA2, PA3 and VCC pins of PortA header of AVR Trainer Board-100 with 5 to 5 Connector.

    Steps - 29 ( 0f 42 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 30 ( 0f 42 )

  • Connect the AVR USB Programmer to the PC/Laptop?s USB Port directly or with the help of USB AM-AF Cable.

    Steps - 31 ( 0f 42 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 32 ( 0f 42 )

  • Download the Relay based 4 Wire Resistive Touch Screen Controlled Wireless Home Automation System with ATmega32 using 433 MHz RF-I Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer

    Steps - 33 ( 0f 42 )

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of Power Supply Board.

    Steps - 34 ( 0f 42 )

  • Connect the 12V and GND pins of Relay Control header of Quad Relay Driver with the 12V and GND pins of 12V and GND header of Power Supply Board with 1 to 1 Connectors.

    Steps - 35 ( 0f 42 )

  • Connect the A1, A2, A3 and A4 pins of Relay Control header of Quad Relay Driver with D8, D9, D10 and D11 pins of RF Receiver header of RF Receiver Board respectively with 1 to 1 Connectors.

    Steps - 36 ( 0f 42 )

  • Connect the Neutral and Phase of AC Supply from Wall to N and PH of AC Input Terminal Blocks of Quad Relay Driver with wires.

    Steps - 37 ( 0f 42 )

  • Connect the Neutrals of 2 Bulbs and 2 Fans to the N pin of AC Output Terminal Blocks of Quad Relay Driver with wires.

    Steps - 38 ( 0f 42 )

  • Connect the Phases of 2 Bulbs and 2 Fans to the PH1, PH2, PH3 and PH4 pins of AC Output Terminal Blocks of Quad Relay Driver respectively with wires.

    Steps - 39 ( 0f 42 )

  • Connect the 5V and GND pins of 5V header and GND header of Power Supply Board to VCC and GND pins of RF Receiver header of RF Receiver Board with 1 to 1 Female Connectors.

    Steps - 40 ( 0f 42 )

  • Set the address of RF Receiver to 0x00 with the help of 8 way DIP switch in RF Receiver Board.

    Steps - 41 ( 0f 42 )

  • Switch on the power with the help of Power Switch of Power Supply Board.

    Steps - 42 ( 0f 42 )

Downloads

Relay based 4 Wire Resistive Touch Screen Controlled Wireless Home Automation System with ATmega32 using 433MHz RF-I
  • 3 downloads 0 Kb

Post a Comment