14. 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
15. 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
16. Final Product – Demo 1
http://www.youtube.com/watch?v=LADpkeqRgic
See the cube in action!
LEDs look dim on my camera
17. Final Product – Cube Overview
http://www.youtube.com/watch?v=CAAVzIehBr8
Best view of cube
View of Arduino
View of IR proxy sensor