[go: nahoru, domu]

Skip to content

pedometer with esp32, adxl345, and oled ssd1306 in OOP

Notifications You must be signed in to change notification settings

ChenBingWei1201/pedometer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

pedometer with esp32, adxl345, and oled ssd1306 in OOP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published