I found a little heart rate sensor @ ICstation. It is a clone of the open hardware pulse sensor. The sensor is well documented, and it comes with Arduino and Processing example code.
To try it out I connected the sensor to an ATmega328 running at 3.3V and loaded the example Arduino code. I could now see my heart beat on the Arduino serial monitor 🙂
I then connected a 2.2″ TFT display to the Arduino and tried to figure out how to display the sensor output on it. Sounds simple but unfortunately it isn’t. Updating the full screen (320×240 pixels) is really slow. So I needed some smarter code to update only the pixels that needed to change. I happened to stumble on Matthew McMillans blog, he wrote some smart code to use a similar display as a speedometer. So I borrowed some of his code and mixed it with the example code of the pulse sensor. You can see the result in the above video.
Download the code here.
[…] An Arduino pulse sensor project from Bajdi: […]
[…] Arduino heart rate sensor – Bajdi.com – sensor na ušní lalůček (optický) […]
Pls help with code bcz i’m using 16×2 lcd display
Look up some example code of your 16×2 lcd, it’s not that hard to modify my code for another lcd…
[…] From Bajdi.com: […]
[…] Maker by the name of “Bajdi” recently created a heartbeat sensor using a 2.2” TFT display and an ATmega328 […]
Thanks for the code. I am using a 16×2 LCD, must I include all this libraries (#include “SPI.h” #include “Adafruit_GFX.h” #include “Adafruit_ILI9340.h” #define _sclk 13 #define _miso 12 #define _mosi 11 #define _cs 10 #define _rst 9 #define _dc 8)
OR can I just use #include ?
OR can I just use #include “LiquidCrystal.h”?
You only need to include the libraries needed by your LCD (LiquidCrystal.h).
Hi, Can you pls include the schematic/ circuit. Very much appreciated! Thanks, GP
Hi,
your code (or explenation on how to use it) is incomplete. You provide two ino files, wich one to compile? one does not run wihtout the other and the interrupts.ino is giving errors on compile (undeclared variables and sei())
Is this code functional or just a sample?
Thank you very much, great initiative, too bad its not complete 🙁
Compiles without errors here in Arduino 1.0.6. You need both files to make the sketch work, they have to be both in the same directory.
I’m using an 16×2 lcd and i can get it right ! Can you help me ? pls
what about i am using lcd nokia 5110(84×48)? pls give me some code?
[…] Maker by the name of “Bajdi” recently created a heartbeat sensor using a 2.2” TFT display and an ATmega328 […]
Help with code for 16×2 lcd display. PLEASEEEEEE
Im getting values somewhere around 400-500 is something wrong with my device or code(i used simple analogread(pin))
Read the documentation of the sensor …
¿este código se puede utilizar para arduino UNO ?.gracias