Arduino software first steps - BleepLabs/Arduino-Light-And-Sound GitHub Wiki

Here’s how to get everything up and running so you can upload code to your Teensy:

Image of Teensy on Breadboard

  1. Download and install the Arduino IDE (not the web editor) and teensyduino. Don’t use the win 10 app store version, just download the installer.
    For OSX use the "installer" if you can. If you get the "software" that's fine but we have had a few issues with it.

  2. Install the Arduino IDE first, then Teensyduino.

  3. Plug your teensy up to your computer with the USB cable. The device has a tiny led in the top right corner that will blink every second. Your computer might also install some things which is fine.

  4. In Arduino go to the tools menu. Under Board select “Teensy 3.2 / 3.1” Under port select whichever one says “Teensy 3.2” under “Teensy ports”. The port number on yours will be different and will change based on the USB port you're using. It will show also up differently on different systems.

    • PC:
      PC port selection

    • OSX:
      OSX port selection

  5. Open File>Examples>01.Basics>Blink This file might already be open but some systems start with a blank sketch.

  6. In the new widow that opened for "Blink" Go to sketch > Upload. The Arduino IDE will do some work then the Teensyduino window will pop up. It should automatically upload the code. If Arduino or the Teensyduino window says this didn’t happen, press the small white button on the Teensy.
    Once uploaded it will blink the same as before.

Teensyduino window
The Teensyduino window

  1. Scroll down in the "Blink" code until you see this code at the bottom:
    digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
    delay(1000); // wait for a second
    digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
    delay(1000);

Delay(1000) means wait 1000 milliseconds, 1 seconds. Change these numbers to whatever you want and upload again to see how the LED blinks differently.

Now you’re ready to learn how to use all this to make your own weird music/noise/art/??? Device!