Basic Breadboard LED Jack O' Lantern

by jyoon11 in Circuits > Arduino

218 Views, 0 Favorites, 0 Comments

Basic Breadboard LED Jack O' Lantern

Screen Shot 2022-10-30 at 7.20.14 PM.png

This project creates a 3D Printed Jack O' Lantern that lights up with 3 small LED Lights!

Supplies

arduinoitems.jpeg
Screen Shot 2022-10-30 at 10.49.13 PM.png

Materials

3D Printer with any color filament of your choice

Arduino Uno

Breadboard

7 Breadboard wires

3 LED Lights

6 220Ω Resistor

Screen Shot 2022-10-30 at 10.59.13 PM.png
IMG_8222.jpg

Using your 3D Printer, print any hollow Jack O Lantern. I used this Thingiverse Model: https://www.thingiverse.com/thing:1064249 ! Set the Y on the model to 50mm, and scale the model appropriately. Use a color you want your Jack O Lantern to look like!

arduinobreadboarddiagram.png
image1.jpeg

As the print finishes, set up the breadboard as shown above!

Use any color LED that matches with your 3D Print. My Jack o Lantern was yellow, so I chose red and yellow LED lights!

Screen Shot 2022-10-30 at 11.21.29 PM.png

Input the following code into the Arduino Uno:


int BASE = 2 ; 

int NUM = 3; 

void setup()

{

  for (int i = BASE; i < BASE + NUM; i ++)

  {

    pinMode(i, OUTPUT); 

  }

}

void loop()

{

  for (int i = BASE; i < BASE + NUM; i ++)

  {

    digitalWrite(i, LOW);   

    delay(30);      

  }

  for (int i = BASE; i < BASE + NUM; i ++)

  {

    digitalWrite(i, HIGH);   

    delay(30);       

  } 

}


This program will make your LEDs blink at a rapid pace, imitating a candle! Verify the code by clicking the checkmark button at the top left corner of the window to make sure you did not copy the code incorrectly.

image0.jpeg
Screen Shot 2022-10-30 at 11.28.12 PM.png

Place the 3D printed jack o lantern on top of the LEDs on the breadboard. You did it!