https://github.com/giuliopons/speedometer
Custom speedometer with Arduino Nano
https://github.com/giuliopons/speedometer
arduino bike speedometer
Last synced: about 2 months ago
JSON representation
Custom speedometer with Arduino Nano
- Host: GitHub
- URL: https://github.com/giuliopons/speedometer
- Owner: giuliopons
- Created: 2024-10-27T08:21:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-02T12:14:38.000Z (over 1 year ago)
- Last Synced: 2025-04-04T19:20:03.417Z (about 1 year ago)
- Topics: arduino, bike, speedometer
- Language: C++
- Homepage: https://www.barattalo.it
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom speedometer built with Arduino Nano
This is a speedometer for bikes.
The speedometer uses a reed sensor and a magnet place on the bike wheel to count spins, calculating speed based on wheel circumference and spin count over time.
It also displays distance, spin count, and elapsed time, controlled by buttons.
Special features include using interrupts for spin detection, gradually changing speed numbers on the display, and a 3D case design with the cover attached with magnets.

The 3D case and other information are provided on
https://hackaday.io/project/199037-custom-arduino-nike-speedometer
## User instructions
To change function press left button (D7 pin), this will cycle between functions:
- Speed
- Distance
- Rounds (spins of the wheel)
- Time
The right button (D5 pin) switches through sub-functions (or "modes"):
- Speed: kph / mps / mean in kph
- Distance: show units / hide units
- Rounds: total spins / rpm
Special functions to save data in EEPROM:
- Press both the buttons for 5 seconds will save data (spins and time passed)
- Keep buttons pressed for 10 seconds will delete data and restart the Arduino
## TODOs
Next thing to do:
Automatically save data when turning the Arduino off, by using a CAP and a voltage read to detect power off and save just before powering off:
https://chatgpt.com/share/6726094c-0564-800c-a1c1-479772cbc928