Arduino Workshop

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 Arduino

Introduction to TinyDunio which is made by the TinyCircuits Company

Steps in ACMS Lab With Arduino Software and Tinyduino Drivers Installed

  1. Plug in a TinyDunio Processor Board to a TinyShield USB & ICP Board

  2. Plug in a USB cable between the board and your computer (use the white connector on the board)

  3. Start the Arduino software

    1. Navigate to Tools > Board and select the Arduino Pro or Pro Mini

    2. Navigate to Tools > Processor and select ATmega328P 3.3V, 8MHz.

    3. Navigate to Tools > Port: COM4 typically works, but you may need to change the port.

  4. Get the single LED on the TinyDuino to flash on and off (this is hardwired to pin 13).

    1. See: http://arduino.cc/en/Tutorial/Blink

    2. Run a test program by navigating to File > Examples > 01. Basics > Blink

    3. Click the Upload Right Arrow near the top of the Arduino Window

    4. 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.

    5. Change the delay to change flashing speed; your choice.

  1. Plug in the TinyShield 16 Edge LEDs

    1. 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/

    2. Download modified TinyShield Example

    3. Create your own LED light pattern

  1. Plug in Accelerometer

    1. See: http://tiny-circuits.com/learn/using-the-accelerometer-tinyshield/

    2. Use the basic accelerometer program that displays x, y, and z accelerations to your serial port screen.

    3. 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.

      1. AccelTotal = int (sqrt(sq(long(AccelX)) + sq(long(AccelY)) +sq(long(AccelZ)) ));

    4. Come up with your own game using the accelerometer and LEDs. You can disconnect the TinyDuino and use a coin battery to power it.

  1. Check out other shields and parts

OLD Instructions IN CASE Computer Lab is Not Setup for Tinyduino

Introduction to Arduino

Introduction to TinyDunio

Steps

  1. Download software

    1. if you are in an ACMS lab, download the Windows zip file, extract all, the run the arduino