Heartbeat Valentine

by idealab in Craft > Art

1178 Views, 12 Favorites, 0 Comments

Heartbeat Valentine

20160213_175655-1.jpg
2016-02-13_21_40_02.gif

At the last minute I decided to make a valentine using a 3D printed heart I made in Tinkercad.

It came out ok but I felt like it needed more so I programmed an Attiny85 to blink an LED in a heartbeat pattern.

Click HERE to learn how to program Attiny85.

Finding the Blink Example

learn_arduino_opening_blink_example.jpg

Once you got the hang of programming the Attiny85 you just need to upload the blink sketch from the examples.

Here is the one I edited.

// the setup function runs once when you press reset or power the board
void setup() {

// initialize digital pin 2 as an output.

pinMode(2, OUTPUT);

}

// the loop function runs over and over again forever

void loop() {

digitalWrite(2, HIGH);

delay(100);

digitalWrite(2, LOW);

delay(100);

delay(250);

digitalWrite(2, HIGH);

delay(100);

digitalWrite(2, LOW);

delay(100); }

Downloads

Making the Connections

56bf9278937ddb77fb00108a.jpeg

I probably should of used a resistor but I just chose to keep it simple and don't care if this doesn't last.

Like I said earlier it was last minute.

After soldering the wires I just broke off the pins I didn't need.

ATTiny85 Connection

Heartbeat.PNG
52713d5b757b7fc0658b4567.png

Here is a drawing I made to show how to make the connections. Pay close attention to the half circle at the top of the attiny85 image. The drawing I made is upside down.

Connecting

20160213_084411.jpg
20160213_084425.jpg

I soldered the connections together and used some heat shrink.

Making the Base

20160213_084911_001.jpg
20160213_084944.jpg

I used the 3D printed heart to trace the shape I needed on some thick construction paper and used some scissors to cut out.

Tape Down

20160213_085756.jpg
20160213_085749.jpg

Used some double sided tape to secure to bottom of base.

Time for Hot Glue

56bfa53c15be4d3ddf0003a3.jpeg

I started to use hot glue for securing the wire to the base.

Then I bent the LED into place.

Build the Enclosure

20160213_103702.jpg
20160213_103632.jpg
56bfa7064936d4f2d40003db.jpeg
20160213_111359.jpg

I had some foam board and use this to make my enclosure.

I cut 4 squares roughly 3x3 and then traced my heart to cut the shape into three of the four layers.

Then I hot glued each peace together.

I placed the base with the circuit at the bottom and trimmed the edges of the foam board.

After hot gluing all the pieces together the heart just fit into the top snugly.

The hard part for me was trying to cut the enclosure in the shape of a heart with an x-acto.

I took a jewelers saw with a 3/0 blade that did the job just right.

Could use some tips please for alternative method for cutting thick pieces of foam board in the future. Using an x-acto is just out of my patient zone.

That's it, Enjoy