กลับไปหน้ารวมไฟล์
gesture-motion-controlled-automatic-appliances-223552-en.md

Watch video for full tutorial

Today we'll be making an automatic system to control appliances by hand gesture or Motion sensing using just Arduino and PIR sensor.

In our project we'll make an Emergency light that light On/off by just moving your hand around it. In another word gesture or wave controlled light system. This can be used as an emergency light - when you reach home it'll automatically switch the lights on.

So our goal is to make a system that switches on once you wave at it, and switches off when you wave it back again.

There's Some issues to keep in mind before you'd work with PIR sensor.

  • PIR doesn't work properly for at least one minute when starts.
  • PIR output value is always 1 for some seconds.
  • It some times doesn't read motions.

To Solve that I've made a simple algorithm that's explained here https://ashrafminhajfb.blogspot.com/2018/10/problems-using-pir-sensor-always-high.html

Circuit Diagram

Circuit is pretty simple, I'm driving some lEDs on but if you want to control home appliances or bigger loads like main light orfanhere's a circuit with relay module.

Make the circuit and it should look something like this

Upload Code to arduino Pro mini 5v 16 mHz

See, Arduino pro mini doesn't have USB programming option. So you may Upload code using a USB to TTL converter. Or you may use an Arduino Uno. We all have an uno right?

So let's upload code using an arduino Uno.

  • Remove The ATmega IC from Uno (using a screwdriver) [be carefull not to harm the IC]
  • Connect Arduino pro mini ------ Uno as following
  • TX to tx
  • Rx to rx
  • Vcc to 5v
  • Gnd to gnd
  • rst to Reset

Then start arduino.ide and go to tools>board> select arduino pro or pro mini

Note: You can just upload code to Arduino pro (5v 16 mHz) mini using UNO not the 3.3v one. Check before you buy one.

Now download the code from herehttps://github.com/ashraf-minhaj/Gesture-or-Motion_controlled_Appliances

Then Upload and

Power it Up

For powering this use 7.4v to 11.4 volts. Although I've said that 5v is okay, its okay as long as loads are limited and you are powering from a 1Amp source.

Power up and- Have fun.

Happy Making!!!!

I didn't explain that much because it's just an easy project. Pretty Interesting and functional though.

EXPANDED TECHNICAL DETAILS

Non-Contact HMI Automation

This project enables touchless control of home appliances (lights, fans) using sophisticated hand gesture recognition.

  • APDS-9960 Gesture Sensing: Uses the APDS-9960 sensor, which identifies directional movement (Up, Down, Left, Right) by measuring reflections of infrared light. The Arduino translates these specific movements into digital commands.
  • Relay Isolation Hub: The Arduino controls high-voltage appliances through a 4-channel Opto-isolated Relay module, ensuring the user's hand gestures never come near high-voltage circuitry.

Interaction Design

  • Intuitive Mapping: For example, swiping "Up" turns on the lights, while swiping "Down" turns them off. Swiping "Left/Right" could toggle between different appliances, providing a futuristic and hygienic way to manage a smart home.

ข้อมูล Frontmatter ดั้งเดิม

title: "Gesture / Motion Controlled Automatic Appliances"
description: "Move your hand around - lights ON. Move hands over that again - lights OFF. Cool, right?"
author: "ashraf_minhaj"
category: "Sensors & Environment"
tags:
  - "home automation"
  - "motion controlled"
  - "automatic emergency light"
views: 9397
likes: 6
price: 200
difficulty: "Intermediate"
components:
  - "1x Arduino UNO"
  - "1x UTSOURCE Electronic Parts"
  - "1x LED (generic)"
  - "1x Arduino Pro Mini 328 - 5V/16MHz"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://github.com/ashraf-minhaj/Gesture-or-Motion_controlled_Appliances"
  - "https://github.com/ashraf-minhaj/Gesture-or-Motion_controlled_Appliances"
documentationLinks: []
passwordHash: "eff784f60f637a776bc81fefcf7d016df6feadb6e4ec6c6dc83220716978f83d"
encryptedPayload: "U2FsdGVkX19QmA1JaF9GtrukN/mrMEoFBqLMCceQBMyFmOygNTRN+LN+np8k08/rpaTCQsd5KC9KlWRIiQpBFQko2MQ20GZQx4mSCLDx9s8="
seoDescription: "Build Gesture / Motion Controlled Automatic Appliances with Arduino. Control lights ON and OFF with simple hand movements using Sensors."
videoLinks:
  - "https://www.youtube.com/embed/i3TCKCDe8Qk"
  - "https://www.youtube.com/embed/i3TCKCDe8Qk"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/gesture-motion-controlled-automatic-appliances-223552_cover.jpg"
lang: "en"