ablab

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

Accelerometer and Relay based Hand Gesture Controlled Home Automation System with ATmega16

1358
Mark as Favourite

In this project, we will learn How to design an accelerometer and relay based hand gesture controlled home appliances system with AVR ATmega16 microcontroller. Here, we will use different hand gestures as input signal to control the appliances i.e 2 bulbs and 2 fans. Also, we will display the status of the appliances in a 16X2 alphanumeric LCD.

In our case, hand gestures mean tilt of hand in different direction. To detect different hand gestures, we will use the ADX335 accelerometer sensor. The sensor will be attached to our hand with some material or through a hand glove. The three output signals of accelerometer sensor are analog in nature and it cannot be processed directly by ATmega16 microcontroller. For this, we will use the ADC of the ATmega16 microcontroller to convert the analog signals to digital values. After converting the analog signals of accelerometer sensor to digital values, the ATmega16 microcontroller will process the digital values to find different gestures of the hand. Once the hand gesture is known, the ATmega16 microcontroller will send the required signal to the Quad Relay Driver to turn on and off appliances. Also, the microcontroller will display the status of the appliances in a 16X2 alphanumeric LCD.

Here, we will use one hand gesture to control one appliance. Same hand gesture will be used to turn on and off the appliance. Each time the same hand gesture is detected, the appliance changes its status. So, for four appliances, we will use 4 different hand gestures. Now, tilt your hand in different direction 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 Trainer Board-100 with ATmega16 1pc
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 1pc
Quad Relay Driver 1pc
3-axis Accelerometer 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 3pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for Accelerometer and Relay based Hand Gesture Controlled Home Automation System with ATmega16 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 X, Y, Z, VCC and GND pins of Accelerometer Sensor header of 3-axis Accelerometer Sensor with PA0, PA1, PA2, VCC and GND pin of PortA header of AVR Trainer Board-100 with a 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 Accelerometer and Relay based Hand Gesture Controlled Home Appliances System with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Steps - 15 ( 0f 15 )

    Tilt your hand in different direction 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 X, Y, Z, VCC and GND pins of Accelerometer Sensor header of 3-axis Accelerometer Sensor with PA0, PA1, PA2, VCC and GND pin of PortA header of AVR Trainer Board-100 with a 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 Accelerometer and Relay based Hand Gesture Controlled Home Appliances System with ATmega16 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 14 ( 0f 15 )

  • Tilt your hand in different direction and see the output.

    Steps - 15 ( 0f 15 )

Downloads

Accelerometer and Relay based Hand Gesture Controlled Home Automation System with ATmega16 Project File
  • 2 downloads 0 Kb

Post a Comment