element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Setting the Open Heart a flutter
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: fustini
  • Date Created: 6 Feb 2012 6:09 AM Date Created
  • Views 641 views
  • Likes 2 likes
  • Comments 5 comments
  • openhardware
  • heart
  • heartspark
  • openheart
  • hrmshield
  • bpm
  • oshw
  • diy
  • biosensing
  • polar
  • arduino
  • opensource
Related
Recommended

Setting the Open Heart a flutter

fustini
fustini
6 Feb 2012

Howdy,

 

This year I decided to make my own version of the HeartSpark which I gave my girlfriend last year for Valentine's Day:

 

http://www.element14.com/community/blogs/pdp7/2011/02/14/heart-spark-an-open-source-valentine-3

 

I posted last week about the Open Heart LED display that I assembled:

 

http://www.element14.com/community/message/43638

 

I've now connected it and a Polar chest strap receiver chip to an Arduino:

image

By combining source code from the Heartspark and Open Heart, a heart beat animation is played each time a pulse is received:

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

The receiver chip is a Polar RMCM-01:

 

http://www.sparkfun.com/datasheets/Wireless/General/RMCM01.pdf

 

It is the same chip as used in the HeartSpark and works with the Polar WearLink 31 chest strap:

 

http://www.amazon.com/Wearlink-31-Transmitter-by-Polar/dp/B001J8W5N2

 

The receiver chip simply outputs a 3V 1ms pulse for each heart beat detected.  My scope shows a pulse about every 1,000 ms when sitting which translates to about 60 bpm:

image

After doing some push-ups, the time between pulses cuts in half which indicates my heart rate has nearly doubled:

image

The Arduino code prints out the BPM and microseconds since previous pulse, and I found it matches what I observed on the scope.   Although I think the code still needs some tweaking, especially for edge cases.  I've attached the current version to this blog post.

 

My plans now are to assemble the Adafruit data logging shield:

 

http://www.adafruit.com/products/243

 

I will use it to log the BPM data with a timestamp to a SD card.  The data can then be plotted later on a computer.

 

I'll use the prototyping area on the data logging shield to solder on Polar receiver & components along with a header for the Open Heart.  My goal is place the Arduino, shield & Open Heart along with a USB power source (like a Duracell cellphone charger) into an enclosure which my girlfriend can take to yoga and set it near her mat.  I'll probably have to add switch to disable the Open Heart animation when needed so it doesn't annoy others.

 

 

Cheers,

Drew

Attachments:
heartbeat.pde.zip
  • Sign in to reply
Parents
  • nlarson
    nlarson over 11 years ago

    Very cool!  I wonder if a yoga studio might let you experiment with hooking everyone up to one of these to give a combined class "relaxation score"?  image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • fustini
    fustini over 11 years ago in reply to nlarson

    Interesting idea to aggregate sensor data to do 'gamification'.  I could definitely see that applied to a gym setting.  Leaderboards, badges, etc.  Maybe that already exists?  I've not been in a gym since high school image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 11 years ago in reply to fustini

    Hi Drew,

     

    I know what you mean about a gym, but having recently gone through physical therapy for my knee surgery, I can see where having something like this available for people who need to rebuild movement and strength after accidents.

     

    On the Yoga end, part of the exercises is to bring you body to a state of calmness without overdoing yourself.  Knowing when you are in the zone would encourage people to continue.

     

    I think you could work in ports for an ear piece microphone to record heart beat and breath rate.  I don't know about you, but if I put my fingers in my ears, I can hear each breath and each pulse of the heart.  A microphone should be able to hear the noise, plus blocking the ears with earphones would also let the person concentrate better.

     

    Just a thought.

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • DAB
    DAB over 11 years ago in reply to fustini

    Hi Drew,

     

    I know what you mean about a gym, but having recently gone through physical therapy for my knee surgery, I can see where having something like this available for people who need to rebuild movement and strength after accidents.

     

    On the Yoga end, part of the exercises is to bring you body to a state of calmness without overdoing yourself.  Knowing when you are in the zone would encourage people to continue.

     

    I think you could work in ports for an ear piece microphone to record heart beat and breath rate.  I don't know about you, but if I put my fingers in my ears, I can hear each breath and each pulse of the heart.  A microphone should be able to hear the noise, plus blocking the ears with earphones would also let the person concentrate better.

     

    Just a thought.

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube