Welcome to the MCN workshop Dabble with Microcontrollers. This is the first post in a series that we will use during the workshop.
First, we need to download the software we’ll use to code later in the workshop. It’s a little tricky, but once it’s done, you should be able to run all the code we are using today. You will need administrative rights on your computer to install.
Adafruit Arduino Software
We will need a program to develop code. Download the Adafruit Arduino Software. Full instructions are here.
- Download the application
- Unzip it
- Move it to your applications folder
- Try opening the program
- If you are running a newer version of OS X, you will need to change your security settings so that this program downloaded from the internet will run on your computer. Follow the instructions on the Adafruit site.
- You may be asked to install a version of Java. Go ahead and click “More Info” to go to the website, download, and install.
- You may also be asked to allow incoming connections from the program. Go ahead and choose allow.
- Things may be a bit more interesting with Windows.
- First, we need to install the drivers for GEMMA. Full instructions here. Download Windows XP/Vista/7 drivers here or Windows 8 drivers here. Unzip them to a temporary place you know, like the desktop.
- Plug-in the GEMMA and you should get this screen. If not, use the device manager to update the driver.
- Click “Browse” to find the folder we unzipped on the desktop. Make sure you choose to include subfolders. Then click “Next.”
- You may get a security warning. You should be ok to choose “Install this driver software anyway.”
- After a little bit, you should get a message that the driver was successfully installed. Click “Close.”
- Now, download the software
- Unzip it
- Rename the unzipped folder from “windows” to something more useful, such as “Arduino Adafruit”
- Move the folder to your programs folder C:\Program Files (x86)\. You may get a permissions pop-up message. Choose “Continue.”
- Try opening the program C:\Program Files (x86)\Adafruit Arduino\arduino.exe
- Make a shortcut to this program if you would like.
We will all need to do this step, regardless of the operating system.
We will be using some fancy flashing lights, called NeoPixels. You will need the code library. This part should work the same on all three platforms.
- Look on the right side of the page at the bottom of the column, for the button labeled, “Download Zip”.
- Save this file to a temporary place on your computer, like the desktop.
Unzip the folder and rename it, “Adafruit_NeoPixel”. Notice there are no dashes, only underscores.
- Now open the Arduino program.
- Choose Sketch >> Import Library >> Add Library…
- Navigate to the “Adafruit_NeoPixel” folder and click “Choose”
- This will save the library to the proper location on your computer. To make sure it worked, go to Sketch >> Import Library and look for “Adafruit_NeoPixel” in the contributed list at the bottom