0

Gemma NeoPixel Jewel Earrings
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Gemma NeoPixel Jewel Earrings

by egutting on Mon Nov 17, 2014 11:09 pm

I've wanted to do a wearables project for a while and this is my first foray into them. They are earrings for my sister-in-law. I used a gemma, tiny lipo and a neopixel jewel to "fashion" them. I was going to do the hoop earrings from the learning system, but thought the jewels would be a lot more fun. Modified the code from the hoops to just "sparkle". I also did a no-no and used hot glue to attach everything (Becky, I apologize in advance).

Here's a short video of them:
https://www.youtube.com/watch?v=WiuQnOJOyxg

Also, a link to my blog post for a quick tutorial:
http://blog.cup-of-joe.me/?p=299

Code: Select all | TOGGLE FULL SIZE
// Low power NeoPixel earrings example.  Makes a nice blinky display
// with just a few LEDs on at any time...uses MUCH less juice than
// rainbow display!
 
#include <Adafruit_NeoPixel.h>
 
#define PIN 0
 
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(7, PIN);
 
uint8_t  mode   = 0, // Current animation effect
         offset = 0; // Position of spinny eyes
uint32_t color  = 0xffae00; // Start red
uint32_t prevTime;
 
void setup() {
  pixels.begin();
  pixels.setBrightness(60); // 1/3 brightness
  prevTime = millis();
}
 
void loop() {
  uint8_t  i;
  uint32_t t;
 
  switch(mode) {
 
   case 0: // Random sparks - just one LED on at a time!
    i = random(7);
    pixels.setPixelColor(i, pixels.Color(0,128,128));
    pixels.show();
    delay(100);
    pixels.setPixelColor(i, 0);
    break;
 
   
  }
 
 
}
Last edited by egutting on Tue Nov 18, 2014 10:29 am, edited 1 time in total.

egutting
 
Posts: 297
Joined: Wed Nov 14, 2012 12:57 am

Re: Gemma NeoPixel Jewel Earrings

by adafruit_support_bill on Tue Nov 18, 2014 6:57 am

Very nice! I'm sure Becky (and your sister in law) will like those. Thanks for the video!

adafruit_support_bill
 
Posts: 74337
Joined: Sat Feb 07, 2009 10:11 am

Re: Gemma NeoPixel Jewel Earrings

by gboni on Wed Dec 03, 2014 6:02 pm

Hi,
I followed the tutorial for the GEMMA hoop earrings and have it working. How do I go about programming the lights to make them do what I want to? Particularly I'm looking to have the full ring lit up and then diminish about every 2 seconds by turning off first 1&16 simultaneously, then 2&15, followed by 3&14, an so on in a repetitive pattern until all the lights turn fully off.

gboni
 
Posts: 1
Joined: Wed Dec 03, 2014 5:58 pm

Re: Gemma NeoPixel Jewel Earrings

by bcochran1 on Wed Dec 03, 2014 6:46 pm

Is there a bill of materials for the earrings?

Thanks

Bob

bcochran1
 
Posts: 351
Joined: Mon Jan 21, 2013 10:46 pm

Re: Gemma NeoPixel Jewel Earrings

by egutting on Wed Dec 03, 2014 6:54 pm

gboni,
Within the loop you would adjust the pixels. Follow the logic there and you can use pixels.setPixelColor and pixels.show and delays to do what you want.

Bob,
For these earrings, you would use the same bill of materials as listed here:
https://learn.adafruit.com/gemma-hoop-earrings/tools-and-supplies

I just changed the neopixel ring for the neopixel jewel located here:
https://www.adafruit.com/products/2226

egutting
 
Posts: 297
Joined: Wed Nov 14, 2012 12:57 am

Re: Gemma NeoPixel Jewel Earrings

by bcochran1 on Wed Dec 03, 2014 7:29 pm

Thank you!

Bob

bcochran1
 
Posts: 351
Joined: Mon Jan 21, 2013 10:46 pm

Please be positive and constructive with your questions and comments.