Gas station without pumps

2012 July 17

Pulse detection with light

Filed under: Circuits course — gasstationwithoutpumps @ 21:31
Tags: , , , , , , ,

I decided I wanted to try shining light through my earlobe and detecting my pulse optically.

The hardest part of this was coming up with a way to hold the light-emitting diode and phototransistor in alignment on opposite sides of my ear. My first thought was to make a clip out of a clothespin.  I tried putting a clothespin on my ear, but it squeezed painfully hard (the spring in the clothespin is much to stiff for this application).  I reduced the pain by filing of the bumps at the tip of the clothespin, adjusting the gap until it squeezed just hard enough to keep the clothespin on my ear.  This was still harder than I liked, but was tolerable for the experiment.  A lighter weight clip would not have to squeeze so hard. (I have an old pulse meter that uses an earclip—it is a bit uncomfortable also, though not nearly as bad as the clothespin).

Side view of the clothespin clip. Note that the bumps at the tip of the clothespin have been filed flat to reduce how hard the clothespin squeezes.

I needed to choose what wavelength of LED I would use for this project. We need a color that hemoglobin absorbs, but not too strongly (or there won’t be enough signal for the phototransistor to see). I found some absorption spectra for hemoglobin online at, which not only has pictures of the spectra, but tabulations and comparisons between different sources for the spectra.

Hemoglobin absorption spectra copied from

The difference in absorption between hemoglobin and oxyhemoglobin around 686nm is used in pulse oximeters to determine the oxygenation of the hemoglobin.  For my purpose today, I probably want to stay away from that wavelength.  I decided to try using a WP710A10F3C infrared emitter that peaks around 940nm, since that is the maximum sensitivity of the phototransistor.  (The spec sheet for the WP3DP3BT phototransistor even says “Mechanically and spectrally matched to the infrared emitting LED lamp.”)

To line up the LED and phototransistor, I drilled a ⅛” hole, the closest drill bit I had to the 3mm diameter of the devices. The LED and phototransistor were a tiny bit loose in the holes (as expected), so I glued them on the back with “cool-melt” glue (a low-temperature hot-melt glue).

The IR emitter peeking through the hole in the clothespin.

I hooked up the IR emitter with a 180Ω series resistor to my function generator (whose output is is always ≧ GND), and the phototransistor with a 330Ω series resistor (on the emitter) to a battery, and looked at the signal on the scope. With nothing blocking the gap between the emitter and the phototransistor, this circuit worked quite well, with a voltage gain of about 3 for small signals (large signals resulted in clipping, most likely from the IR emitter having non-linear response when the input voltage is near threshold).

Clothespin on earlobe

When clipped onto my earlobe the signal from the signal generator still went through, but the gain was reduced to about 0.2 (100mV sine wave in, 20mV sine wave out, up to about 128kHHz—after that the gain decreased, probably because of the slow response of the phototransistor). I did an x-y plot on the scope and got an ellipse rather than a straight line above about 2.5 kHz, showing the phase change due to the slow response. The phase change is 90° (a circle on the x-y plot) at about 170kHz.

I could not see any fluctuations in the output signal due to my pulse, so I disconnected the function generator and hooked the IR emitter up to the 5v battery (still with the 180Ωseries resistor, to limit the current). When I turned the gain of the scope all the way up, I could see my pulse as a 1 mV change in level. This is about half the size of the signal I got from the EKG! Perhaps I should hook it up to the EKG amplifier circuit, if I can get all the DC biases worked out.  (It may be easier to use a simple op amp circuit, since this is not a differential signal.)


  1. […] pretty much decided against using the LED/photodetector pulse sensor as a lab.  The mechanical setup for aligning the optical components is too off-topic for a […]

    Pingback by Giving up on light-based pulse sensor « Gas station without pumps — 2012 July 18 @ 16:16 | Reply

  2. […] Pulse detection with light […]

    Pingback by Order and topics for labs « Gas station without pumps — 2012 August 16 @ 23:39 | Reply

  3. […] to work on yesterday. The goal is to shine light through a finger and get a good pulse signal.  (I tried this last summer, making a very uncomfortable ear clip and doing a little testing before rejecting the project for […]

    Pingback by Optical pulse monitor with little electronics | Gas station without pumps — 2013 July 24 @ 10:42 | Reply

  4. […] Pulse detection with light […]

    Pingback by New phototransistor lab | Gas station without pumps — 2014 March 16 @ 00:56 | Reply

  5. […] components and apply the appropriate pressure (around 80mm Hg, 10kPa, or 1.5psi).  The reason my first attempt at an ear clip was such a failure was that it squeezed too hard and cut off all circulation—if I had made a clip […]

    Pingback by Very long time in the lab | Gas station without pumps — 2014 May 15 @ 23:43 | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: