Skip to content

astrosander/bike-computer-arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

๐Ÿšดโ€โ™‚๏ธ DIY Arduino Bike Computer

Making $500+ bike computers obsolete with $20 in parts



๐Ÿ† The most innovative open-source bike computer that outperforms commercial alternatives

Arduino C++ MIT License Open Source


๐ŸŒŸ Why This Project Will Change Everything

"GPS navigators were inaccurate, expensive ones were basic... so I decided to create my own"

This isn't just another Arduino projectโ€”it's a revolution in affordable cycling technology. While Garmin charges $300+ for basic functionality, this project delivers professional-grade bike computer features for under $20.

๐Ÿ’ก The Innovation That Started It All

Born from frustration with expensive, limited bike computers, this project proves that innovation beats corporation. Using a simple Hall sensor and magnet, we've created a system that's more accurate than GPS and more feature-rich than most commercial alternatives.


๐ŸŽฅ See It In Action


Real bike computer in action - smooth, professional, and completely DIY


๐Ÿš€ Features That Blow Commercial Computers Away

๐Ÿ“Š Real-Time Analytics

  • Instant Speed: Precise velocity measurement (m/s or km/h)
  • Smart Distance Tracking: Cumulative and session distance
  • Acceleration Monitoring: Real-time acceleration with max detection
  • Intelligent Averaging: Separate averages for total and moving time

๐Ÿ“ˆ Professional-Grade Data Visualization

  • Live Velocity Graphs: 1, 3, 5, and 15-minute real-time plots
  • Historical Data: EEPROM persistence across power cycles
  • 8 Display Modes: Comprehensive data at your fingertips
  • Smart Display Management: Auto-brightness and sleep modes

โšก Smart Power & Performance

  • Ultra-Low Power: Powered by any USB power bank
  • Intelligent Sleep: Automatic display management
  • Instant Wake: Motion-activated display
  • Debounced Sensors: Rock-solid reliability in real conditions

๐ŸŽฏ Precision Engineering

  • Hall Sensor Accuracy: More precise than GPS for speed/distance
  • Configurable Calibration: Perfect for any wheel size
  • Noise Filtering: Advanced algorithms prevent false readings
  • Professional UI: Clean, readable display even in sunlight

๐Ÿ”ง Complete Hardware Solution


Professional wiring diagram - enterprise-level engineering made simple

๐Ÿ›  Bill of Materials (~$20 total)

  • Arduino Uno/Nano: $5
  • Hall Sensor KY-035: $2
  • LCD 16x2 I2C: $4
  • Push Button: $1
  • Neodymium Magnet: $2
  • Power Bank: $6

๐Ÿ”ฌ Hall Sensor Performance Data


Actual sensor output showing precision detection


โš™๏ธ Installation & Setup

๐Ÿ”„ Quick Start

  1. Clone the repository:

    git clone https://github.com/astrosander/arduino-speedometer.git
    cd arduino-speedometer
  2. Install required libraries:

    • LiquidCrystal_I2C
    • EncButton
    • GyverTimer
  3. Upload firmware:

    • Open firmware/Speedometr/Speedometr.ino in Arduino IDE
    • Configure your wheel circumference in len variable
    • Upload to your Arduino
  4. Wire according to the diagram and mount on your bike!

๐Ÿ— Physical Installation

  • Arduino + Power Bank: Secure to bike frame
  • Hall Sensor: Mount on fork with hot glue
  • Magnet: Attach to spoke
  • LCD Display: Mount on handlebars for perfect visibility

๐ŸŽฎ Advanced Features

๐Ÿ“ฑ 8 Professional Display Modes

  1. Main Dashboard: Speed + Distance + Time
  2. Live Velocity Graph: Real-time speed visualization
  3. Performance Stats: Max speed + Max acceleration
  4. Averages: Overall and moving averages
  5. Time Tracking: Session and total time
  6. 1-Minute Graph: Short-term velocity trends
  7. 3-Minute Graph: Medium-term analysis
  8. 15-Minute Graph: Long-term performance tracking

๐Ÿง  Smart Algorithms

  • Noise Filtering: Prevents false triggers from vibration
  • Acceleration Limits: Filters impossible readings (unless you're an astronaut! ๐Ÿš€)
  • Smart Averaging: Distinguishes between moving and stopped time
  • Memory Management: Efficient EEPROM usage for data persistence

๐ŸŒŸ Real-World Testing

Real installations on actual bikes - weatherproof and road-tested

โœ… Tested in real cycling conditions
โœ… Weatherproof installation
โœ… Vibration resistant
โœ… Long-term reliability proven


๐ŸŒ Open Source Impact

๐ŸŽฏ Why This Matters

  • Democratizes Technology: High-end bike computer features for everyone
  • Educational Value: Perfect Arduino project for learning embedded systems
  • Customizable: Full source code means infinite possibilities
  • Community Driven: Your contributions make it better for everyone

๐Ÿค Contributing

We welcome contributions! Whether it's:

  • ๐Ÿ› Bug fixes
  • โœจ New features
  • ๐Ÿ“š Documentation improvements
  • ๐Ÿงช Testing on different hardware
  • ๐ŸŽจ UI enhancements

๐Ÿ“ˆ Performance Comparison

Feature This Project Garmin Edge 130 ($200) Wahoo ELEMNT ($250)
Price $20 $200 $250
Real-time graphs โœ… 4 timeframes โŒ Basic
Custom firmware โœ… Full access โŒ โŒ
Battery life Days (power bank) 15 hours 17 hours
Accuracy Hall sensor precision GPS (ยฑ3m error) GPS (ยฑ3m error)
Customization Unlimited Limited Limited

๐ŸŽ“ Learning Value

This project is perfect for:

  • ๐ŸŽฏ Arduino beginners: Well-commented, modular code
  • ๐Ÿ”ง Hardware enthusiasts: Real-world sensor integration
  • ๐Ÿ“Š Data scientists: Algorithm development and optimization
  • ๐Ÿšดโ€โ™‚๏ธ Cyclists: Understanding the tech behind bike computers
  • ๐Ÿ‘จโ€๐ŸŽ“ Students: Practical embedded systems project

๐Ÿ“„ License & Usage

This project is MIT Licensed - completely free to use, modify, and distribute.

Build it, hack it, improve it, sell it - just keep it open source! ๐Ÿ’–


๐Ÿ™ Support the Project

If this project saved you hundreds of dollars and inspired your next build:

โญ Star this repository to help others discover it
๐Ÿด Fork it and make it your own
๐Ÿ“ข Share it with your cycling and maker communities
๐Ÿ› Report issues to help improve it
๐Ÿ’ก Suggest features for future versions


๐Ÿšดโ€โ™‚๏ธ Happy Cycling! ๐Ÿšดโ€โ™€๏ธ
Made with ๐Ÿ’– by astrosander

"Innovation doesn't require a corporation - just passion and creativity"


โšก Ready to build your own? The future of affordable bike computers starts here! โšก