Racing is certainly exciting for the person rocketing around the track fast enough to get the speedometer into the triple digits, and tends to be a decent thrill for the spectators if they’ve got good seats. But if you’re just watching raw race videos on YouTube from the comfort of your office chair it can be a bit difficult to appreciate. There’s a lack of context for the viewer, and it can be hard to get the same sense of speed and position that you’d have if you saw the event first hand.
In an effort to give his father’s racing videos a bit more punch, [DusteD] came up with a clever way of adding video game style overlays to the recordings. The system provides real-time speed, lap times, and even a miniature representation of the track complete with a marker to show where the action is taking place. The end result is that recordings of Dad’s exploits on the track could pass as gameplay footage from Gran Turismo (we know GT doesn’t have motorcycles, but you get the idea).
The first part of the system is the tracker itself, which consists of a GPS receiver, an Arduino Pro Micro, and an SD card module. [DusteD] powers the device with two 18650 cells in parallel, and a DC-DC boost converter to step it up to 5V. Everything is contained in a 3D printed enclosure that he designed in OpenSCAD, with the only external elements being a toggle switch, a momentary switch, and most critically, a set of LEDs.
These LEDs play into the second part of the system, the software. The blinking LEDs are positioned so they’ll get picked up by the camera, which is then used to help synchronize the data stored on the SD card with the video. [DusteD] came up with some software that will take the speed and position information from the card, and turn it into PNG files with transparent backgrounds. These are then placed on top of the video with the help of FFmpeg. It takes a little adjustment to get everything lined up properly, but as the video after the break shows the end result is very impressive.
This build reminds us of the Raspberry Pi powered GPS helmet camera we featured a few years back, and it’s interesting to see how the two projects achieved what’s essentially the same goal in different ways.
14 thoughts on “GPS Overlays Give Real Life Racing A Video Game Feel”
Tie a virtual and a real car together. Best of both.
*super mario kart music in the background*
I see … I did this last year. Video Footage + GPS , some python, ffmpeg and opencv … and https://www.youtube.com/watch?v=SGQ2KWcBtwY
Wow, that is really slick and looks very professional!
Awesome. Would be cool for the drone racing industry.
I’m most interested in the software, there’s a terrible shortage of free software for creating video data overlays.
I think trackaddict and racerender are pretty decent for free software.
I was thinking more along the lines of free as in speech…
Very interesting; I’ve been trying to figure out how to overlay flight tracker data to onboard video from rocket flights …
Dashware. Google it. It will work and it’s freeware.
Oh, that is amazing. My Google-fu failed miserably, and I’d never heard of Dashware before today.
I’ve been working on something similar for a while. Teensy 3.5 based. GPS lap timer, digital dash, tyre temp logger (only 3 points on this video, but upgraded to wireless 16 channel sensors now), brake disk temp logger. Lap timer has delta on dash to previous and best lap times every 5 seconds. There’s a 9dof sensor for logging pitch/yaw/roll and G sensor. CANbus to read engine data from the ECU (and log/display on dash) and a few analogue inputs to read things like oil pressure, brake pressure, fuel level… All up there’s about 100 items logged at 10Hz and the overlay is put together with some freeware called Dashware. https://www.youtube.com/watch?v=pLHtionm1ro
There is a ‘Gran Turismo’ for motorcycles, using the GT4 engine
Where is the linux version of dashware ?
Please be kind and respectful to help make the comments section excellent. (Comment Policy)