Introduction: Diamond Heart

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

Step 1: Circuit and Code(make the Inside Work)

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

  }

}

Step 2: 3d Modeling(the Outside)

Here are the stl files:

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


Step 3: Print Out the Heart

Here are the slicing files:

Step 4: Test Till Everything Worked

Here is the video:

Step 5: Put Them Together

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