In the Maker Space Workshop we saw how one can quickly make a physical prototype.
In this workshop we will see how easy it is to make a simple electronic prototype. We will use the widely popular open source Arduino platform. We will use Tinyduino hardware, which provides a small footprint, battery operated, microprocessor with an accelerometer and LED array output.
Introduction to TinyDunio which is made by the TinyCircuits Company
Steps in ACMS Lab With Arduino Software and Tinyduino Drivers Installed
Plug in a TinyDunio Processor Board to a TinyShield USB & ICP Board
Plug in a USB cable between the board and your computer (use the white connector on the board)
Start the Arduino software
Navigate to Tools > Board and select the Arduino Pro or Pro Mini
Navigate to Tools > Processor and select ATmega328P 3.3V, 8MHz.
Navigate to Tools > Port: COM4 typically works, but you may need to change the port.
Get the single LED on the TinyDuino to flash on and off (this is hardwired to pin 13).
Run a test program by navigating to File > Examples > 01. Basics > Blink
Click the Upload Right Arrow near the top of the Arduino Window
You’re all set up to upload the program – you will see the RX and TX lights flash when you do. Assuming you programmed the Blink program, you will now see the green LED flash on the Processor board.
Change the delay to change flashing speed; your choice.
Plug in the TinyShield 16 Edge LEDs
This shield uses only 4 pins to control 16 LEDs. So you have to turn them on one at a time, but if you do this quickly it looks like you can do any combination you want. See: http://tiny-circuits.com/learn/tinyduinoled/
Download modified TinyShield Example
Create your own LED light pattern
Plug in Accelerometer
See: http://tiny-circuits.com/learn/using-the-accelerometer-tinyshield/
Use the basic accelerometer program that displays x, y, and z accelerations to your serial port screen.
Use a more advanced accelerometer example that calculates the combined acceleration by squaring the x, y, and z components and then taking the square root of the sum. Note, how variables are cast to "long variables" within this calculation since a regular 16 bit int would overflow when squared.
AccelTotal = int (sqrt(sq(long(AccelX)) + sq(long(AccelY)) +sq(long(AccelZ)) ));
Come up with your own game using the accelerometer and LEDs. You can disconnect the TinyDuino and use a coin battery to power it.
Check out other shields and parts
TinyDuino: http://tiny-circuits.com/products/tinyduino/
TinyLili: An even smaller version, but it does not have pins to stack shields: http://tiny-circuits.com/products/tinylily/
MicroDuino: Another product in this category http://www.kickstarter.com/projects/microduino/microduino-arduino-in-your-pocket-small-stackable
OLD Instructions IN CASE Computer Lab is Not Setup for Tinyduino
Steps
if you are in an ACMS lab, download the Windows zip file, extract all, the run the arduino