Here's a link to the video:
Step 1: What You Need
- 1 LCD screen 16×2 http://www.adafruit.com/products/181)
- 10 K potentiometer (comes with LCD screen above, for contrast variation on backlight)
- 9V battery
- Barrel jack adaptor https://www.sparkfun.com/products/9518
- Male break-away headers https://www.sparkfun.com/products/116
- 1 Accelerometer https://www.sparkfun.com/products/9652
- 1 breadboard
- Arduino Uno
- LOTS of hookup wire
Step 2: LCD Prep
Step 3: LCD Hookup
NOTE: Since you used hookup wire from the lcd itself as opposed to hooking up the lcd directly to the board, just attach the wire from the lcd to where you see the lcd attached in the image.
Step 4: Accelerometer Hookup
- Place accelerometer on the breadboard
- Hook up VCC on accelerometer to 3.3V on Arduino with hookup wire.
- Hook up GND on accelerometer to any of the grounds on the Arduino.
- Hook up Z-OUT on accelerometer to A0 on Arduino.
- Hook up SLP on accelerometer to 3.3 V on Arduino.
Step 5: CODE!
The base of this code came from alecnotalex on Instructables. I modified it to where data is randomly pulled from not only one but two datasets, one for each row on the lcd. Of course, this is completely editable. You could change the phrases into anything you wanted.
REMEMBER, if you do change the amount of phrases for any row, make sure the correct number is there next to "int numberofphrases = ". ALSO, you may find that playing with the z values will be necessary, depending on the orientation of your device. For instance, I found that my data would continuously scroll while no motion was being detected in the beginning. Open up the serial monitor in the Arduino software and watch the data as you shake your device. With trial and error, you will come up with a correct variation.
Step 6: House the Hardware
NOTE: Unless you solder everything to a solder board, it may be necessary to dab hot glue on any loose connections on your breadboard. I did this to ensure that nothing got unplugged while mounting my device.
As stated in the beginning of this Instructable, this is only just the beginning. Make something cool! Can't wait to see what you create.