Posts Tagged ‘ trinket

New Project: Adafruit Trinket NeoPixel LED Longboard

My son and I recently tackled the “Adafruit Trinket NeoPixel LED Longboard” project: Seemed like it would be a good cross between 3d-printing, electronics, and skateboards.  After running through it though, I found a number of problems with the instructions which I submitted here (if you’re going to do this project, be sure to read them).  Unfortunately at the time of this authoring they haven’t updated their project page to address the problems.

In a nutshell, this is what you need to look out for:

  • Need to order two Neopixel LED strips, not one.
  • There are problems with the wiring instructions, based on missing data.
  • Unless you have ninjaflex or nylon, you may want to entirely skip printing/assembling the front ring enclosures:  I printed mine in solid PLA, and they vibrated apart after the first ride (snapping the internal wiring in the process).
  • If you do print the rings, you really do need to use “wire wrap” to do all the wiring:  Larger gauge wire just won’t fit based on the printed models.  The problem I have with this is although you only need a small amount of wire wrap for the project, it’s best if everything is color coded, and buying wire-wrap in multiple colors actually gets a bit expensive.  I ended up using just two colors, and having to label all the wires (which pretty-much makes it impossible to fix if they snap after everything is assembled).

Overall it was a fun project, just seriously hindered by the confusing instructions, based on other issues I list in the above link.

Here’s the end result before the rings fell apart (and I removed them).  Note the metal bracket over the electronics enclosure and front of the  skateboard:  One jumped curb and you’ll have some smashed equipment without it.

First steps with the Adafruit Trinket

I recently picked up a Adafruit Trinket (3.3v), simply because they’re so cheap (about $8).  I like the idea of a tiny small Arduino-ish board.  Since I’m forgetful, below documents the overall process I got to get it working.

End result:  Franken-servo!

End result: Franken-servo!

Resource Links:

First Steps:

For all the documentation on the web, I really wasn’t sure where to start.  There’s all this talk of installing AVRDUDE, etc, but as it turns out it’s really not needed (if using the Arduino IDE). Here’s the streamline approach I finally took:

  • Setup my pre-existing Arduino IDE for use with the Trinket, following these Adafruit docs.
  • Since I’m on a Mac, I didn’t have to worry about installing any drivers, but the “Mac Arduino IDE” app download they provided didn’t work.  Mac said it was “corrupted”.  So instead I had to use the “Slow Way” example they gave.  And other than a few path differences it worked just fine.

Programming:

  • I was able to successfully run all their examples from the page “Programming with Arduino IDE“.
  • Earlier in the day I had done some servo programming on an Arduino, and I wanted to emulate it on the Trinket.  Thanks to the “Trinket Servo Control” tutorial, and their “Adafruit SoftServo” library, I was able to make it happen.  However, I was unable to create two separate servo objects:  I think I don’t quite grasp the Trinket pinouts.  The above image has two servo’s hooked up to the same pin, so they move the exact same way.

So a successfully first attempt.  Next up, I really need some batteries to make a standalone project with it…