├── video-play.png
├── connections.png
├── screenshot-threshold-arrows.png
├── Arduino-LEDonPin13-PulseSensor-Pic.jpg
├── README.md
└── PulseSensor_StarterProject_Arduino
└── PulseSensor_StarterProject_Arduino.ino
/video-play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WorldFamousElectronics/PulseSensorStarterProject/HEAD/video-play.png
--------------------------------------------------------------------------------
/connections.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WorldFamousElectronics/PulseSensorStarterProject/HEAD/connections.png
--------------------------------------------------------------------------------
/screenshot-threshold-arrows.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WorldFamousElectronics/PulseSensorStarterProject/HEAD/screenshot-threshold-arrows.png
--------------------------------------------------------------------------------
/Arduino-LEDonPin13-PulseSensor-Pic.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WorldFamousElectronics/PulseSensorStarterProject/HEAD/Arduino-LEDonPin13-PulseSensor-Pic.jpg
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | 
3 |
4 |
5 |
6 | ## Getting Started Code / PulseSensor & "Arduino"
7 |
8 | [](https://youtu.be/RbB8NSRa5X4)
9 |
10 |
11 |
12 |
13 | 
14 | * Newbie-friendly code.
15 | * Live visualization of Raw Pulse Signal in Arduino's cool "Serial Plotter".
16 |
17 |
18 | 
19 | * Blink an LED (on Pin 13) with your heartbeat! 💓
20 |
21 |
22 | 
23 | * A great first-step in troubleshooting your circuit, connections, and project!
24 |
25 | ------------------------------------------------------
26 | ##### Legal: PulseSensor.com™ World Famous Electronics llc. in Brooklyn, NY. USA
27 | ------------------------------------------------------
28 | Made Something Awesome With the PulseSensor Code? Send Us Some PayPal Love. ♥︎
29 | [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KE4DZA5E9AJQ4)
30 |
--------------------------------------------------------------------------------
/PulseSensor_StarterProject_Arduino/PulseSensor_StarterProject_Arduino.ino:
--------------------------------------------------------------------------------
1 |
2 | /* PulseSensor™ Starter Project http://www.pulsesensor.com
3 | *
4 | This an Arduino project. It's Best Way to Get Started with your PulseSensor™ & Arduino.
5 | -------------------------------------------------------------
6 | 1) This shows a live human Heartbeat Pulse.
7 | 2) Live visualization in Arduino's Cool "Serial Plotter".
8 | 3) Blink an LED on each Heartbeat.
9 | 4) This is the direct Pulse Sensor's Signal.
10 | 5) A great first-step in troubleshooting your circuit and connections.
11 | 6) "Human-readable" code that is newbie friendly."
12 |
13 | */
14 |
15 |
16 | // Variables
17 | int PulseSensorPurplePin = 0; // Pulse Sensor PURPLE WIRE connected to ANALOG PIN 0
18 | int LED13 = 13; // The on-board Arduion LED
19 |
20 |
21 | int Signal; // holds the incoming raw data. Signal value can range from 0-1024
22 | int Threshold = 550; // Determine which Signal to "count as a beat", and which to ingore.
23 |
24 |
25 | // The SetUp Function:
26 | void setup() {
27 | pinMode(LED13,OUTPUT); // pin that will blink to your heartbeat!
28 | Serial.begin(9600); // Set's up Serial Communication at certain speed.
29 |
30 | }
31 |
32 | // The Main Loop Function
33 | void loop() {
34 |
35 | Signal = analogRead(PulseSensorPurplePin); // Read the PulseSensor's value.
36 | // Assign this value to the "Signal" variable.
37 |
38 | Serial.println(Signal); // Send the Signal value to Serial Plotter.
39 |
40 |
41 | if(Signal > Threshold){ // If the signal is above "550", then "turn-on" Arduino's on-Board LED.
42 | digitalWrite(LED13,HIGH);
43 | } else {
44 | digitalWrite(LED13,LOW); // Else, the sigal must be below "550", so "turn-off" this LED.
45 | }
46 |
47 |
48 | delay(10);
49 |
50 |
51 | }
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------