Race Prep Miata race-only chat.
Sponsored by:
Sponsored by:

Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)

Thread Tools
 
Search this Thread
 
Old 06-12-2014, 11:02 PM
  #1  
Senior Member
Thread Starter
iTrader: (8)
 
cyotani's Avatar
 
Join Date: Jan 2012
Location: Azusa, CA
Posts: 1,407
Total Cats: 116
Default Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)

I am currently developing my own custom data acquisition system to be used by my school's formula SAE team and after my Miata. I just want to document my build here and get feedback from the community on what features would be useful to the weekend track racer and get ideas for future additions to the systems. I am going to be 100% honest that I do not know a whole lot about processing this data to fine tune a vehicle. At the moment I am focusing on the hardware and software and getting useful data that is accurate and at adequate data rates.




The hardware:
National Instruments MyRIO (NI myRIO - National Instruments)
-Xilinx FPGA and dual-core ARMŽ Cortex™-A9 processor
-10 analog inputs, 6 analog outputs, 40 digital I/O lines
-onboard accelerometer
-wireless communication (stream information to any windows comp or tablet)

GPS module using UART communication
Infrared Temperature sensors using I2C
LCD screen with I2C interface
CAN bus module using SPI module
ADC expansion modules using SPI

The software:
Labview - with real time and FPGA and other add ons
Diadem - for data analysis and data reporting

Data Channel capabilities:
All ECU data via CAN communication (in development)
Infrared temperature sensor arrays (done)
Accelerometer (done)
GPS (coordinate log done, possible live map view in the future)
Temperature data via external ADC with bridge and up amp circuits (not started)
Pressure sensor via external ADC (not started)
Strain gauge force measurements (done)
Wheel Speed Sensors (not started)
Linear potentiometers for suspension travel and steering angle (not started)
Synchronize Video files in Diadem (in progress)
Acoustic Octave Analyzer (done- required per FSAE rules, useful for tracks like Laguna Seca)


Control Sysren Ideas
Active Aero


I can easily create open loop or closed loop PID control systems with any of the sensor data I am capable of logging. This can make for some neat projects down the road when I have a reliable core system developed. Simple ideas is programmable warning lights and actions (ie: warning light on display if coolant temp over x1, loud buzzer if coolant temp over x2, shut off engine is coolant temp over x3). a more complicated idea would be active aero based on throttle, steering, speed and accelerometer inputs. Let me know if you have any idea for projects.


Diadem Data Viewer example:


tire temp accel and gps testing


strain Gauge User interface:


strain gauge data for one corner Suspension set


Tire contact forces extrapolated from strain gauge data in the above pic using 3D vector Statics.


example labview programing code. pretty huh?


custom hardware enclosure:




Sure have come a long way from the early prototype stages of straping my macbook to the fsae car. lol. I'm surprised that actually worked okay.




PS: I recently purchased a 3D printer to design and prototype custom enclosures and brackets.











Stay tuned for updates and feedback is always appreciated
Attached Thumbnails Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-photojun1271605pm.jpg   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-4.png   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-3.png   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-1.png   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-capture.jpg  

Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-capture2.jpg   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-tempblockdiagram.jpg   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-daqsw.jpg   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-photojun1271119pm.jpg   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-photojun1270809pm.jpg  

Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-img_0935.jpg   Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-photojun0773431pm.jpg  
cyotani is offline  
Old 06-12-2014, 11:27 PM
  #2  
Senior Member
iTrader: (1)
 
acedeuce802's Avatar
 
Join Date: Dec 2010
Location: Farmington Hills, MI
Posts: 1,218
Total Cats: 175
Default

Good stuff! We also find yaw rate beneficial. But then again, I'm sure yaw rate is a lot more critical to making an FSAE car fast than a Miata.

Congrats on the finish at Michigan, going to Lincoln again?
acedeuce802 is offline  
Old 06-12-2014, 11:46 PM
  #3  
Senior Member
iTrader: (4)
 
dcamp2's Avatar
 
Join Date: Nov 2012
Location: Colorado
Posts: 818
Total Cats: 69
Default

Nice work. Is that blue screen the only user interface (other than lights/buzzers)?

I remember using labview in college... Not nearly as sophisticated as this looks though.
dcamp2 is offline  
Old 06-13-2014, 01:12 AM
  #4  
Senior Member
Thread Starter
iTrader: (8)
 
cyotani's Avatar
 
Join Date: Jan 2012
Location: Azusa, CA
Posts: 1,407
Total Cats: 116
Default

Originally Posted by acedeuce802
Good stuff! We also find yaw rate beneficial. But then again, I'm sure yaw rate is a lot more critical to making an FSAE car fast than a Miata.

Congrats on the finish at Michigan, going to Lincoln again?
Thanks. Yup the team is leaving to Lincoln this weekend. I can't make this one because of work. Then we have one more in Germany

Originally Posted by dcamp2
Nice work. Is that blue screen the only user interface (other than lights/buzzers)?

I remember using labview in college... Not nearly as sophisticated as this looks though.
Right now, for the FSAE vehicle the LCD screen will be used just to verify that the program is running and display the file name of the datalog and simple stuff. It may later get built into a more sophisticated user interface.

For the miata I can stream data to a tablet or computer and build custom interfaces similar to the ones in the picture.
cyotani is offline  
Old 06-13-2014, 04:43 AM
  #5  
Junior Member
iTrader: (2)
 
cjsafski's Avatar
 
Join Date: Mar 2008
Location: Irvine, Ca
Posts: 277
Total Cats: 23
Default

If you decide to do a display I started using these:

Adafruit 0.56 4-Digit 7-Segment Display w/I2C Backpack - Yellow ID: 879 - $9.95 : Adafruit Industries, Unique & fun DIY electronics and kits



Not the fanciest thing but bright and easy to read. Also talk through I2C. I am currently working on a gauge set using these and an arduino. Even though the arduino is not quite as powerful as labview, I kind of like using it instead. Probably because I hate the kidpix style of programming in labview and when you make modifications it can get messy. Also all my experiments run on labview so sick of decoding other peoples messy programs.
Attached Thumbnails Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)-20140613_000734_zpspgr7lsf3.jpg  
cjsafski is offline  
Old 06-13-2014, 04:45 AM
  #6  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,977
Total Cats: 356
Default

The problem with 7seg displays is that unless you put them behind a tinted glass, the segments that are not on are still visible under bright light and that makes them not so easy to read.
Reverant is offline  
Old 06-13-2014, 07:42 AM
  #7  
Junior Member
 
robertcope's Avatar
 
Join Date: Aug 2010
Location: Texas
Posts: 162
Total Cats: 11
Default

I work at NI. Fun to see products being used like this!

robert
robertcope is offline  
Old 06-13-2014, 08:29 AM
  #8  
Elite Member
iTrader: (1)
 
Leafy's Avatar
 
Join Date: Jun 2012
Location: NH
Posts: 9,479
Total Cats: 104
Default

Oh labview. This brings back memories of determining the pressure inside a soda can with a strain gauge and other mildly amusing labs. Is the newer version of labview more stable? I had a few instances where I wanted to put my fist through the screen because it didnt save or something annoying a few years ago.
Leafy is offline  
Old 06-13-2014, 10:26 AM
  #9  
Senior Member
Thread Starter
iTrader: (8)
 
cyotani's Avatar
 
Join Date: Jan 2012
Location: Azusa, CA
Posts: 1,407
Total Cats: 116
Default

Originally Posted by cjsafski
If you decide to do a display I started using these:

Adafruit 0.56 4-Digit 7-Segment Display w/I2C Backpack - Yellow ID: 879 - $9.95 : Adafruit Industries, Unique & fun DIY electronics and kits



Not the fanciest thing but bright and easy to read. Also talk through I2C. I am currently working on a gauge set using these and an arduino. Even though the arduino is not quite as powerful as labview, I kind of like using it instead. Probably because I hate the kidpix style of programming in labview and when you make modifications it can get messy. Also all my experiments run on labview so sick of decoding other peoples messy programs.
I guess that would depend on what I am trying to display. Price wise the LCD display I'm using was under $15 so I can display much more information with it. Practicality wise, when driving you don't have time to look down and read displays too often. Especially a digital display that refreshes too quickly. Most likely I will be using a tablet with a cluster of analog style gauges similar to tunnerstudio, with warning LED or buzzer and If I trigger a warning bring that particular gauge full screen on the tablet. Just ideas for now. Not set on anything yet. A shift light array would be a fun little project tho.

Arduinos are nifty for the price and have a huge support community and library's for sensors already programed making them easy to use. A lot of what I do is read arudino or C programing for a sensor then convert it into LabView programs. I prefer LabView because I can implement a sensor and user interface extremely quickly, and visually debug application. If you plan ahead and use good coding practices and sub-VI it is not messy at all and is very easy to read code. But the software and hardware price is no where near that of the arduino.


Originally Posted by robertcope
I work at NI. Fun to see products being used like this!

robert
Nice, how do you like working there? I was kinda considering that company for a bit.


Originally Posted by Leafy
Oh labview. This brings back memories of determining the pressure inside a soda can with a strain gauge and other mildly amusing labs. Is the newer version of labview more stable? I had a few instances where I wanted to put my fist through the screen because it didnt save or something annoying a few years ago.
I haven't had many issues with it so far. Only problems Ive had was connectivity issues over WIFI. And programing the occasional infinite loop or something but no major bugs.
cyotani is offline  
Old 06-16-2014, 03:32 PM
  #10  
Elite Member
iTrader: (5)
 
Seefo's Avatar
 
Join Date: Dec 2010
Location: Raleigh, NC
Posts: 1,961
Total Cats: 48
Default

very cool. This was basically my senior design project. Yours is a little more "on crack" computing wise, but its way cooler.

what frequency are you running the GPS at?
Seefo is offline  
Old 06-17-2014, 04:12 PM
  #11  
Senior Member
Thread Starter
iTrader: (8)
 
cyotani's Avatar
 
Join Date: Jan 2012
Location: Azusa, CA
Posts: 1,407
Total Cats: 116
Default

Originally Posted by Track
very cool. This was basically my senior design project. Yours is a little more "on crack" computing wise, but its way cooler.

what frequency are you running the GPS at?
What hardware and software did you use? The GPS is the pmodgps unit set to 1Hz with a 10Hz max. I haven't messed around with changing that rate but I think 5 Hz would be adequate.
Digilent Inc. - Digital Design Engineer's Source

I wish I did purely this as me senior design project. I did the stain gauge DAQ system as part of my project then Carbon Fiber A-arms and have since graduated but am finishing up this system for the FSAE team for our last comp coming up soon. Then it gets adapted for the Miata
cyotani is offline  
Old 06-17-2014, 06:57 PM
  #12  
Elite Member
iTrader: (5)
 
Seefo's Avatar
 
Join Date: Dec 2010
Location: Raleigh, NC
Posts: 1,961
Total Cats: 48
Default

Originally Posted by cyotani
What hardware and software did you use? The GPS is the pmodgps unit set to 1Hz with a 10Hz max. I haven't messed around with changing that rate but I think 5 Hz would be adequate.
Digilent Inc. - Digital Design Engineer's Source

I wish I did purely this as me senior design project. I did the stain gauge DAQ system as part of my project then Carbon Fiber A-arms and have since graduated but am finishing up this system for the FSAE team for our last comp coming up soon. Then it gets adapted for the Miata
we used an arduino (we did a lot of this on M16C initially, but swapped over), + an SD card shield:
4 turck speed sensors (wheel speed). We also used a 1GT honeywell sensor
3 MLX9614 IR temp sensors (wheel temp: in, mid, out)
1 ADXL345 ( 3-axis accel)

This was for a Formula Hybrid team, so we also setup a voltage divider to get a general idea of battery charge. All the software was either open-source/shared code or written by us. We didn't setup anything special since .csv is widely accepted.

We had other ideas for stuff to do/add, but being a 14-16 week project including fabricating a box and doing the wiring, we were told not to. Probably a good idea, as we finished right on time.
Seefo is offline  
Old 06-17-2014, 07:23 PM
  #13  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Great stuff!

How do you mount strain gauges to read 3 axes?
JasonC SBB is offline  
Old 06-18-2014, 10:12 AM
  #14  
Senior Member
Thread Starter
iTrader: (8)
 
cyotani's Avatar
 
Join Date: Jan 2012
Location: Azusa, CA
Posts: 1,407
Total Cats: 116
Default

Originally Posted by Track
we used an arduino (we did a lot of this on M16C initially, but swapped over), + an SD card shield:
4 turck speed sensors (wheel speed). We also used a 1GT honeywell sensor
3 MLX9614 IR temp sensors (wheel temp: in, mid, out)
1 ADXL345 ( 3-axis accel)

This was for a Formula Hybrid team, so we also setup a voltage divider to get a general idea of battery charge. All the software was either open-source/shared code or written by us. We didn't setup anything special since .csv is widely accepted.

We had other ideas for stuff to do/add, but being a 14-16 week project including fabricating a box and doing the wiring, we were told not to. Probably a good idea, as we finished right on time.
Nice, I want to build a cheaper arduino based system for possible resell. It seems like no mater how much/little you do, senior projects always get finished right on time.


Originally Posted by JasonC SBB
Great stuff!

How do you mount strain gauges to read 3 axes?
FSAE vehicle suspension consist of 6 tubes per corner which are all in theory axially loaded. So I can back calculate 3 axis tire contact forces and moments, using those 6 gauges (6 equations 6 unknown 3D vector statics problem).

Unfortunately this type of analysis is not possible on the Miata since the control arm members are not in just simple axial loading.
cyotani is offline  
Old 06-18-2014, 02:08 PM
  #15  
Elite Member
iTrader: (5)
 
Seefo's Avatar
 
Join Date: Dec 2010
Location: Raleigh, NC
Posts: 1,961
Total Cats: 48
Default

F1 teams use 6-axis F/T sensors during some wind tunnel testing. A company I used to work for supplied Sauber with them.
Seefo is offline  
Old 08-27-2014, 03:59 AM
  #16  
Elite Member
iTrader: (24)
 
UrbanSoot's Avatar
 
Join Date: Jun 2007
Location: Woodland Hills, CA
Posts: 4,667
Total Cats: 18
Default

Do you have any pics of the 7 segment displays mounted in the car? I was thinking of building an Arduino based dashboard for my car and stumbled onto the same Adafruit units as the only feasible solution with limited I/O channels.
UrbanSoot is offline  
Old 08-27-2014, 10:11 AM
  #17  
Senior Member
Thread Starter
iTrader: (8)
 
cyotani's Avatar
 
Join Date: Jan 2012
Location: Azusa, CA
Posts: 1,407
Total Cats: 116
Default

Originally Posted by UrbanSoot
Do you have any pics of the 7 segment displays mounted in the car? I was thinking of building an Arduino based dashboard for my car and stumbled onto the same Adafruit units as the only feasible solution with limited I/O channels.
My plan is to use a 4x20 LCD that can display 8 sensor readings on one display. This display is only $15 vs needing multiple $10 7 segments. However it is much smaller so I will be using warning lights and to tell me to look at the gauge for the issue when something goes wrong, rather than trying to have it big enough to glance down while driving on a track.

similar to this:

cyotani is offline  
Old 08-27-2014, 05:36 PM
  #18  
Elite Member
iTrader: (24)
 
UrbanSoot's Avatar
 
Join Date: Jun 2007
Location: Woodland Hills, CA
Posts: 4,667
Total Cats: 18
Default

Sounds like character display and warning light array is the best approach. I've considered using an RGB 20x4 display so it can flash different colors for different alarms or something.
UrbanSoot is offline  
Old 08-27-2014, 06:57 PM
  #19  
Senior Member
Thread Starter
iTrader: (8)
 
cyotani's Avatar
 
Join Date: Jan 2012
Location: Azusa, CA
Posts: 1,407
Total Cats: 116
Default

Originally Posted by UrbanSoot
Sounds like character display and warning light array is the best approach. I've considered using an RGB 20x4 display so it can flash different colors for different alarms or something.
I'm in the process of building a simple circuit board to power a few tri color LED's which I am planning to mount in the oem cluster. I'll post a video when I get it all finished up. A tri color LED with just 3 digital lines gives you 7 different colors which can be used for different warnings lights
cyotani is offline  
Old 08-28-2014, 03:12 PM
  #20  
Junior Member
 
b3d3g1's Avatar
 
Join Date: Mar 2011
Location: Lakewood, CO
Posts: 75
Total Cats: 24
Default

I thought many times about trying to put together an array of IR sensors for live tire temp data. It would be pretty cool to try it with a cheap IR capable camera too and get the entire tire surface and overlay it on video.

I've also been kicking around the idea of adding a heart rate monitor like they used to in F1. Found this on sparkfun that would be pretty easy to tie into my RacePack USM or any other analog input.
https://www.sparkfun.com/products/8661
b3d3g1 is offline  


Quick Reply: Custom Data Acquisition - LabView Powered (IR Tire Temps, PID control systems, etc.)



All times are GMT -4. The time now is 05:09 PM.