She-ra Gem Tutorial by Anna Anderson - Cosplay and Coffee

download She-ra Gem Tutorial by Anna Anderson - Cosplay and Coffee

of 13

description

This is a Powerpoint tutorial explaining how we made the gem for my She-ra chest. I hope this will help someone!

Transcript of She-ra Gem Tutorial by Anna Anderson - Cosplay and Coffee

She-ra Gem tutorial

She-ra Gem tutorial

Photo by: Shinigami Photography

Anna Anderson Cosplay And Coffee

Components: 1 ArduinoLEDBreadboard (not essential)Wire5v Power supplyMini buttonSoldering IronSolderUSB to MicroUSB adapte

Our choices and reasons:

Arduino Micro - You need 1 PWM slot for each LED, the Micro has 7 and that's what we needed for my gem. Make sure to check how many LEDs you are planning to use before buying your Arduino .Minty Boost Power Supply You need to choose a power supply that works best for the amount of LEDs you plan to use. In my case we picked the Minty Boost Power Supply that uses 2 AA batteries this gave me about 10h of battery life with lights on. The second important thing was easy battery replacement .(requires some basic soldering for assembly)

Ardiuno Micro Schematics

Assembly:LEDs were mounted in the breadboard, ensuring each LED lead is on a separate line. (1)

LEDs take up 2 lines, 1 for power and 1 for grounding, although all ground wires can run off the same breadboard line (2).

Connect the other LED lead to the PWM slots of the Arduino. In this picture were using an Arduino UNO ( for testing), and as such it is a solderless solution. If you are using the Micro you will need to solder the cables into the Arduino. Don't forget about your ground wire as well! (3)NOTE: On the breadboard and using the UNO (or other solderless solutions) you can secure the wires using a hot glue gun. This will prevent them from coming out/loose.

Ground wire(1) (2)(3)You don't have to use the breadboard, you can connect your LEDs to the Ardiuno directly.

For example: if you need lights in different parts of your costume but controlled by the same Adriano you can use long wires and install LEDs in desired locations.

Needs to be solderedYou can use any wire length AssemblySelect a non-PWM slot and attach a wire from it onto a button. Then ground the button back to the board.

Now plug your Arduino into the PC and upload your project* to it.

*More details about how to program the ardiuno on other slides.AssemblyThe Minty Boost ( your power source) requires soldering, but the tutorials are very clear and easy to follow. It comes with a neat case you can use if needed ( you don't have to I didn't )

Once assembled connect the Arduino to the Minty Boost using a USB to MicroUSB adapter and voila LET THERE BE LIGHT

Minty Boost - before

Minty Boost - assembled

Your Project Programming the ArdiunoArduino is an open source electronic platform, with software based loosely on the C programming language. There is a very active online community, and many tutorials and how to guides scattered around the internet. These are some links that I found helpful.

To download the Arduino Software: https://www.arduino.cc/en/Main/SoftwareThe Official Arduino learning pages: https://www.arduino.cc/en/Guide/HomePageThe Arduino Forums: https://forum.arduino.cc/Code used for She-Ra gem(7LEDs)int ledPin1 = 3;int ledPin2 = 5;int ledPin3 = 6;int ledPin4 = 9;int ledPin5 = 10;int ledPin6 = 11;int ledPin7 = 13;byte b1 = 0;int butOn = 12;boolean blOn = true;

byte Data1[]={2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};byte Data2[]={100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5};byte Data3[]={237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255};byte Data4[]={187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200};byte Data5[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};byte Data6[]={0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};byte Data7[]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2.5,5,7.5,10,12.5,25,37.5,50,62.5,75,87.5,100,112.5,125,137.5,150,162.5,175,187.5,200,212.5,225,237.5,255,237.5,225,212.5,200,187.5,175,162.5,150,137.5,125,112.5,100,87.5,75,62.5,50,37.5,25,12.5,10,7.5,5,2.5,0,0,0,0,0,0,0,0,0};

void setup()Code used for She-Ra gem(7LEDs){ pinMode(ledPin1,OUTPUT); pinMode(ledPin2,OUTPUT); pinMode(ledPin3,OUTPUT); pinMode(ledPin4,OUTPUT); pinMode(ledPin5,OUTPUT); pinMode(ledPin6,OUTPUT); pinMode(ledPin7,OUTPUT); pinMode(butOn,INPUT); digitalWrite(butOn,HIGH);}

void loop(){ for(b1=0; b1