How to Reprogram the Tesla-tronic Programmable Pins

Blue Moon Designs latest creation, the Tesla-tronic Programmable Pin, allows you to change the pattern and color of the glowing LED embedded in the pin to any pattern or color you wish.  The Blue Moon Designs page on Codebender features a variety of programs that you can program your own pin with, including single-color pulsing, flickering, and multicolored rainbow sequences. 

This rest of this page includes instructions for how to reprogram your pin.

1. Choose your method:

There are two methods you can use to enter new programming into your pin:

A. Use the Arduino IDE app to save the code to your computer and upload it from there.  This method is a good choice if you are already a little familiar with Arduino microcontrollers.  You'll need to also install additional board drivers which will allow the Arduino IDE to talk to the Adafruit Gemma board.  Simply follow the instructions from the linked pages to complete these two steps.

B. Use the Blue Moon Designs' page on the Codebender website to edit and upload new code.  This method is a good choice for people who are less familiar with Arduino and/or programming microcontrollers.  You'll need to add the Codebender plugin to your web browser, and you'll want to select Adafruit Gemma 8mhz from the list of available boards.

2. Connect the board:

Connect the micro-USB cable to the circular microcontroller board on the back of the pin, and connect the other end to your computer. Note that the particular board I've used sometimes has a difficult time entering bootloader mode (described in the step below) when connected to a USB 3.0 port, so you might need to use a USB hub in between the board and your computer.

3. Bootloader mode:

Before you can send the new program to your pin, it must be in what is known as bootloader mode -- this means that the board is listening for a new program to be sent from your computer.  Simply press the tiny black button located opposite the on/off switch on the front of the board / back of the LED pin to get the board into bootloader mode.

When the Gemma board is in bootloader mode, the tiny built-in red LED will pulse on and off for about ten seconds. 

This video shows what bootloader mode looks like (on a different style of board, but the pulsing is the same):

4. Upload new code:

While the red light is flashing (indicating bootloader mode), click the Run on Arduino button (from Codebender) or the Upload (arrow) button (from the Arduino IDE) to send your new code to the pin.  It should begin running the new light sequence almost immediately.  If it doesn't, check the error messages that you may have gotten to see if you can figure out what the problem is.

Cannot find XX - This message occurs if you have not selected the correct type of board from the list of available boards. Make sure you select Adafruit Gemma 8mhz.

Broken Pipe - Make sure you click the Run on Arduino or Upload button while the pin is still in bootloader mode -- otherwise the board is not listening for the code that you are trying to send it.

5. Enjoy your new program!

If you've completed all the steps above, your new program / new light sequence should be running on your pin.  Success!

 

Sample Code:

The code featured below is the BlueMoon_Flicker pattern, which displays a random flickering flame pattern in yellow (by default), but you can change the light color as indicated in the code to display other colors.

The Tea Engine

My entry for BarBot 2013, the Tea Engine is a robotically controlled tea service made from an antique coffee percolator set from the mid-1920s.  Those wishing tea simply need to dial the number on the rotary dial that corresponds to how they take their tea (2 for tea, 4 for tea with milk, 6 for tea with sugar, and 8 for tea with milk and sugar).  An Arduino microcontroller reads the number of pulses from the dial and opens for a set number of seconds to dispense the proper amount of tea, milk, and sugar.

The Tea Engine has been featured on Tested.com - photos - video - and in the Oakland Tribune.

Fire Fairy costume

           
             
               

“Born from the ashes, the Phoenix rises...”

This ensemble features a gold organza petticoat with animated EL flame effects, a matching blouse with flame-like fabric sleeves, EL flame tiara, and fabric dread falls.  Modeled by Alexiis.

The Cocktail Corsage - a flirt-powered cocktail robot

My first entry in the annual BarBot festival of cocktail robotics (2012 edition) was a rather unobtrusive wearable drinkbot called the Cocktail Corsage.  In order to be served a drink, the thirsty person has to flirt with the wearer of the drinkbot and get her excited.

A solenoid valve at my elbow controls the flow of bourbon from a reservoir on my upper arm, and tubing brings the liquid down to a faux flower wrist corsage where it dispenses from the center.  The "brains" of the operation is an Arduino microcontroller in my pocket which is wired to a temperature-sensitive sensor called a thermistor that is clipped to an ... um ... sensitive part of my anatomy.  Once my temperature gets above a certain point (an indication of physical arousal), an LED light in the flower lights up for 10 seconds to indicate that the drink is about to pour, then the corsage dispenses a shot of bourbon to the lucky recipient.

The Cocktail Corsage was my first step along the path towards creating the Cocktail Dress, which will incorporate numerous biofeedback sensors programmed to measure flirtatiousness and arousal.  As the sensors are triggered, the dress's embedded LED lights will twinkle in progressively more active patterns until the thirsty flirter is served his or her drink.

CandidCocktailCorsage.jpg

Love Letter to Hips

In early 2012, I was introduced to Janet Gallin, whose Love Letters Live! program is a testament to the magic of hand-written, heartfelt sentiments.  Janet was kind enough to interview me for her show, where we discussed my family, upbringing, and my very own love letter to your hips.  Yet another achievement in my one-woman campaign for positive body image through fashionable accessories!
Listen to the interview, or read the article in the San Francisco Examiner.  One of my favorite parts : 

"I had never before thought of a tool belt as a sexy accessory. Thank you Katherine Becvar for wanting to adorn those hips instead of struggling to camouflage them."

FabulousHips

My love letter to hips

Dear gorgeous,

This letter is addressed to every woman who’s ever despaired that her hips are too big, unattractive, or otherwise shaped wrong.

My dear, you really have no idea how lovely your curvaceous curves are!  Like a blushing ripe apple, ready for someone to take a crisp bite.  Yum!

Your hips are an extension of your root, the axis of your body’s strength and power.

They are a sign and symbol of your femininity and allure, setting your lover’s heart aflame with just a shimmy and a twist.

Why do you suppose women throughout history have endured boning, strapping, lacing, and such other forms of architecture?  Why, to get the hip curve that you were born with!

Trust me, in my line of work, I’ve seen a lot of hips.  And they are all gorgeous!  Just as gorgeous as yours.

Hips are who we are and how we’re built.  They are a sign of health and strength.  Never believe that your hips aren’t just perfect -- because they are.

Love, Katherine the Great                            

You can listen to the full interview here.