Code Monkey home page Code Monkey logo

bikedisplay's Introduction

bikeDisplay

This is a project to add a smart controller to a standard bicycle, using an Atmel SAMD21 controller (known as Arduino Zero or Arduino M0). What it does:

  • Uses GPS for speed, heading (direction), and simple navigation
  • Uses an OLED display to display a menu
  • Controls front & back lights with both PWM and Neopixel control for turn signals

What it is not:

  • An anti-theft device (although it might work as one)
  • A controller for motorized bicycles

Building & Uploading

This project uses platformio for automatic dependency management, building, and uploading. Follow the instructions outlined here to install PlatformIO. You can install the full IDE based on VS Code or Atom, or just install the core version and use an external IDE. Once platformIO is installed, update platformio.ini to use the correct port in upload_port = . Then, run pio run -t upload. This will automatically install all dependencies and upload to the selected board. If you'd like to use another IDE, guides are provided here.

Libraries Used

Name License Used for
Adafruit NeoPixel ZeroDMA MIT Driving WS2812B (Neopixel) LED strips
Adafruit ZeroDMA MIT Dependency to Adafruit NeoPixel ZeroDMA
Adafruit Neopixel LGPLv3 Dependency to Adafruit NeoPixel ZeroDMA
FastLED MIT Math for driving LED strips, and to replace the above three when using other LED chips (e.g. APA102, using SPI)
NeoGPS GPLv3 Parsing GPS data. Used instead of TinyGPS because it is smaller, faster, more customizable, and better documented.
U8g2 2-clause BSD Driving monochrome graphic displays
sunset MIT Calculating sunrise and sundown times for automatic lights (TODO: implement)
Timezone GPLv3 Calculating time offsets and daylight savings time
Time LGPLv2.1 or later Keeping track of current time

Time and Timezone should be removed first, as they pollute the global namespace.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.