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:
-
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. -
Install the Arduino IDE first, then Teensyduino.
-
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.
-
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:
-
OSX:
-
-
Open File>Examples>01.Basics>Blink This file might already be open but some systems start with a blank sketch.
-
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.
The Teensyduino window
- 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!