Tilt your hand left, right or forward to switch different devices on.
Built and tested by Drisya K S · Industrial Robotics Institute
Arduino IDE
Control appliances with hand movements instead of switches. An ADXL335 accelerometer worn on the hand sends tilt readings to an Arduino; tilting left, right or forward switches on one of three LEDs (or relays for real appliances), and holding level turns them all off.
| Component | Qty |
|---|---|
| Arduino Uno | 1 |
| Accelerometer Module (ADXL335 or MPU6050) | 1 |
| LEDs x3 (or Relay Module) | 1 |
| Resistors 220Ω | 3 |
| Jumper Wires | As needed |
| Breadboard | 1 |
| Power Supply | 1 |
| From | Connect to |
|---|---|
| ADXL335 VCC | 3.3V |
| ADXL335 GND | GND |
| ADXL335 X | A0 |
| ADXL335 Y | A1 |
| ADXL335 Z | A2 |
| LED 1 / Relay 1 | D2 |
| LED 2 / Relay 2 | D3 |
| LED 3 / Relay 3 | D4 |
| LED / relay GND | GND |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the Arduino Uno.
int xPin = A0;
int yPin = A1;
int led1 = 2;
int led2 = 3;
int led3 = 4;
void allOff() {
digitalWrite(led1, LOW);
digitalWrite(led2, LOW);
digitalWrite(led3, LOW);
}
void setup() {
Serial.begin(9600);
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
}
void loop() {
int x = analogRead(xPin);
int y = analogRead(yPin);
Serial.print("X: "); Serial.print(x);
Serial.print(" Y: "); Serial.println(y);
allOff();
if (x < 300) digitalWrite(led1, HIGH); // Left
else if (x > 700) digitalWrite(led2, HIGH); // Right
else if (y < 300) digitalWrite(led3, HIGH); // Forward
// else: neutral, all off
delay(200);
}Control appliances with hand movements instead of switches. An ADXL335 accelerometer worn on the hand sends tilt readings to an Arduino; tilting left, right or forward switches on one of three LEDs (or relays for real appliances), and holding level turns them all off.
You need: Arduino Uno (1), Accelerometer Module (ADXL335 or MPU6050) (1), LEDs x3 (or Relay Module) (1), Resistors 220Ω (3), Jumper Wires, Breadboard (1), Power Supply (1). Software: Arduino IDE.
Yes. It is rated beginner and takes about 1–2 hours to build, using the Arduino Uno. The guide on this page explains every connection and step.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
Yes. IRI sells a kit with the parts for this project (PRJ-148). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.