Based on the Getting Started and Initial Setup pages.
See spinwearables.com/quickstart for details.
We will use the Arduino programming environment, which is open and free to install.
Do not worry if you find this part challenging, learning new things can be confusing at first.
If you get stuck, check out the Troubleshooting Guide at spinwearables.com/troubleshoot and don’t be afraid to experiment.
While feeling confused is normal, it will get easier as you go!
Once the software is installed, we have to configure it to communicate with the SpinWheel.
Plug your SpinWheel into your computer with a micro USB cable and flip the switch to the position labeled “USB”.
Open the Arduino software.
Tools
menu and go to Port
. You will see a list of serial ports on your computer; select the port that corresponds to the SpinWheel.Properly selecting the board and port are essential for the Arduino software to communicate with the SpinWheel. If you are unable to upload code to the Spinwheel in the next section, double check that the switch is set to “USB” and that you have the correct board and port selected.
Sketch → Include Library → Manage Libraries...
.To test that your SpinWheel is working properly, you can install a new program, or sketch, from the example files to animate your SpinWheel.
File → Examples → SpinWearables
and picking one of the examples. For instance, pick BlinkingFirmware
. This will open a new window with the code.Now your SpinWheel will have the new colorful blinking pattern (from BlinkingFirmware
) you just uploaded. If you get an error here, then check out our Troubleshooting Guide for help on some common problems.
See spinwearables.com/intro for details.
The corresponding command in code looks like SpinWheel.setLargeLEDsUniform(50, 255, 250)
void loop() { SpinWheel.clearAllLEDs();
SpinWheel.drawFrame(); }
The corresponding command is SpinWheel.setLargeLED(4, 255, 0, 100);
void loop() { SpinWheel.clearAllLEDs();
SpinWheel.drawFrame(); }
You can also turn on all of the small LEDs. To do this, instead of using SpinWheel.setLargeLEDsUniform
, you can use the line
SpinWheel.setSmallLEDsUniform
. Like above, the three numbers represent the red, green, and blue components of the color you want to make.
SpinWheel.setSmallLEDsUniform(0, 200, 255);
void loop() { SpinWheel.clearAllLEDs();
SpinWheel.drawFrame(); }
SpinWheel.setSmallLED(2, 0, 255, 0);
void loop() { SpinWheel.clearAllLEDs();
SpinWheel.drawFrame(); }
At this point, you can modify the code above to create your own pattern that uses all of the LEDs.
We encourage you to take some time to experiment with this to create your own designs.
Consider checking out: