Hello everyone,
Don't you want to have nice and cool earrings when you go out at night or for parties? I would, that's why I made Arduino LilyPad-controlled NeoPixel Earrings. :) These earrings don't just light up. They have several different animations and colors.
We will start the project by loading code into LilyPad first. In order to program the card, we need a Female/Female Jumper Cable and a USB Serial Converter. After installing the code, we will not have any work with USB Serial.
- Make the connection between LilyPad and the USB Serial Converter, as in the picture.
- Then connect the LilyPad with your computer using Micro USB.
- Open the Arduino software. Under Tools-Boards, select the LilyPad main board. You need to make sure that the correct board is selected.
- Select your port number. It might be a different port for you.
- Upload the code to LilyPad main board.
You can copy the NeoPixel code from Adafruit’s Github page. Here is the link: Neopixel Earring
Create a new project in the Arduino IDE. Copy the whole code and paste the code you copied here. Then click the "Upload" button and upload the code to LilyPad.
**If you haven't work with Adafruit libraries before, you might need to add some of the Adafruit libraries.
The code loading process is over, no more work with USB Serial Converter.
Step 3: NeoPixel & LilyPad ConnectionIt's time to make the LilyPad and NeoPixel connection.
First, we are wiring our cables to the GND, 5V and Input inputs on the NeoPixel. Then we will combine this with LilyPad.
The earring will be like this: we'll make connections to the NeoPixel ring with LilyPad on it; after soldering, the wires will leave some space between LilyPad and NeoPixel, so you do not have to worry about the connections.
The NeoPixel-LilyPad connection looks like this: the NeoPixel Ring’s Data In pin will be soldered to the LilyPad’s D6 pin, GND’s to the (-) and 5V’s to the (+) of the LilyPad.
Step 4: Lipo Battery & Arduino LilyPad ConnectionI used these because I had these Lipo batteries. But smaller Lipo batteries are available. You can also apply smaller Lipo batteries to the process described below.
In this section, we will perform a small operation of the LiPo battery :)
- Cut off the tip of the Lipo battery. JST 2-Pin Battery Connector Plug Male’s red wire to the Lipo battery’s red wire, soldering the black wire to the Lipo’s black wire.
- JST Lipo Battery Connector Plug Female’s red wire to the LilyPad's (+), soldering the black wire to the LilyPad's (-)
- The final state will look like the picture above. If you connect the LilyPad to the Lipo Battery, NeoPixels will start giving light for as long as the LilyPad is powered. Because we already loaded the code in the first place.
I sew the NeoPixel and LilyPad together using needles and rope from 3 different places. There are enough holes in both. You can get out of there from anywhere. Then stick the Lipo Battery with a double-sided tape on the back of the Lilypad.
Finally, you can cover up the connections with the electrical tape or silicon.
Step 6: Tighten Earring ClipsIt's all set. Finally, let's put the Earring Clip on one of LilyPad's holes. And our earrings are ready! We're ready for the party. NeoPixels are working great!
Good luck with your earrings. :)
I expect your comments for the project. You can comment your questions or contact me.
Comments