Diamond Heart
I made a light that beats with my pulse. I call it diamond heart.
Supplies
- Battery
- 3d Printing filament PLA/RED/Transparent
- Arduino Nano board
- Pulse sensor
- A white T-shirt
- A long usb-c cord
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
}
}
3d Modeling(the Outside)
Here are the stl files:
(Print them separately since we have a small 3d printer)
Print Out the Heart
Here are the slicing files:
Test Till Everything Worked
Here is the video:
Downloads
Put Them Together
So when they works together successfully, then we can glue them together, they happened to be like this video and pic: