Gesture controlled led cube
-
Upload
warehouseguy -
Category
Education
-
view
395 -
download
5
description
Transcript of Gesture controlled led cube
![Page 1: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/1.jpg)
Gesture Controlled LED CubeBy: Mike J Garcia
ECE 561
End of Semester Project
![Page 2: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/2.jpg)
Project Overview
2-part project 4x4x4 LED cube IR proxy sensor
Arduino Leonardo
![Page 3: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/3.jpg)
The Cube - Construction
Parts: 64 x LEDs – green 1 – Arduino Leonardo Resistors Solder
![Page 4: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/4.jpg)
The Cube - Layers
![Page 5: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/5.jpg)
The Cube - Stacking
![Page 6: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/6.jpg)
The Cube - Completed
![Page 7: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/7.jpg)
The Cube – Controls I
![Page 8: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/8.jpg)
The Cube – Controls II
![Page 9: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/9.jpg)
The Cube
![Page 10: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/10.jpg)
IR Proximity Sensor
Parts:
Arduino Controller
4 - IR LEDs
1 - IR LED Receiver
Resistors
Thanks to: Ricardo Uvina
http://www.instructables.com/id/Simple-IR-proximity-sensor-with-Arduino/
![Page 11: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/11.jpg)
IR Proximity Sensor
![Page 12: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/12.jpg)
IR Proximity Sensor
+5V
GNDDigital OUT
Analog IN
ARDUINO LEONARDO
![Page 13: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/13.jpg)
IR Proximity Sensor
![Page 14: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/14.jpg)
The Code – Proxy Sensor
Perform this 10 times and get average
Read from Input pin to test for ambient IR
Turn on IR LEDs
Test IR levels
Turn off LEDs
Test ambient IR levels
Display average IR readings on screen
![Page 15: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/15.jpg)
The Code – Cube
If distance is between 0 to 5cm,
Execute animation A
Else if distance is between 5cm to 10cm
Execute animation B
Else if……
Else if…….
Else
Turn off all LEDs
![Page 16: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/16.jpg)
Final Product – Demo 1
http://www.youtube.com/watch?v=LADpkeqRgic
See the cube in action!
LEDs look dim on my camera
![Page 17: Gesture controlled led cube](https://reader036.fdocuments.us/reader036/viewer/2022081502/55564dfad8b42aa41e8b4bbc/html5/thumbnails/17.jpg)
Final Product – Cube Overview
http://www.youtube.com/watch?v=CAAVzIehBr8
Best view of cube
View of Arduino
View of IR proxy sensor