Awesome Open Source
Awesome Open Source

logo Playground

How To Update Your Playground Code

This Playground is a collection of code for the most popular uses of PulseSensor and Arduino.  

- Use this code to get started quickly, or do advanced stuff. 👍
- Playground code is already written-out and commented! 🤘 
- Switch between projects right in the Arduino IDE (software). 💻
- Contribute your project's code back to the GitHub hive-mind. 🐝

Buy Verified ""

Where to buy Verified Sensors 💰

Connecting the Harware 😎

Easy Setup

  1. Prepare the sensor, with the Kit parts.
  1. See the recommended wiring for your specific project

Loading the Playground

Steps For Loading the Playground in Arduino 🤓

An Arduino Library is a collection of code and examples on a specific topic or device. For example, our PulseSensor Playground Library is a collection of code and projects made just for your PulseSensor and Arduino.

(NOTE If you do not have Arduino, you can download it here)

To install the PulseSensor Playground Library, in Arduino, to go Sketch > Include Library > Manage Library...

In the Library Manager: Search for and Select "

Install or update to the latest version.👍

Hurray! Once this library is installed you will see our examples in Arduino's dropdown! To select an example project, go to: File > Examples > PulseSensor Playground > GettingStartedProject

More Info On Libraries in General 👉

Playground Project Descriptions:

Tinker and Experiment with Popular Projects 👩🏽‍💻👩🏻‍🔬

The "Getting Started" Project:  

Plug your sensor in for the first time! Blink an LED with your pulse, live.

Calculate BPM:

Focus-in on the code that calculates a user's HeartRate Beats Per Minute, "BPM".
See the best practises to get the best signal.

Make A Sound to a live Heartbeat:

Transform the heartbeat into a live "beep" with a speaker.

Move a Motor to a live Heartbeat:

Make a servo motor pulse to your live heartbeat.

Connect Two (or more) Pulse Sensors:

Use 2 or more Pulse Sensors on one Arduino.

Processing Visualizer:

Get detailed visualization of the heart's pulse and behavior. Send the PulseSensor data into Processing!

Pulse Transit Time:

Use two Pulse Sensors on different parts of your body to measure Pulse Transit Time!

Developer Resources:

Troubleshooting / Issues / Function Guide

The Functions Guide

We put together a HANDY GUIDE to the function-ality of our library. Check it out if you want to dive into the inner workings!

Troubleshooting Your Signal:

Ugh, Where's the Beat ? 😵
If you're having trouble seeing a heartbeat, make sure that you are using 'Goldilocks' pressure on the Pulse Sensor: Not too hard, not too soft. Squeezing the Pulse Sensor too hard against your skin will make the heartbeat go away, and not enough pressure will cause too much noise to creep in!

If you are seeing way too many Beats Per Minute, or you are getting lots of noise, try adjusting the Threshold setting. The Threshold variable tells Arduino when to find a pulse that is legit. Adjust this number (noted below with arrows) up for less sensitivity and down for more sensitivity. In the StarterProject you can find the Threshold variable as shown in the pic below:


In the other examples, the THRESHOLD is defined at the top of the code.

Give and Get Feedback

The Issues Tab will get you the quickest answers to common techinal questions.

Legal:® World Famous Electronics llc. in Brooklyn, NY. USA

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
library (1,275) 
arduino (707) 
education (273) 
playground (89) 
bpm (21) 

Find Open Source By Browsing 7,000 Topics Across 59 Categories

Advertising 📦 10
All Projects
Application Programming Interfaces 📦 124
Applications 📦 192
Artificial Intelligence 📦 78
Blockchain 📦 73
Build Tools 📦 113
Cloud Computing 📦 80
Code Quality 📦 28
Collaboration 📦 32
Command Line Interface 📦 49
Community 📦 83
Companies 📦 60
Compilers 📦 63
Computer Science 📦 80
Configuration Management 📦 42
Content Management 📦 175
Control Flow 📦 213
Data Formats 📦 78
Data Processing 📦 276
Data Storage 📦 135
Economics 📦 64
Frameworks 📦 215
Games 📦 129
Graphics 📦 110
Hardware 📦 152
Integrated Development Environments 📦 49
Learning Resources 📦 166
Legal 📦 29
Libraries 📦 129
Lists Of Projects 📦 22
Machine Learning 📦 347
Mapping 📦 64
Marketing 📦 15
Mathematics 📦 55
Media 📦 239
Messaging 📦 98
Networking 📦 315
Operating Systems 📦 89
Operations 📦 121
Package Managers 📦 55
Programming Languages 📦 245
Runtime Environments 📦 100
Science 📦 42
Security 📦 396
Social Media 📦 27
Software Architecture 📦 72
Software Development 📦 72
Software Performance 📦 58
Software Quality 📦 133
Text Editors 📦 49
Text Processing 📦 136
User Interface 📦 330
User Interface Components 📦 514
Version Control 📦 30
Virtualization 📦 71
Web Browsers 📦 42
Web Servers 📦 26
Web User Interface 📦 210