<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://arjun-kumar-singh.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://arjun-kumar-singh.github.io/" rel="alternate" type="text/html" /><updated>2026-05-18T21:27:24+00:00</updated><id>https://arjun-kumar-singh.github.io/feed.xml</id><title type="html">Arjun Singh</title><subtitle>Notes from a high school student building things using Arduino in biomedical engineering</subtitle><entry><title type="html">Testing The Sensor</title><link href="https://arjun-kumar-singh.github.io/testing-the-sensor/" rel="alternate" type="text/html" title="Testing The Sensor" /><published>2026-05-15T00:00:00+00:00</published><updated>2026-05-15T00:00:00+00:00</updated><id>https://arjun-kumar-singh.github.io/testing-the-sensor</id><content type="html" xml:base="https://arjun-kumar-singh.github.io/testing-the-sensor/"><![CDATA[<p>I started a project a few weeks ago, to build a pulse oximeter from
scratch using an Arduino. Today was the first time I tested it out
and saw how the sensor works.</p>

<p>The setup is just an Arduino Uno and a sensor called the MAX30102
on a breadboard. The sensor shines a red LED and an infrared LED
into your finger and measures how much light comes back. Apparently
oxygen-carrying blood and oxygen-poor blood absorb these two colors
differently, so by comparing them you can figure out blood oxygen
saturation. Each heartbeat also pushes a pulse of blood through
your finger, which briefly changes how much light gets through,
that’s how it counts heart rate.</p>

<p>The wiring took about twenty minutes. Four wires for power, ground,
and two for something called I2C, which is how the sensor
talks to the Arduino. Then I uploaded a basic example program
from the SparkFun library and opened the Serial Monitor.</p>

<p>When I put my finger on the sensor, numbers started
coming out. They kept shifting as I changed how my 
finger was placed, based on how it was blocking the light.</p>

<p>I tried it out with different temperatures and positions, and I have some questions.</p>

<ul>
  <li>The library does the heart rate math for me, but I don’t really
understand how. I want to look at the signal and try to
count it myself.</li>
  <li>The temperature/position of your finger seems to change how the numbers come out, why?</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[I started a project a few weeks ago, to build a pulse oximeter from scratch using an Arduino. Today was the first time I tested it out and saw how the sensor works.]]></summary></entry></feed>