Skip to content

Instantly share code, notes, and snippets.

@mock-turtle
Created November 23, 2015 00:47
Show Gist options
  • Save mock-turtle/f43ac7c307a4da94261e to your computer and use it in GitHub Desktop.
Save mock-turtle/f43ac7c307a4da94261e to your computer and use it in GitHub Desktop.
How to upload your own code & recharge the batteries.
Uploading a new code:
1. Take the battery out.
2. Download the arduino programming application: https://www.arduino.cc/en/Main/Software
3. Download the required libraries. To do this, open the arduino application.
Go to Sketch>Include Library>Manage Libraries.
There will be a popup with a list of libraries you can install.
The ones you need are called FastLED and IRremote.
Use the search bar in the popup window to find them, then click install.
4. Plug the microcontroller(arduino) into your computer.
The microcontroller is the one with a bunch of metal legs that looks like a robot centipede.
You need a USB to mini-USB cord for this, like the kind you charge your phone with.
The big side of the USB goes into the computer and the small side goes into the microcontroller.
There’s a little blue light on the arduino that will turn on when it’s plugged in.
5. Put in the right settings on the arduino app.
To do this, go to Tools>Board and select “Arduino Micro”. Then go to Tools>Programmer and select “AVRISP mkll”.
((I forget if you need to change the port as well or if it happens automatically.))
((Just go on to the next step for now & if it doesn’t work then that probably means you’ll need to select the right port.))
6. Open a new window and paste the updated code from here: https://gist.github.com/mock-turtle/be0fa63a1f409bdd034f
7. Click on upload.
8. Test that it works.
You don’t need the battery since there’s power coming from the USB.
Try pressing the play button on the remote to see if it cycles through colours on its own.
Keep in mind though that there’s a 3 second delay at the beginning of the program where it won’t read any button presses because it’s setting up.
9. Let me know if it works!!
You can also play around with the colour names, speed of the effects etc to get it to your liking.
Misc Battery Info:
The positive side is the one with the dent. The negative side is flat.
The positive end slides into the tab with red wires attached. The negative end slides into the tab with black wires.
Take the battery out of the cloud to store it to be safe.
Charging:
(using the little green board w 2 wires)
1. The positive end of the battery goes to the wire attached to BAT+.
The negative end goes to BAT-.
2. Plug the charging board into a USB port (on a computer, into a wall charger.. doesn’t matter) using a USB to mini-USB cord.
3. Let it charge, but keep an eye on it.
Don’t leave it on anything flammable.
Li ion batteries are a little more dangerous than AAs.
4. There’s a green light on the charging board that will light up when it’s fully charged.
Try not to let it keep charging past this point.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment