Post · 2 min read· pp. 74–75

Open Source ESC Video Logging on Electric Longboard

In order to get an impression about what the load looks like while using my open source ESC on an electric longboard, I wrote a program using Qt and opencv to do real-time video overlay logging while testing. This is the first test I made in my basement:

▶ YouTube video: Open source ESC video overlay logging

Open source ESC video overlay logging

Four threads are used:

  1. Capture images from the webcam (framegrabber.cpp).
  2. Overlay the images with real-time information and graphs (frameplotter.cpp).
  3. Encode a x264 video from the images (videocoder.cpp).
  4. Record audio, fetch data from the ESC and keep everything in sync (logger.cpp).

The source code and a small description on how to install and use it can be found on github;

https://github.com/vedderb/bldc-logger

Here is one indoor test in the V-building at Chalmers University test where the temperature is logged as well:

▶ YouTube video: Electric longboard video overlay logging at chalmers

Electric longboard video overlay logging at chalmers

and this is one outdoor test with some uphills around chalmers:

▶ YouTube video: Custom ESC outdoor video overlay logging on electric longboard again

Custom ESC outdoor video overlay logging on electric longboard again

I have been using my laptop with an external webcam for the tests in the videos, but it also works on my odroid u3 with lower resolution.