Skip to content
/ davega Public

Firmware for DAVEga, a device for electronic skateboards that displays data read from VESC based speed controllers.

License

Notifications You must be signed in to change notification settings

janpom/davega

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Firmware for DAVEga, a device for electronic skateboards that displays data read from VESC based speed controllers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published