Projects / Ideas / ESP32 step counter

ESP32 step counter

IntermediateWearablesIdeaReviewed
In short

How do you build an ESP32 step counter?

An ESP32 counts steps from the up and down movement of an MPU6050 and shows the total on an OLED, with a button to reset. A rough count for learning and not a fitness device. You need ESP32 DevKit V1, MPU6050 IMU, SSD1306 OLED Display, Tactile push button 6 mm and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 170 min
Parts
5
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Detect steps from acceleration peaks.

How to build it

  1. Read the acceleration magnitude
  2. Filter out the slow gravity part
  3. Detect peaks above a threshold
  4. Ignore peaks closer than 250 ms
  5. Show and reset the count

Related projects

Common questions

What parts do I need for the ESP32 step counter?

ESP32 DevKit V1, MPU6050 IMU, SSD1306 OLED Display, Tactile push button 6 mm and Breadboard 830 Tie Points.

How long does the ESP32 step counter take to build?

About 170 minutes for a intermediate maker.