TheTNR
Published © GPL3+

Heartbeat Lamp - Mother's Day Gift

Coming MOTHER'S DAY. Do you have any gift idea? If your answer is " NO," do you want to give to her a gift?

IntermediateShowcase (no instructions)2,265
Heartbeat Lamp - Mother's Day Gift

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
RGB Stribe Led
×1
Resistor 10k ohm
Resistor 10k ohm
×1
BD135 Transistor
×1
3D Printable Parts
×1
A Glass
×1
Mother's Picture
×1
CNC Laser Draw
×1

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Soldering iron (generic)
Soldering iron (generic)
CNC Laser Engraver

Story

Read more

Schematics

Electronic Circuit

Code

Hearbeat.ino

Arduino
This is arduino code
/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the Uno and
  Leonardo, it is attached to digital pin 13. If you're unsure what
  pin the on-board LED is connected to on your Arduino model, check
  the documentation at http://www.arduino.cc

  This example code is in the public domain.

  modified 8 May 2014
  by Scott Fitzgerald
 */
byte led=12;

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 13 as an output.
  pinMode(led, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(220);              // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(220);   
 digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(220);
  
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(500);  
}

Credits

TheTNR

TheTNR

5 projects • 153 followers
A teacher at high school. I am an electronics teacher.

Comments