Raspberry Pi based Instant Replay system

Discussions on buying or building timers, solenoid start gates, light trees, weigh scales, and other race related electronics.
Post Reply
ironband
Apprentice
Apprentice
Posts: 14
Joined: Mon Jan 30, 2017 10:58 am
Location: Livermore, CA

Raspberry Pi based Instant Replay system

Post by ironband » Mon Mar 06, 2017 8:37 pm

Hi all,

As some of you know, I've been working on retrofitting my Microwizard P2XL with an Arduino timer for serial communication as well as timing. As an adjunct to that project, I picked up an old Raspberry Pi B+ as well as a V2 PiCamera, and thought it would be cool to interface them with the Arduino timer to add an instant replay to the system:



The cool thing about this system is that it doesn't rely on another sensor to trigger the replay - it simply gets a signal from the arduino timer when the first car finishes, then pulls video from a continuous loop (about 7 seconds) to make sure that it gets the first car finishing as well as any finishes which occur up to a second later or so. It then takes the 90fps video and pulls it down to about 20fps to give a slow motion replay.

In the video, I don't have the PC hooked up to get the serial communication, demonstrating how this system could be used stand-alone with any arduino based timer by adding a couple lines of code and a couple of resistors (for a voltage splitter) to the shield board.

I've got a little work to do, as the camera isn't well focused at this distance, and I'm not sure it is the angle I really want. Additionally I think I'll have the replay play two or three times total. At some point if I feel ambitious, I may do some basic serial communication to overlay text with finish times on the monitor, but that's a task for after I get all the electronics in a box.

So, for those of you who do use instant replay, what do you find is the most effective camera angle?



User avatar
gpraceman
Site Admin
Site Admin
Posts: 4607
Joined: Fri Jun 20, 2003 12:46 am
Location: Highlands Ranch, CO
Contact:

Re: Raspberry Pi based Instant Replay system

Post by gpraceman » Tue Mar 07, 2017 8:52 am

I like the view from the end of the track, looking up towards the start line. I like to see the whole drama of the race, not just the finish, as some cars get a fast start but then get passed in the flat.


Randy Lisano
Romans 5:8

Awana Grand Prix and Pinewood Derby racing - Where a child, an adult and a small block of wood combine for a lot of fun and memories.

ironband
Apprentice
Apprentice
Posts: 14
Joined: Mon Jan 30, 2017 10:58 am
Location: Livermore, CA

Re: Raspberry Pi based Instant Replay system

Post by ironband » Sat Mar 11, 2017 11:01 pm

gpraceman wrote:I like the view from the end of the track, looking up towards the start line. I like to see the whole drama of the race, not just the finish, as some cars get a fast start but then get passed in the flat.
I like the idea of that, but it makes it hard to see the finish clearly if you aren't a little above the finish line, which of course makes it hard to see the whole track (especially where the gate is in the way).

But I also agree that the drama of the race is fun to see as well! So, now I'm thinking two cameras, one placed on top of the finish gate facing the starting gate to show the "drama" at full speed, and another elevated above the finish line to show the "exciting conclusion" in slow motion. Not sure if I'll get both of them automated or not, but it's worth a try!

Andre



Post Reply