Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chenbingwei1201/pedometer

pedometer with esp32, adxl345, and oled ssd1306 in OOP
https://github.com/chenbingwei1201/pedometer

arduino c cpp esp32 pedometer step-counter

Last synced: 2 days ago
JSON representation

pedometer with esp32, adxl345, and oled ssd1306 in OOP

Awesome Lists containing this project

README

        

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

## Credit
- [I made this Step Counter using ESP32!](https://youtu.be/T2tqk6CIBxY?feature=shared) by [THE ELECTRONIC GUY](https://youtube.com/@THEELECTRONICGUY?feature=shared)
- [ESP32 Step Tracker: Web-Integrated Counter Project](https://electronicblogs.com/esp32-step-tracker-web-integrated-counter-project/?fbclid=IwZXh0bgNhZW0CMTAAAR10UKi_eMHOYploklr9qOu50kAIZxe4UbqpVxCGjoUsV0_kMw_gDamnK9k_aem_AQmqz4e9_FJ34JsNXachKuukFWAZyuKCk6N65YAB-VNRh45kmFG0i_oGAHzd4Mr2E1Sgk92zvUInMnwh0xafVQHQ) February 8, 2024 by electronicblog296
- [Adafruit_SSD1306](https://github.com/adafruit/Adafruit_SSD1306)
- [Adafruit_ADXL345](https://github.com/adafruit/Adafruit_ADXL345)
- [EEPROM](https://docs.arduino.cc/learn/built-in-libraries/eeprom/)

## 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](https://drive.google.com/file/d/1YQH5bl1licHwMoUTrAurOHJOOqHBxV4j/view?usp=drive_link), [2. memory](https://drive.google.com/file/d/1hPq_t__4g5AZ212mDPqRomSr6950t9aw/view?usp=drive_link)

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