I’ve written a basic documentation of how my code works to control my bike. Each bike will need modified code based on what hardware you have. You can download code from github:

https://github.com/makestuff4fun/pyEC

Schematics & Gerber files will be added soon.

The following modules are working, documented and uploaded:

hmi.py – handles communication with either a Nextion of TJC HMI

imu.py – reads data from Wit Motion JY-901B, though I suspect many other Wit Motion IMUs will work as well

kelly.py – handles communication with Kelly Controls KLS-S Controller

main.py – Controls timing of serial communications as well as handling switch io and logging