Hearts A'Bursting

by emasmith in Circuits > Art

631 Views, 8 Favorites, 0 Comments

Hearts A'Bursting

Hearts A'Bursting

I made this for a competition a week ago, and I guess my inspiration comes from Valentines Day, but of course a valentines heart wouldn't work. That's why I took valentines day and beefed it up a bit.

What I used:

a 3D printed heart I found on Thingiverse

An Arduino Uno

A servo

Hot Glue

Acrylic paint

(wire is optional)

Wiring Up Your Servo and Programming

servo.png
20170120_211020_1485537751191.jpg

To set up the servo, I used this diagram, except I had the wires going directly to the Arduino without the use of a breadboard. For the programming I used https://www.arduino.cc/en/Tutorial/Sweep, and changed pos+= #.

setup() {

myservo.attach(9); // attaches the servo on pin 9 to the servo object}

void loop() {

for (pos = 0; pos <= 180; pos += 90) { // goes from 0 degrees to 180 degrees // in steps of 90 degrees myservo.write(pos); // tell servo to go to position in variable 'pos'

delay(15); // waits 15ms for the servo to reach the position

}

for (pos = 180; pos >= 0; pos -= 90) { // goes from 180 degrees to 0 degrees

myservo.write(pos); // tell servo to go to position in variable 'pos'

delay(15); // waits 15ms for the servo to reach the position }}

Putting It Together

20170120_211017_1485537751931.jpg

http://www.thingiverse.com/thing:1937314 is the link to the heart that I decided to print. I chose this one because it comes in two parts.

Once this was done, I glued the servo into it, and tested one last time to make sure it was functioning. After this I glued it all together and decorated. This can be done however you like. I also used the glue to make it look like drops of blood were running out.