Hackster is hosting Hackster Holidays, Ep. 4: Livestream & Giveaway Drawing. Watch now!Tune in to Hackster Holidays, Ep. 4 now!
Lenna Galanis
Published © LGPL

NEON LED Heart LAMP

Create this DIY 3d printed heart shaped lamp with NEON LED'S!

IntermediateFull instructions provided20 hours203
NEON LED Heart LAMP

Things used in this project

Hardware components

LED (generic)
LED (generic)
×4
Arduino Nano
×1
Resistor 330 ohm
Resistor 330 ohm
×4
Gravity:Digital Push Button (Yellow)
DFRobot Gravity:Digital Push Button (Yellow)
×1
Resistor 1k ohm
Resistor 1k ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Solder Wire, 0.022" Diameter
Solder Wire, 0.022" Diameter
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

Schematics

Code

Code for DIY LED Heart

Arduino
int button7 = 8;
int led2 = 2;
int led3 = 3;
int led4 = 4;
int led5 = 5;
int status = false;

void setup(){
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(led5, OUTPUT);

pinMode(button7, INPUT_PULLUP); 
}

void loop(){

  if (digitalRead(button7) == true) {
    status = !status;
    digitalWrite(led2, status);
    digitalWrite(led3, status);
    digitalWrite(led4, status);
    digitalWrite(led5, status);



    } while(digitalRead(button7) == true);


    
delay(50);
}

Credits

Lenna Galanis

Lenna Galanis

1 project • 2 followers
Hey all, I am an architect by profession and enjoy working with arduino. Very much a beginner and enjoying the journey.

Comments