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! ⚡