Skip to content
This repository was archived by the owner on Oct 19, 2025. It is now read-only.

nick133/eDashbox

Repository files navigation

eDashbox

E-bike dashboard and datalogger, opensource. Firmware for STM32-Nucleo32L4 board.

This is STM32 learning project in early stage, use it at your own risk.

Project show-up

Build

Note: Development is in 'master' branch, don't be surprised for a lot of compilation errors.

Prerequisities

  • Linux
  • tup build system
  • Nim language compiler
  • GIMP
  • ImageMagick
  • SEGGER JLink debugger and software
  • STM32 CubeMX (optional)
  • Microsoft VS code (optional)

Process

  • First time build after 'git clone' or after CubeMX code generation run:
$ Tools/configure.sh
$ tup
  • Regular builds - just run:
$ tup

Debug

IDE

VS code - it is fast and stable, especially with debugging. Fix not found includes in VS code: https://stackoverflow.com/questions/37522462/visual-studio-code-includepath

Hardware

STM32 Nucleo-32 board (STM32L432KC)

DS18B20 temperature sensor

  • Use 4.7 kOhm resistor from Vdd to Data pin, accordig to specs
  • Tested with 3.3V Vdd

SH1122 2.08" 256x64 16 colors OLED Display

https://www.aliexpress.com/item/4000866935030.html

Status

List of working features, mostly:

  • Main screen speedo/tacho, rpm bar graph, clock, battery pie chart, odometer.
  • FatFs with MicroSD, currently not used
  • 2 temperature sensors
  • Hall sensor
  • ADC sampling for Volt/Ampere meters
  • 2 buttons

TODO

  • Config save to EEPROM
  • Change IDE to Vim, configure debugging
  • Test FatFs for MicroSD formatted with mkfs.vfat
  • GPS
  • current sensor (Allegro ACS758 200A bidirectional)

Credits

About

Open firmware STM32 Dashboard for eBikes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages