Code Monkey home page Code Monkey logo

davega's Introduction

This repository contains the firmware and gerber files for the open source DAVEga. For DAVEGA X (not open source), please go to davega.eu.


DAVEga (The VEsc GAuge/GAdget), or Dave for short, displays speed, battery capacity, traveled distance and other useful info retrieved from a VESC based controller.

DAVEga

This repository contains the DAVEga firmware. The gerber files can be downloaded from the gerbers directory or from EasyEDA.

There's a story behind the name, but it's a long one. It all started on esk8 builders. Here's some highlights from the discussion.

Main features

  • speedometer
  • odometer
    • current trip
    • total traveled distance
  • remaining battery capacity
    • battery voltage
    • battery amp-hours remaining
  • VESC fault codes
  • metric or imperial units
  • Arduino compatible FW
  • low HW cost (~$10)
  • known to work well with the VESC FW v3.48 and v3.40
    • previous versions not tested but should work as well unless too old
  • FOCBOX Unity supported

Configuring and installing firmware

The firmware has to be configured for a particular e-skate. At the very least, the information about the wheel size, gearing, and the battery pack has to be provided.

  1. Open the Arduino IDE.
  2. Install the TFT_22_ILI9225 library.
    • Go to https://github.com/Nkawu/TFT_22_ILI9225 and do Clone or download > Download ZIP.
    • Open the Arduino IDE and do Sketch > Include Library > Add ZIP file... Then select the downloaded ZIP file.
  3. Download DAVEga firmware from releases and unzip to your Arduino project directory (typically $HOME/Documents/Arduino/).
  4. Open the davega.ino from Arduino IDE to load the project.
  5. Go to the davega_config.h tab and adjust the configuration to your needs.
  6. Connect DAVEga to your computer using a USB-UART adapter. Make sure you have drivers for the adapter installed. The DIY kit comes with the CP2102 based adapter.
  7. Under Tools, select:
    • Board: Arduino Nano
    • Processor: ATmega328P
    • Port: the port to which the USB-UART is connected (e.g. /dev/cu.SLAB_USBtoUART for CP2102 adapter on a Mac)
  8. Upload.

Configuring the ESC

In the VESC Tool set:

  1. App Settings > General > App to Use: PPM and UART
  2. App Settings > UART > Baudrate: 115200 bps

License

DAVEga firmware and hardware design is released under GNU GPL v3.

Enclosures

3D-printable DAVEga enclosures are available on the Thingiverse.

Links

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.