ecoRI
Posts: 6
Joined: Wed Aug 15, 2012 10:52 pm

Race vehicle data logger.

Wed Aug 15, 2012 11:04 pm

The prices on data logging accessories for race cars and gokarts is a bit nuts. 100 dollars for a water sensor made of 15 dollars worth of parts is starting to piss me off. The cost of data logging equipment is astronomical for a karter like me. So time to start a project.

I'd like to DIY my own logger, It doesn't need to have a display (yet), It just needs to output all data into a single CSV file .I know that all the components are out on the market to do this sort of stuff.

I'd like to be able to log all the following info.

Steering position
Throttle position
Water temp
Gps position (10hz )
Lateral acceleration
back axle speed
egt
RPM
Lap time
Eventually I'd like to
be able to record HD video at the same time
display realtime data to a display.
ODB2 (for folks with race cars)


I can code on a basic level and have friends a bit more experienced in electronics and programming.

Can anyone point me in some sort of direction to do this? Does this project sound interesting to anyone else?

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: Race vehicle data logger.

Thu Aug 16, 2012 4:15 pm

I may be interested in helping out, but i work only in bare metal (eg: no linux os) with the PI.
Bare metal would be better, as its real time and boot much faster than linux.
So if thats any good let me know.
Batteries not included, Some assembly required.

ecoRI
Posts: 6
Joined: Wed Aug 15, 2012 10:52 pm

Re: Race vehicle data logger.

Fri Aug 17, 2012 12:53 pm

Thanks for your response. I've been having a look around at similar projects. This one in particular is pretty damn near what I'd like to be able to achieve.

http://code.google.com/p/loguino/

I understand what you mean about the pi. I'd like to make the project highly expandable. different people will have different needs as far as how often they will need to poll sensors and I'd like not to have this become a limiting factor in the future. Which is why I'm thinking interfacing the loguino might be good as it has a quartz timer to make very accurate timestamps. Also We'll need the ability to take many 20+ different sensor inputs

Part of the idea behind using the pi is to be able to create:
An interface screen to display the realtime data (A digital dashboard)
Send live data wirelessly to a monitering station.
1080p video recording (this will also need to be timestamped in order to associate it with data events)

I suppose it's a big idea but I'm thinking that many racers could use the above things at a low price.

hms
Posts: 1
Joined: Fri Aug 17, 2012 2:30 pm

Re: Race vehicle data logger.

Fri Aug 17, 2012 2:42 pm

OK, please be gentle with me, I have no electronics or hardware knowledge.
I have a track car, for that I use Harry's Lap timer which runs on an Iphone and can have additional OBDII inputs and upgrade the GPS to 5hz over 1 hz.
It will also shoot video and overlay data onto the video.
Could you not use an iphone for the GPS/acceleration/video and possibly the OBDII data, then use the raspberry for the engine data and display?
Harry's lap timer can be found at:
http://www.gps-laptimer.de/Home.html
No links twith HLT, just a happy user.
h

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: Race vehicle data logger.

Fri Aug 17, 2012 4:05 pm

Thanks for the link ecoRI nice read, i think you could do a PI ver of Loguino.
When i written by embedded PI OS, the coding of it, is based on a language that like the arduino and the OS turns it into a supper fast arduino like board.
Example this is its booting time
http://www.youtube.com/watch?v=Hc-5epQT ... el&list=UL

You can read about it here: http://www.dex-os.com/DexBasic/DexBasic.htm
Batteries not included, Some assembly required.

ecoRI
Posts: 6
Joined: Wed Aug 15, 2012 10:52 pm

Re: Race vehicle data logger.

Fri Aug 17, 2012 4:41 pm

HMS-

Thanks for the link. That might be an option until I can get all of this running. A 10hz GPS will give you a much better idea of your ideal line in analysis software like Race studio or the motech version.

The main reason I'd like not to do it using an iphone or such is that I'm just starting out racing and I'd like a logging system that will grow with me and one that others can use, interfacing and adding on modules with such a system would be a nightmare. The prices for ready to use telemetry systems are crazy high despite the fact that all the components are relatively cheap and easy to attain. The goal is to make a modular Open Source DIY system equivalent to these high end ready made systems for a fraction of the price and have the data be exportable to various analysis software formats.

DEX-

Sounds interesting. My only thought would be about how one would be able to send data to an attached display, encode video etc without having to write a massive amount of code to do this on a dedicated OS. Or perhaps I'm misunderstanding.

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: Race vehicle data logger.

Fri Aug 17, 2012 6:37 pm

ecoRI wrote:HMS- DEX-

Sounds interesting. My only thought would be about how one would be able to send data to an attached display, encode video etc without having to write a massive amount of code to do this on a dedicated OS. Or perhaps I'm misunderstanding.
You understand very well, but in the pi case we are in luck, 1. the "send data to an attached display" i can do that now in many formats and the encode video is normally a problem, but if you use the soon to come camera module (usb ones do not work very well on the pi).
We can interface into the module just has linux will need to, has it will need a firmware update.
It depends on the output data, a raw uncompressed data stream would be a problem, but its more likely to be in a compressed format any way.
How it works : The camera modules outputs raw data direct to the GPU. There it goes through about 17 stages of processing (Debayering, lens correction, black level, gain control, AWB, scaling, cropping, distortion etc). This is all done in real time at 30fps because it's all done in HW under control of the GPU software. The GPU can then also HW encode to JPEG a single capture at full res, or send a lower rez processed stream to the H264 encoder which can encode at 1080p30. Once all that is done, the results are/will be sent to Linux running on the Arm. That's the bit that still needs to be sorted out.
http://www.raspberrypi.org/phpBB3/viewt ... 395#p80395
It can just as easy be send to the embedded OS, as linux.
Batteries not included, Some assembly required.

ecoRI
Posts: 6
Joined: Wed Aug 15, 2012 10:52 pm

Re: Race vehicle data logger.

Fri Aug 17, 2012 9:57 pm

Dex-

How different is the code from say c or java? Can the average programmer program it? I'm just thinking about what the future of this device could be and how easy it would be for others to code on it and tailor it to their needs.

It seems obvious that we need some sort of low latency system to keep up with high polling rates. What do you think of a second pi running linux used to interface this device in order to take advantage of resources such as xwindows to drive a display at lower polling rates than the DEX device (after all we can only display data as fast as a display can refresh). Send data wirelessly to a remote logging station etc....

Also we'll need to be able to support a large number of IO channels both digital and analog. Do you know if any expansion boards are available for the pi that do this?

User avatar
DexOS
Posts: 876
Joined: Wed May 16, 2012 6:32 pm
Contact: Website

Re: Race vehicle data logger.

Fri Aug 17, 2012 10:31 pm

ecoRI wrote:Dex-

How different is the code from say c or java? Can the average programmer program it? I'm just thinking about what the future of this device could be and how easy it would be for others to code on it and tailor it to their needs.

It seems obvious that we need some sort of low latency system to keep up with high polling rates. What do you think of a second pi running linux used to interface this device in order to take advantage of resources such as xwindows to drive a display at lower polling rates than the DEX device (after all we can only display data as fast as a display can refresh). Send data wirelessly to a remote logging station etc....

Also we'll need to be able to support a large number of IO channels both digital and analog. Do you know if any expansion boards are available for the pi that do this?
I have try to make it has easy to program has possible, the code its self is full assembly, but i have hidden the hard to code assembly with macros, that let you program in a basic like language.
Flash a R-Pi led example

Code: Select all

include 'DexBasic\DexBasic.inc'             
pinMode  GPIO16, OUTPUT                            

LetsLoop:                                         
                                                 
digitalWrite  GPIO16, HIGH                         
delayMicroseconds  1000000                        
digitalWrite  GPIO16, LOW                        
delayMicroseconds  1000000                         
                                                  
goto  LetsLoop                                     
                                   
ProgramSize:                                      
ScreenBuffer:                                      
If you look at doing the same thing with a arduino you will see how similar its
Some basic tuts here: http://www.dex-os.com/DexBasic/Language.htm

And yes if we need to we can use a second linux PI.
There's a x86 ver of the OS too if needed that got a full tcp/ip stack and usb stack etc, yet its less than 60k in size.

And we could make custom pcb board with the right chip for the job.
What you need to do, is do a list of what the first test prototype need to do as way of test suitability and i will see what i can come up with.
Batteries not included, Some assembly required.

djsayles
Posts: 7
Joined: Thu Sep 20, 2012 4:08 pm

Re: Race vehicle data logger.

Thu Sep 20, 2012 4:11 pm

Hi, did anything ever come of this? I run an expensive (but only standard def) Racelogic video vbox for my race car and a cheaper alternative with hi def would be amazing. Unfortunately my skills would be useless to be able to help which is a shame as I'm fascinated by the Pi.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24973
Joined: Sat Jul 30, 2011 7:41 pm

Re: Race vehicle data logger.

Thu Sep 20, 2012 4:52 pm

djsayles wrote:Hi, did anything ever come of this? I run an expensive (but only standard def) Racelogic video vbox for my race car and a cheaper alternative with hi def would be amazing. Unfortunately my skills would be useless to be able to help which is a shame as I'm fascinated by the Pi.
Just to be nosey - what do you race? I used to race Locosts - still got the car, just not the time.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

djsayles
Posts: 7
Joined: Thu Sep 20, 2012 4:08 pm

Re: Race vehicle data logger.

Thu Sep 20, 2012 5:52 pm

We may race in the same series then, we're in the 750MC and race in RGB (Road Going Bike Engined cars) so right now a fury (Which my friend actually races, I just pretend to be of assistance with the occasional spanner) :)

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24973
Joined: Sat Jul 30, 2011 7:41 pm

Re: Race vehicle data logger.

Thu Sep 20, 2012 8:35 pm

Always fancied an RGB and with Locost engines getting so expensive...

Still, I've not been out for 5 years since big crash at Silverstone, and three young children and busy job doesn't help!
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

djsayles
Posts: 7
Joined: Thu Sep 20, 2012 4:08 pm

Re: Race vehicle data logger.

Fri Sep 21, 2012 8:36 am

Locosts do like a bit of contact I've noticed :)

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24973
Joined: Sat Jul 30, 2011 7:41 pm

Re: Race vehicle data logger.

Fri Sep 21, 2012 9:23 am

It wasn't my fault (it never is). T-boned at Maggots after swerving to avoid another spinning car left me across the track. Hit by the last cars on the track coming round the corner three abreast. Under waved yellows...
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

djsayles
Posts: 7
Joined: Thu Sep 20, 2012 4:08 pm

Re: Race vehicle data logger.

Fri Sep 21, 2012 9:29 am

Ouch! Never nice when you're just an innocent bystander really.

Anyhow, back onto the subject ... I wonder if this will ever take off, it sounds lovely, however my existing datalogger with inputs was around £1400 coming from a company who specialise in it, so I wonder if a Pi solution is viable.

Pity I decided to go into network admin and not into programming :(

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24973
Joined: Sat Jul 30, 2011 7:41 pm

Re: Race vehicle data logger.

Fri Sep 21, 2012 9:51 am

I reckon it's feasible. There appears to be a lot of markup on Racelogic kit. Certainly HD video is entirely possible, and with a little extra HW, you can have sensor inputs as well. I think the Pi should be good enough for fairly fast logging too, which can be superimposed on the video prior to record. The basic setup for HD video would be less than $70. Slap a USB GPS on it, $15. Accelerometers, rev counters etc would be pretty easy. Suspension movement stuff a bit more difficult, no idea how much the required sensors would cost.

So, lots of options!
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

djsayles
Posts: 7
Joined: Thu Sep 20, 2012 4:08 pm

Re: Race vehicle data logger.

Fri Sep 21, 2012 10:03 am

Such a shame I wouldn't even know where to start.

I saw a analogue to digital converter for a Pi with 8 channels, all my sensors output 0-5v linear so that's that sorted. Suspension sensors etc are all available but expensive'ish but i don't think you'll get away from that.

Here's my video from my road car with a bunch of sensors:
http://www.youtube.com/watch?v=8gKNupRwVxc

I just crave HD!

ecoRI
Posts: 6
Joined: Wed Aug 15, 2012 10:52 pm

Re: Race vehicle data logger.

Fri Sep 21, 2012 4:14 pm

Check out the loguino link i submitted above. My plan is to use the loguino for logging and then use a rasberry pi or two for a dash interface/display, re3cording video and sending a live feed via 3g. I'd like to be able to output it into multipl formats including circut tools, AIM, and motec. Just been crazy busy with school lately.

djsayles
Posts: 7
Joined: Thu Sep 20, 2012 4:08 pm

Re: Race vehicle data logger.

Sat Sep 22, 2012 3:20 pm

I've been reading the Loguino page for this morning and it looks and sounds like just what you're after. Bloody confusing to a simpleton like me though.

clubcsl
Posts: 7
Joined: Sun Sep 23, 2012 6:54 pm

Re: Race vehicle data logger.

Wed Oct 03, 2012 7:07 pm

I am building something similar...

I initially built this for the fox systems linux board.

djsayles
Posts: 7
Joined: Thu Sep 20, 2012 4:08 pm

Re: Race vehicle data logger.

Mon Oct 15, 2012 3:18 pm

How are you getting on?

coyote
Posts: 1
Joined: Wed Nov 07, 2012 3:56 pm

Re: Race vehicle data logger.

Wed Nov 07, 2012 4:04 pm

I make sensors for the Alfano & MyChron kart data loggers(www.kart-crazy.co.uk)., so read this post with interest. I was on the forum because I am considering using a Pi to make a data logger. The aim would be to sell them.

I am an electronic engineer, but last time I did any programming was about 20 years ago, so I'm rather rusty on that side!

How is this project going? I would love to be involved - the sensors I already make would be ideal for lap time, engine temp and wheel speed. Also I have experience of making electronics work in hostile (wet, cold, vibration etc) conditions.

Zeroh
Posts: 6
Joined: Wed Oct 17, 2012 3:00 pm

Re: Race vehicle data logger.

Sat Nov 10, 2012 9:32 pm

I actually try to make the same thing in my car...it's not very easy...

motoduck
Posts: 2
Joined: Wed Dec 12, 2012 5:08 pm

Re: Race vehicle data logger.

Wed Dec 12, 2012 5:20 pm

Hi, I've been checking out the Raspberry Pi for a little while now, and have been toying around with one of the Teensy 3.0 boards lately. Was curious, has anyone actually done anything with this? I actually was thinking of this very thing and went to try and find a sensor that might play nice and found this post.

My main drive however is to take the log data and push it into Splunk> www.splunk.com for those that arent familiar. It's a data analytic engine /log aggregator. What I want to do is take that log data and create useful and intelligent dashboards with it (graphs) that can show correlation and trending. Was planning on logging everything to a micro SD and then using that to feed in results to my Splunk instance. My biggest hurdle at the moment is finding the time to build the hardware and get it working, before my 6 month dev license on splunk runs out and im reduced to the smaller free license which would be fine for most things but prob not during development. If anyone has been able to gather any log data (esp multiple logs that originate from the same time ) and wouldnt mind possible sharing them with me, to feed into the beginnings of a Splunk app I would be very appreciative and providing I can get it working would be more than happy to offer up whatever conf magic i write to make it work.

cheers,
Brandon

Return to “Other projects”