We’ve seen our fair share of builds over the years that attempt to peer inside a user’s head and divine their state of mind. Whether the goal is to induce lucid dreaming or just reduce anxiety, we’re always impressed with how many ways you can detect moods with physiological measurements. [Kirk] has been measuring his own physiology for months, and found the biggest change during meditation is the variability in his heart rate. Using that algorithm, he made an orb that changes colors when he’s meditating.
The hardware for the build uses a Bluetooth LE heart rate monitor connected to a smart phone communicating with an Electric Imp. After processing the heart rate data, the Imp triggers an RGB LED strip controlled with an Arduino. The result is a plastic orb that glows whenever the user is displaying some sort of mindfulness, cross referenced with algorithm generated from mindlessly browsing the Internet.
[James] has been building a heart rate monitor using a very cool TI chip. He needed a way to test his device, and commercial ECG simulators, like all biotech devices, are absurdly expensive. [James] decided to build his own heart rate simulator, and in the process made a great tool and one of the most well documented projects we’ve ever seen.
Of course, if you’re building an ECG simulator, you’re going to need a good sample of a heart’s electrical pattern. To get this sample, [James] found an old army manual with a diagram of an ideal ECG pattern. [James] took this PDF manual, screen capped the diagram, and used a Python script to generate an array in C the Arduino could repeat over and over.
The rest of the build consisted of a D/A converter, a pot to change the heart rate, a very nice seven-segment display, and a few banana jacks to connect to [James]’ heart monitor. Everything is up in a git, including an amazingly well documented (87 pages!) tutorial for building your own Arduino heart simulator.
The next time you’re unfortunate enough to make your way to a hospital, emergency room, or urgent care clinic, you’ll be asked to attach a small pulse monitor to your finger. The device the nurses clip on to one of your remaining digits is called a photoplethysmographic sensor, and basically it is able to read your pulse through reflected light. In the search to find out how these devices actually work, [Raj] sent in a great tutorial covering the theory behind photoplethysmographicy, and also built a simple device to detect a pulse without using a microcontroller.
These photoplethysmographic sensors operate by shining light into someone’s flesh – usually a finger or ear lobe – and recording the light reflected back to the source. The volume of blood in the finger will have an effect on the amount of light reflected back, and makes for a perfect way to automatically measure someone’s heart rate.
To build his device, [Raj] used a TCRT1000 reflective optical sensor. Inside this sensor is an infrared LED and a phototransistor. Of course with a finger over the sensor there is a ton of noise both from ambient light and the base rate of reflected light from a piece of flesh. [Raj] filtered this out, leaving only the small variations in the amount of reflected light, thus creating a very simple – and very inexpensive – electronic pulse meter.
After seeing some heart rate monitor apps for Android which use the camera and flashlight features of the phones, [Tyson] took on the challenge of coding this for himself. But he’s not using a smart phone, instead he grabbed a headlamp and webcam for his heat rate monitor.
To start out he recorded a test video with his smart phone to see what it looks like to cover both the flash LED and camera module with his thumb. The picture is mainly pink, but there’s quite obviously a color gradient that pulses with each gush of blood through his skin. The next task was to write some filtering software that could make use of this type of image coming from a webcam. He used C# to write a GUI which shows the live feed, as well as a scrolling graph of the processed data. He took several tries at it, we’ve embedded one of the earlier efforts after the break.
Continue reading “Monitor your heartbeat with a webcam and a flashlight”
This hack came out so well that [Levent] wishes he had tried it years ago. When exercising he wears a Polar heart rate monitor which sends data from a chest strap to his wristwatch. But his exercise bike also has a heart rate readout that depends on your hands touching metal contacts on the handlebars. He set out to see if he could patch the chest strap data into the exercise bike LCD display.
The first part of the hack is really simple. As we’ve seen several times before, you can buy a receiver module which grabs data from the chest strap. Now it was a matter of patching the data from this receiver into the Schwinn 213 recumbent exercise bike. [Levent] pulled out the PCB and located the small daughterboard that is responsible for the hand grip heart rate. With careful study he was able to identify the pinout. There are two data lines. One is responsible for the heart rate detected signal, the other pushes the actual heart rate data. On a hunch he hooked a signal generator up to the latter and discovered that all it takes is a square wave.
The rest is pretty straight forward. Check out the proof in his video after the break. Continue reading “Pushing chest strap heart rate to a stock exerciser display”
[Embedded lab] has a nice tutorial on building your own heart rate monitor. The monitor works by shining infrared light into the fingertip and looking at the changes in the reflected infrared signal caused by a heartbeat. The IR detector produces a very small AC signal so a couple of op-amps are used to filter and amplify the signal. The output of the filter circuit is then read in by a PIC16F628A, which counts the beats and displays it on a seven segment display. This might be a good project to try if you’ve got your microcontrollers down and you are looking to learn some analog electronics. Its noted at the end that the two main problems with building a circuit like this are going to be cross talk and adjusting the filters. The infrared diode and receiver should be close to each other to allow maximum reflection but you also need to make sure that you don’t allow the emitter to shine directly into the detector because the reflected light will be drowned out by the bright emitter.
[Eric Feldman] likes to use the Stairmaster in his exercise routine during the winter months. But apparently the exercisers that are designed for mere mortals don’t satisfy his need to climb stairs really, really, quickly. After mastering the upper speed limits of some top-of-the-line equipment he contacted the company asking if there was a way to unlock the software-imposed speed restriction. They laughed at him; a motivation that he used to build his own that is already five times faster. He calls it the Stairmonster, and after being tested at over 500 stairs per minute that name is quite fitting. It’s got a nice interface for choosing an exercise program and recording data from his routines. It uses an AT89C51RD2 along with a quadrature decoder and a heart rate monitor module that talks to a chest strap worn during each session. A 320×240 touchscreen gives feedback on the routine, which is altered to achieve targeted heat rates for optimum results. Nice job [Eric]!