Littlebits Pong
by Louisville Public Library in Circuits > Gadgets
2906 Views, 9 Favorites, 0 Comments
Littlebits Pong
This project demonstrates the Pong game from the
Little Bits web site at http://littlebits.cc/projects/analog-pong. Make sure you have the Arduino IDE installed
(see the SOS project for instructions).
Pong
Start with a power module.
Pong
Add a fork to the power module.
Pong
Attach a slider dimmer to the middle fork output.
Pong
Attach a second slide dimmer to the bottom fork output.
Pong
Attach an Arduino at Heart module
to the slide dimmers as shown.
Pong
Attach a USB cable to the Arduino at Heart
module, and connect it to your computer
(Computer is not shown).
Pong
Download the “Analog Pong – Arduino” file in the
Other files section at http://littlebits.cc/projects/analog-pong
by right-clicking the link and saving it as analog_pong_arduino.ino
Pong
Double-click the analog_pong_arduino.ino file to
load it into the Arduino IDE.
Pong
Press the upload button just under the Edit
menu. The lights on your Arduino at
Heart module should flash during the upload.
Download Processing from https://processing.org/download/?processing
Pong
Extract Processing by right-clicking the download
and selecting Extract All…
Pong
Double-click the extracted folders and
double-click “processing.”
Pong
Download Analog Pong – Processing file from the
Other files section.
Pong
Extract the contents of the downloaded zip file.
Pong
Double click the Analog_Pong_Processing.pde file
from the analog_pong_processing folder.
Pong
Click the Run button under the File menu.
Pong
Have fun playing pong!
Press a key to start the game.
Pong
Use the sliders to move the paddles up and down.
Pong
After the game is over, press “r” to replay.