Hey friends, Happy Wednesday!
Thank you all for subscribing even though I had no piece of content out until now. This is my first newsletter issue, and I’m happy to have you all here!
The 2 concepts we’ll cover this week to understand the step counting algorithm are accelerometers and noise filtering 101. While preparing my subsequent newsletter issues, I realized some of the blog posts actually need only one, and sometimes two concepts. So I’ll write likewise :) I didn't add images of the gadget this time as this is an algorithm, but will do so wherever possible and meaningful as I don't want this newsletter to be purely theoretical.
I'm trying to write the newsletter issues in a way one can follow them while travelling on a bus, having your coffee, waiting for your food, etc. Let's jump in!
The fitness watch uses a 3-axis accelerometer, which is basically a small chip in your watch. It measures the acceleration it experiences relative to a free-fall observer. This means that the acceleration is 0 when your fitness watch is free falling and it’s 9.8 m/s^2 when it’s resting on a table. These values are computed along the X, Y, and Z axis defined with respect to the chip.
There are a dozen types of accelerometers but the one used in fitness watches is a Micro Electro-Mechanical System aka MEMS (breakdown: it has electrical and mechanical components that are miniaturized).
Here is how it works!
Every gadget with a circuit uses filtering, almost always! Due to temperature, the electrons in the conductor of the circuit undergo random motion thereby adding and subtracting from the original signal - resulting in what is called thermal noise. This is inevitable.
The 101 of noise filtering is that we want to remove unwanted signals that crop into our desired signals. In the context of the fitness watch, we need to filter the acceleration data along each of the axes that we collect from the accelerometer. The method used to filter the noise in this step counter algorithm is FIR (Finite Impulse Response). It is basically a weighted moving average filter.
How does the auto-rotate function on your smartphone work? Share your thoughts by replying to this email, and we can have a discussion. I’ll answer this in next week’s issue.
My blog post S1E1 on the step counter algorithm is out! Read it HERE, happy learning! And I'm open to receiving any kind of feedback.
I’m thinking of writing about how a beard trimmer works for the next episode S1E2. Also, let me know if you’d like to read about a specific gadget/device.
Have a nice rest of the week, and take care!
Until next Wednesday,
Chendur
Understand the inner science, tech, and AI of your gadgets with me, a Carnegie Mellon alumnus. Join 335+ readers every other Wednesday to see the world differently in just 3 minutes—regardless of your background! 🚀
Hey Reader, Happy Wednesday! Last week, I met my middle school friend after 12 years in San Francisco for dinner. Let’s look at the second part of the 4-part internet series this week. I aim to write my newsletter issues in a way one can follow them while traveling on a bus, having a coffee, waiting for food, etc. Let’s jump in! How it works: 15-second answer The internet is physical and fragile. The YouTube video is stored on a computer in a building (aka data center) somewhere in the world,...
Hey Reader, Happy Wednesday! Last week, we went to the Cherry Blossom festival in San Francisco. Let’s look at how the Internet works for the next four weeks, starting today. I aim to write my newsletter issues in a way that one can follow them while traveling on a bus, having a coffee, waiting for food, etc. Let’s jump in! How it works: 15-second answer Internet is physical and fragile. The YouTube video file is stored on a computer in a building (aka data center) somewhere in the world,...
Hey Reader, Happy Wednesday! Last week, I went to Lake Tahoe in California for the long weekend. Let’s look at how a SOS signal works this week. I aim to write my newsletter issues in a way one can follow them while traveling on a bus, having a coffee, waiting for food, etc. Let’s jump in! How it works: 15-second answer SOS is a universal distress signal used in emergencies. It works through Morse code, which combines short (·) and long (—) signals to form letters and words. The letters SOS...