I then tested my accelerometer, by having it print numbers to the serial port depending on the angle of the tilt; I used code from Arduino's website for this test:
I then figured out the way in which the numbers for the x axis and y axis increased and decreased depending on the angle of the tilt (left, right, forward, and backward), and linked these numbers to the color that was created by the LED, since analog numbers controlled the color of my LED.
I started creating the box from glass and plexiglass:
Final documentation of my completed mini-project:
No comments:
Post a Comment