Mini Jack-O-Lantern
For this project I have chosen to take an LED light and us it to light up a tiny pumpkin. Halloween has always been my favorite holiday and I have wanted to create a mini jack-o-lantern for the longest time but I could never find a candle small enough for the side of Jack-O-lantern I wanted to make so I came up with this idea.
STEP 1 Get Your Materials Together in the Area You Will Use to Create the Product
-Elegoo Board
-LED Light Sensor
-Tiny Pumpkin
-Code to make the LED work
-knife
-Arduino
Code that will be used
void setup() { pinMode(1,OUTPUT); pinMode(2,OUTPUT); pinMode(3,OUTPUT); pinMode(4,OUTPUT); pinMode(5,OUTPUT); pinMode(6,OUTPUT); pinMode(7,OUTPUT); pinMode(8,OUTPUT); pinMode(9,OUTPUT); } void loop() { int i; // 1st pattern repeat 4 times for(i=1; i<=10; i++) { digitalWrite(i,HIGH); delay(50); digitalWrite(i,HIGH); delay(50); } for(i=10; i>=1; i--) { digitalWrite(i,HIGH); delay(50); digitalWrite(i,LOW); delay(50); } delay(1000);
STEP 2 Put Elegoo Board Together As Instructed Below
STEP 3 Open Arduino and Click Verify
STEP 4 Hook Up Elegoo Board to Computer for the LED to Light Up
STEP 5 Cut a Small Hole in the Bottom of the Pumpkin and a Face in the Front So the Light Will Shine Through
Please be careful and safe when using a sharp knife!