Diamond Heart

by speng9 in Workshop > 3D Printing

23 Views, 1 Favorites, 0 Comments

Diamond Heart

IMG_2505.jpg

I made a light that beats with my pulse. I call it diamond heart.

Supplies

  1. Battery
  2. 3d Printing filament PLA/RED/Transparent
  3. Arduino Nano board
  4. Pulse sensor
  5. A white T-shirt
  6. A long usb-c cord

Circuit and Code(make the Inside Work)

IMG_2243 2.JPG
IMG_2245 2.JPG
IMG_2237 2.JPG

The running code:

// Pin Definitions

const int heartbeatPin = 2; // Pin connected to heartbeat sensor signal

const int ledPin = 3;    // Pin connected to LED

void setup() {

  pinMode(heartbeatPin, INPUT); // Set heartbeat pin as input

  pinMode(ledPin, OUTPUT);   // Set LED pin as output

}

void loop() {

  // Read the heartbeat sensor's signal

  int heartbeat = digitalRead(heartbeatPin);

  if (heartbeat == HIGH) { // Heartbeat detected

    digitalWrite(ledPin, HIGH); // Turn on the LED

  } else {

    digitalWrite(ledPin, LOW); // Turn off the LED

  }

}

3d Modeling(the Outside)

截屏2024-11-20 上午1.37.42.png
截屏2024-11-20 上午1.37.49.png

Here are the stl files:

(Print them separately since we have a small 3d printer)


Print Out the Heart

IMG_2350.JPG

Here are the slicing files:

Test Till Everything Worked

Here is the video:

Put Them Together

IMG_2505.jpg

So when they works together successfully, then we can glue them together, they happened to be like this video and pic: