Kitty Yeung
Published © CC BY-NC-SA

Flowers - Arduino Nano, CrazyCircuits, DFRobot

A dress with my painting of flowers on the fabric; fireflies in the flowers blink according to wearer's heart-rate.

BeginnerFull instructions provided20 hours7,800
Flowers - Arduino Nano, CrazyCircuits, DFRobot

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Arduino Nano R3
Arduino Nano R3
×1
Crazy Circuits Robotics Board
Brown Dog Gadgets Crazy Circuits Robotics Board
×1
Brown Dog Gadgets Crazy Circuits Sewing Deluxe Kit
×1
DFRobot Gravity: Analog Heart Rate Monitor Sensor (ECG) For Arduino
×1
DFRobot Gravity: Heart Rate Monitor Sensor for Arduino
×1
Brown Dog Gadgets Conductive tape
Doesn't seem to be available in their online store yet. Please ask Joshua Zimmerman about it.
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

sewing machine (generic)

Story

Read more

Schematics

Heart-rate monitor schematics

https://www.dfrobot.com/product-1510.html

Code

Heart-rate monitor code and library

Arduino
Learn from https://pulsesensor.com/pages/installing-our-playground-for-pulsesensor-arduino
/*  PulseSensor Starter Project and Signal Tester
 *  The Best Way to Get Started  With, or See the Raw Signal of, your PulseSensor & Arduino.
 *
 *  Here is a link to the tutorial
 *  https://pulsesensor.com/pages/code-and-guide
 *
 *  WATCH ME (Tutorial Video):
 *  https://www.youtube.com/watch?v=82T_zBZQkOE
 *
 *
-------------------------------------------------------------
1) This shows a live human Heartbeat Pulse.
2) Live visualization in Arduino's Cool "Serial Plotter".
3) Blink an LED on each Heartbeat.
4) This is the direct Pulse Sensor's Signal.
5) A great first-step in troubleshooting your circuit and connections.
6) "Human-readable" code that is newbie friendly."

*/


//  Variables
int PulseSensorPurplePin = 0;        // Pulse Sensor PURPLE WIRE connected to ANALOG PIN 0
int LED13 = 13;   //  The on-board Arduion LED


int Signal;                // holds the incoming raw data. Signal value can range from 0-1024
int Threshold = 550;            // Determine which Signal to "count as a beat", and which to ingore.


// The SetUp Function:
void setup() {
  pinMode(LED13,OUTPUT);         // pin that will blink to your heartbeat!
   Serial.begin(9600);         // Set's up Serial Communication at certain speed.

}

// The Main Loop Function
void loop() {

  Signal = analogRead(PulseSensorPurplePin);  // Read the PulseSensor's value.
                                              // Assign this value to the "Signal" variable.

   Serial.println(Signal);                    // Send the Signal value to Serial Plotter.


   if(Signal > Threshold){                          // If the signal is above "550", then "turn-on" Arduino's on-Board LED.
     digitalWrite(LED13,HIGH);
   } else {
     digitalWrite(LED13,LOW);                //  Else, the sigal must be below "550", so "turn-off" this LED.
   }


delay(10);


}

Credits

Kitty Yeung

Kitty Yeung

19 projects • 184 followers
Physicist/Artist/Musician/Fashion Designer/Engineer www.kittyyeung.com
Thanks to Joshua Zimmerman.

Comments