/pedometer

pedometer with esp32, adxl345, and oled ssd1306 in OOP

Primary LanguageC++

pedometer for 2024 MakeNTU

please give us a star if you like it! (❁´◡`❁) Your support is our energy to devise better projects!

Credit

Introduction

This project is a pedometer that uses an ESP32 and an ADXL345 accelerometer to count the number of steps taken. The number of steps is displayed on an OLED display. If the power to ESP32 is corrupted, the number of steps remains.

Hardware

  • ESP32
  • ADXL345 accelerometer
  • SSD1306 OLED display

Software

  • Arduino IDE
  • Adafruit_SSD1306 library
  • Adafruit_ADXL345 library
  • EEPROM library

Structure - OOP

  • pedometer.ino
  • src/
    • constant.h
    • oled/
      • oled.h
      • oled.cpp
    • adxl/
      • adxl.h
      • adxl.cpp
    • stepDetector/
      • StepDetector.h
      • StepDetector.cpp

How it works

The ESP32 reads the accelerometer data and counts the number of steps taken. The number of steps is displayed on the OLED display.

demo clips: 1. steps count, 2. memory

Disclaimer

This project is for educational purposes only. Do not use it for commercial purposes.