Close
0%
0%

Electric mountainboard with CAN bus + Android app

Mountainboard with BLDC motors, open source drivers, CAN bus communication, custom Android application and cool lights.

Similar projects worth following
In short:
- range: 10 to 14km (6.2 to 8.7 miles)
- max speed: 29km/h (18mph) (at max battery voltage), limited by gearing, not motor power
- off-the-shelf mountainboard (MBS Comp95 with Vector trucks and 8" tyres)
- 2 brushless motors (Turnigy Aerodrive SK3 - 6374-149kv)
- 2 open source VESC motor controllers
- 2 6s 8Ah Li-po batteries connected in parallel (so 16Ah@22.2V)
- most custom elements are 3D printed (including motor mounts)
- mechanical design done with Autodesk Inventor
- custom electronic devices: Power Switch, Power Distribution Board, Control Unit, Drivers Unit Controller, Rear and Front Lights modules
- CAN bus used for reading data from motor drivers, controlling lights and monitoring temperatures
- power switch that can handle 200A
- Android app for monitoring, logging of important board parameters (voltages, currents, temperatures) and controlling lights

Challenge?

Long commute time. During hot summer days using public modes of transportation can be tiresome.

Solution?

Electric vehicle (no sweat, yay!) smaller than a bicycle, so that you can take it into a bus (or a tram) when it starts to rain.

World changing?

Probably not earth-shattering, but definitely improves one's quality of life. Also it arouses interest in other people ;)

Usage?

Riding the board requires some skill, but it's not that difficult to grasp. Just put your feet on the board, move the throttle trigger on the controller and that's it!

Licenses?

Materials available here (hackaday.io project page), my GitHub page and my personal webpage are licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.

Third party licenses:

VESC Hardware is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.

ChibiOS RT is licensed under GPL3 license. ChibiOS HAL is licensed under Apache 2.0 license.



The project is mostly finished and I've regularly used the board for the last few months. So far I've covered around 200km on this board and I can say that it can be used as an everyday way to commute (assuming the weather is ok). Currently I want to assemble and write firmware for Front Lights module (which I will document here, on hackaday.io). Apart from that, I still have a few ideas for minor improvements.

Additional info can be found on project page on my website: http://lukemeyer.me/electricMountainboard.php

  • Front Lights tested

    Luke07/16/2017 at 06:00 0 comments

    A few days ago the weather finally allowed me to test the board outside after dusk.

    The test had 2 objectives:

    1) test how the module performs, wheather it can be used to ride the board in complete darkness

    2) see if designed mounting method is correct (e.g. no screws getting loose)

    I covered around 10km (~6 miles) in the neigbourhood and first thing that I noticed is that now the board looks dope AF (I mean, it looked fine without the lights, but now it's even better ;) ).

    Second observation is a bit less positive - angle of the beam produced is too wide, so the light quickly fades with the distance. Depending on ambient lighting (street lamps etc.) the visibility range provided by the module is only around 2 meters, which is definitely too short.

    Two methods of solving this problem come to mind: using LEDs with narrower angle (currently used have 120deg... - my mistake) or building some kind of reflector to form the beam.

    As far as mechanical properties go, I was pleased to see that the mount did just fine - nothing got loose and it was sturdy (so the light does not 'vibrate' when riding on pavement).

    I created a short video showing the lights working in blinking mode:

    The plan for now is just to enjoy the board and the summer. The Front Lights module has some flaws that can be fixed in version 2.0 (narrow angle LEDs, proper voltage regulation, better buck coverter design), so if I have some spare time on my hands in the future, I will work on FL a bit more.

  • Front Lights ready

    Luke07/06/2017 at 15:07 0 comments

    Today I finished installing FL module.

    First, I changed voltage regulator from MCP1702 to MCP1790, so that now the module can be powered from 24V.

    Then I installed the module inside its case:

    The last thing I had to do was securing the wires. I used 3D-printed wires holders and zipties:

    Now the only thing left is testing the lights when it's dark outside :)

  • Firmware development + Front Lights case

    Luke07/05/2017 at 16:35 0 comments

    I modified Android application and Control Unit firmware so that front lights can also be controlled (brightness, blinking mode) via Bluetooth. Previously only rear lights settings were being sent from the phone. Now Control Unit receives all the settings and sends two CAN packets. One for Front Lights module and one for Drivers Unit Controller. I updated the firmware (for CU and FL) on GitHub.

    I also printed and assembled Front Lights module case and mount. I discovered an error in my design. Mounting element screw collides with part of the truck and I cannot move the mounts too close together, so for now I had to use 6mm bushings to compensate for this error.

    This mistake can be easily fixed by making the mounting element arms a bit longer (so that the crew is a little bit higher relative to the truck).

    Next step now is replacing the voltage regulator on Front Lights module. I didn't check the maximum input voltage of used linear voltage regulator (used to provide 3V3 voltage for MCU), which turned out to be 13V. The on-board voltage is nominally 22.2V (max 25.2V), so I had to find a replacement. I found another chip, but in different package (first one is in SOT-23, the new one i SOT-89), so a bit of tinkering will be necessary.

    After replacing the voltage regulator I will carry out final assembly and testing and the Front Lights module should be 100% ready to use!

  • Front Lights wiring

    Luke06/28/2017 at 14:32 0 comments

    Today I prepared the wiring for FL module. The cable consists of 4 lines: 2 for power (+24V) and 2 for CAN.

    The cable from FL is routed to case in the middle of the board. When I was designing Control Unit I didn't anticipate that I'll have to provide power and CAN lines for another board. So now I had to come up with a way how to 'steal' power and CAN from CU board. Fortunately the connectors are through-hole, so I ended up with a pretty elegant solution.

    I added MOLEX ditto connector (close to CU), so that I can disconnect CU and FL boards when needed.

    Now wiring is complete and I can move on to firmware modifications, so that I can control front lights mode and brightness via Android app.

  • Front Lights module assembly

    Luke06/27/2017 at 15:22 0 comments

    It's time to fire up the soldering iron and assemble some electronics.

    Front Lights module is supposed to be mounted in front of the board and provide light, so that others can see me after dark (and I can see what's in front of me as well, cool).

    My idea for this module is to create closed-loop current control system using buck coverter and MCU.

    The MCU would measure the current flowing through the LEDs and adjust PWM duty cycle to achieve required current. I hoped that maybe I'd be able to implement model predictive control (MPC) (using DMC - Dynamic Matrix Control). Of course predictive algorithm would be an overkill in this application, but would be a pretty nice educational excercise.

    So far I've assembled the circuit and tested it in open loop mode (no current measurement, just setting pre-programmed PWM duty cycle).

    FL module in open-loop mode

    Code is available on GitHub: https://github.com/Lukaszm94/Eboard_FrontLights

    Currently open-loop brightness control is implemented, as well as blinking modes. Now I need to modify Control Unit software, so that front lights brightness and blinking mode can be changed via mobile app.

View all 5 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates