TheTNR
Published © GPL3+

Voronoi Heart Lamp

A beautiful and stylish light project, the Voronoi Heart Lamp.

BeginnerFull instructions provided3,952
Voronoi Heart Lamp

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Resistor 330 ohm
Resistor 330 ohm
×1
5 mm LED: Red
5 mm LED: Red
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
3D Printer (generic)
3D Printer (generic)
Epoxy Resin

Story

Read more

Schematics

circuit1_49nQCcFQal.png

Code

pwm for heart.ino

Arduino
int ledPin = 3;
void setup() {
  // nothing happens in setup
}

void loop() {
  // fade in from min to max in increments of 5 points:
  for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5) {
    // sets the value (range from 0 to 255):
    analogWrite(ledPin, fadeValue);
    // wait for 30 milliseconds to see the dimming effect
    delay(50);
  }

  // fade out from max to min in increments of 5 points:
  for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5) {
    // sets the value (range from 0 to 255):
    analogWrite(ledPin, fadeValue);
    // wait for 30 milliseconds to see the dimming effect
    delay(50);
  }
}

Credits

TheTNR
5 projects • 156 followers
A teacher at high school. I am an electronics teacher.
Contact

Comments

Please log in or sign up to comment.