Hack Your Roshamglo Badge

Contributors: Shawn Hymel
Favorited Favorite 1

Make Something Blink

The Roshamglo board comes with two LEDs (a red LED and green LED built into one package), as well as a five-way switch (left, right, up, down and center). We can test that our Roshamglo board can be reprogrammed by writing and uploading a simple program.

Open the Arduino IDE and enter the following code:

void setup() {
  pinMode(7, OUTPUT);

void loop() {
  digitalWrite(7, HIGH);
  digitalWrite(7, LOW);

Click on the Upload button.

alt text

If you are asked to save your work, click Cancel (save it if you want, but you don't need to save to compile and upload your code).

Wait until you see Uploading appear in the Arduino IDE.

alt text

Make sure the Roshamglo board is OFF, hold the Down button (pull the five-way switch toward the SparkFun logo) and insert it into an available USB port while continuing to hold the Down button.

Plug Roshamglo into a USB slot

Let go of the Down button, and the status LED should begin to quickly flash red in short bursts. This means the badge is in "Bootloader Mode." You will need to do this every time you upload a new program to it.

Flashing LED means it's in bootloader mode

After a moment, you should see Done uploading appear in Arduino.

alt text

Remove the Roshamglo board from your computer. Slide the power switch to ON.

Turn on Roshamglo

And that's it! Your Arduino should begin flashing the green LED on and off every second.

Roshamglo blinking

Note: If you get an error message while uploading, it could be caused by a variety of reasons. The way we're uploading programs to Roshamglo is actually hacked together, as we're emulating USB on the badge, which many computers do not like. Here are some things to try if you do get an error:
  • Try a different USB port
  • Unplug other USB devices
  • Close other programs that might be running
  • Reinstall the Roshamglo USB driver
  • Try a different computer