Stock code for the heart rate sensor had to be modified for use with and ATtiny85 board. There was no option for serial communication with the boards and memory was limited so the serial code was removed. The pin numbers all changed since an UNO used pins 0 and 1 for data while the ATtiny85 used pins 3 and 4 for data. These changes were all done from experience with different Arduino boards but the stock code was helpful enough to include enough information to change the interrupt timer from timer 2 to timer 1. ATtiny85 controllers only have one timer.
Once the program compiled and downloaded it was tested with a small USB battery and worked well. The onboard LED flashed with my heartbeats when a fingertip was held to the sensor. The unit also worked on any exposed skin such as forearms and legs. This is hugely beneficial since a pulse doesn't have to be taken from specific areas such as the neck or wrist. Taking a pulse reading from any exposed skin also adds the benefit of avoiding potential contamination if a subject has bodily fluids at the normal pulse checking locations.
The rest of the posts for this project have been arranged by date.
First time here?
Completed projects from year 1.
Completed projects from year 2.
Once the program compiled and downloaded it was tested with a small USB battery and worked well. The onboard LED flashed with my heartbeats when a fingertip was held to the sensor. The unit also worked on any exposed skin such as forearms and legs. This is hugely beneficial since a pulse doesn't have to be taken from specific areas such as the neck or wrist. Taking a pulse reading from any exposed skin also adds the benefit of avoiding potential contamination if a subject has bodily fluids at the normal pulse checking locations.
Animation showing the onboard LED flashing
The rest of the posts for this project have been arranged by date.
First time here?
Completed projects from year 1.
Completed projects from year 2.
Disclaimer for http://24hourengineer.blogspot.com/
This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.
All information in this blog, or linked by this blog, are not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property or similar, is the responsibility of those involved in the replication.
All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by Brian McEvoy, cannot be used to claim property or assets.
Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim claim property or assets based on their post.
This blog, including pictures and text, is copyright to Brian McEvoy.
2016-02-17 (W)
Comments
Post a Comment