Giter VIP home page Giter VIP logo

pulsesensor_amped_arduino's Introduction

logo

Pulse Sensor Arduino Code

  1. Blinks an LED to User's Live Heartbeat
  2. Fades an LED to User's Live HeartBeat
  3. Determines BPM
  4. Prints All of the Above to Serial

Screen Shot

ScreenShot

Installing

  1. Download ZIP on this page: Download

  2. Take the PulseSensor_Amped_Arduino-master.zip file, and move it to your Documents/Arduino folder.

  3. Unzip PulseSensor_Amped_Arduino-master.zip in your Documents/Arduino folder.
    This properly installs your files

  • Double-click on PulseSensorAmped_Arduino_1dot2.ino filesys

  • Or, 0pen project in *Arduino via File > Sketchbook > PulseSensor_Arduino-Master > PulseSensorAmped_Arduino_1dot2.ino sketchbook

Pulse Sensor Hook-up

Arduino Pin Pulse Sensor Cable Color
RED 5V or 3V
BLACK GND (GROUND)
PURPLE ANALOG 0 (Zero)

cablehookup

Ear-Clip or Finger-Strap Config

Picture Picture

##Variables to Note

Variable Name What it does
Signal Int that holds **raw Analog Input data on Pin 0, the Pulse Sensor's Purple Cable. It's updated every 2mS.
BPM Int that holds the heart-rate value, derived every beat, from averaging previous 10 IBI values.
IBI Int that holds the time interval between beats! Must be seeded!
Pulse Boolean that is true when a heartbeat is sensed. It's false other times. It controls LED Pin 13.
QS Boolean that is true whenever Pulse is found and BPM is updated. User must reset.

Works with Pulse Sensor Apps

This Arduion App works with:

ASCII Serial Monitor Visuals

See the User's Pulse & BPM without leaving Arduino. Open the serial monitor for this ASCII visualization.

  • To Open Serial Monitor: Arduino >> Tools >> Serial Monitor asciiviz

To Turn On ASCII Visualizer:

// Regards Serial OutPut  -- Set This Up to your needs
static boolean serialVisual = false;   // Set to 'false' by Default. 

too:

// Regards Serial OutPut  -- Set This Up to your needs
static boolean serialVisual = true;   // Re-set to 'true' to do ASCII Visual Pulse  : ) 

That's it's! Upload and open your Arduino Serial Monitor.

(Advanced) Timer Interrupt Notes / PWM on Pin 3 & 11

There is a tab in the Arduino code called Timer_Interrupt_Notes. This page describes how to set up the Timer interrupt depending on which version of Arduino you are using, and what other things you may want to do with your sketch. Please read it carefully!

PWM on pins 3 and 11 will not work when using this code, because we are using Timer 2!

The Video

"The Pulse Sensor in 60 Seconds"

pulsesensor_amped_arduino's People

Contributors

yurygitman avatar joelsensor avatar biomurph avatar

Watchers

James Cloos avatar Mo Ben-Zacharia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.