ablab

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

Password Protected Relay based 4 Wire Resistive Touch Screen Controlled Home Automation System with ATmega16-II

953
Mark as Favourite

In this project, we will learn How to design a password protected relay based 4 wire resistive touch screen controlled Home Automation system with AVR ATmega32 microcontroller Part-II. Here, we will use the 4 wire resistive touch screen as the input device to enter the password and to control the appliances i.e 2 bulbs and 2 fans. Also, we will also display the status of the appliances in a 16X2 alphanumeric LCD. The password is a 4 digit number. In our case the password is “1234” which can be changed in the program. To gain access of the system, the user has to enter the correct password.

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. First the user will enter the 4 digit password of which each digit will be displayed in a 16X2 alphanumeric LCD as star(*) and microcontroller will compare the entered password with the set password. The system will ask to enter the password till the correct password is entered by the user. After the correct password is entered, the microcontroller will receive the appliance control signal from the touch screen and it will process the control signal to know key of the touch screen is touched. After knowing which key of the touch screen is touched, the ATmega32 microcontroller will send the required control signal to the Quad Relay Driver to turn on and off appliances. Also, the microcontroller will display the status of the appliances in the 16X2 alphanumeric LCD.

Here, we will use one key of the touch screen to control one appliance. Same key will be used to turn on and off the appliance. Each time we touch the same key, the appliance changes its status. So, for four appliances, we will use 4 keys of the touch screen. Apart from these 4 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 Touches

Appliance Status Change

1

Appliance 1 On/Off

2

Appliance 2 On/Off

3

Appliance 3 On/Off

4

Appliance 4 On/Off

5

All Appliances On

6

All Appliances Off

 

Softwares Required

Hardwares Required

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

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for Password Protected Relay based 4 Wire Resistive Touch Screen Controlled Home Automation System with ATmega16-II is as follows

  • Steps - 1 ( 0f 15 )

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

  • Steps - 2 ( 0f 15 )

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

  • Steps - 3 ( 0f 15 )

    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 15 )

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

  • Steps - 5 ( 0f 15 )

    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 AVR Trainer Board-100 with 1 to 1 Connectors.

  • Steps - 6 ( 0f 15 )

    Connect the A1, A2, A3 and A4 pins of Relay Control header of Quad Relay Driver with PC0, PC1, PC2 and PC3 pins of PORTC header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

  • Steps - 7 ( 0f 15 )

    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 - 8 ( 0f 15 )

    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 - 9 ( 0f 15 )

    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 - 10 ( 0f 15 )

    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 respectively with 5 to 5 Connector.

  • Steps - 11 ( 0f 15 )

    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 - 12 ( 0f 15 )

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

  • Steps - 13 ( 0f 15 )

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

  • Steps - 14 ( 0f 15 )

    Download Password Protected Relay based 4 Wire Resistive Touch Screen Controlled Home Automation System with ATmega16-II Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Steps - 15 ( 0f 15 )

    Touch the Touch Screen at different position and see the output.

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

    Steps - 1 ( 0f 15 )

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

    Steps - 2 ( 0f 15 )

  • 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 15 )

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

    Steps - 4 ( 0f 15 )

  • 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 AVR Trainer Board-100 with 1 to 1 Connectors.

    Steps - 5 ( 0f 15 )

  • Connect the A1, A2, A3 and A4 pins of Relay Control header of Quad Relay Driver with PC0, PC1, PC2 and PC3 pins of PORTC header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

    Steps - 6 ( 0f 15 )

  • 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 - 7 ( 0f 15 )

  • 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 - 8 ( 0f 15 )

  • 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 - 9 ( 0f 15 )

  • 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 respectively with 5 to 5 Connector.

    Steps - 10 ( 0f 15 )

  • 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 - 11 ( 0f 15 )

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

    Steps - 12 ( 0f 15 )

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

    Steps - 13 ( 0f 15 )

  • Download Password Protected Relay based 4 Wire Resistive Touch Screen Controlled Home Automation System with ATmega16-II Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 14 ( 0f 15 )

  • Touch the Touch Screen at different position and see the output.

    Steps - 15 ( 0f 15 )

Downloads

Password Protected Relay based 4 Wire Resistive Touch Screen Controlled Home Automation System with ATmega16-II Project File
  • 0 downloads 0 Kb

Post a Comment