Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Extra Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=68)
-   -   pic: Arduino datalogger (http://www.chiefdelphi.com/forums/showthread.php?t=128803)

The Doctor 15-04-2014 10:23

pic: Arduino datalogger
 

The Doctor 15-04-2014 10:41

Re: pic: Arduino datalogger
 
Here is a datalogger that I have been designing for use in testing our robot.

Parts:



I used two IMUs from past Kits Of Parts, along with a Parrallax 3-axis magnetometer. This ended out with a total of 9 degrees of freedom:
  • 3 axis magneto
  • 3 axis accelerometer
  • 2 axis accelerometer
  • A rotational gyro

Not really degrees of freedom, but these are there too:
  • A temp. sensor for the gyro
  • An RTC
  • 4-5 DS18B20 temp sensors (for motors)
  • SD card for datalogging

It periodically gets the data from all the sensors, and prints it to the serial port and saves it to a CSV file on the SD card.

I will make the code available soon, once I get an SD card glitch worked out. I really wish we had finished our robot sooner (that 11:58 on the last day), because I wanted to try it out with this datalogger.

billbo911 15-04-2014 12:07

Re: pic: Arduino datalogger
 
Quote:

Originally Posted by The Doctor (Post 1374055)
Here is a datalogger that I have been designing for use in testing our robot.

Parts:



I used two IMUs from past Kits Of Parts, along with a Parrallax 3-axis magnetometer. This ended out with a total of 9 degrees of freedom:
  • 3 axis magneto
  • 3 axis accelerometer
  • 2 axis accelerometer
  • A rotational gyro

Not really degrees of freedom, but these are there too:
  • A temp. sensor for the gyro
  • An RTC
  • 4-5 DS18B20 temp sensors (for motors)
  • SD card for datalogging

It periodically gets the data from all the sensors, and prints it to the serial port and saves it to a CSV file on the SD card.

I will make the code available soon, once I get an SD card glitch worked out. I really wish we had finished our robot sooner (that 11:58 on the last day), because I wanted to try it out with this datalogger.

I would love to see your code on this. I always enjoy reading other peoples code, as it gives me great ideas for projects I'm already doing or plan to do.

For example, my son and I are building an automatic dog self-fetching machine. It throws the ball, the dog returns it, drops it into the machine, and it shoots the ball again. Then the cycle repeats.

I also plan on building a dual axis accelerometer data logger. I'm curious to compare car driving styles between people based on how smoothly they drive. I want to use logged acceleration data as the criteria for "smoothness".

Mike Bortfeldt 15-04-2014 15:08

Re: pic: Arduino datalogger
 
Quote:

Originally Posted by billbo911 (Post 1374105)
I also plan on building a dual axis accelerometer data logger. I'm curious to compare car driving styles between people based on how smoothly they drive. I want to use logged acceleration data as the criteria for "smoothness".

Bill,

It's interesting you mention this. I just prototyped an accelerometer logger for someone that used it on a dirt track racing car. For reference, I used an Arduino Micro, kit of parts dual axis accelerometer (2.5g - I think it's spec'ed at 2g), SDLogger from SeeedStudio and a small (160 x 128) TFT for information display. I was storing data once every 10 msec (30 sample averages). It made for some interesting data. The SDLogger was used because it was easy to communicate with it over a serial port at 115k baud and I didn't have the time to get the SPI SD code operating. My only recommendation for a street car, would be to use an accelerometer with a smaller range - around 1g or less for better resolution and you could certainly slow the sampling down.

Mike

billbo911 15-04-2014 16:31

Re: pic: Arduino datalogger
 
Quote:

Originally Posted by Mike Bortfeldt (Post 1374203)
Bill,

It's interesting you mention this. I just prototyped an accelerometer logger for someone that used it on a dirt track racing car. For reference, I used an Arduino Micro, kit of parts dual axis accelerometer (2.5g - I think it's spec'ed at 2g), SDLogger from SeeedStudio and a small (160 x 128) TFT for information display. I was storing data once every 10 msec (30 sample averages). It made for some interesting data. The SDLogger was used because it was easy to communicate with it over a serial port at 115k baud and I didn't have the time to get the SPI SD code operating. My only recommendation for a street car, would be to use an accelerometer with a smaller range - around 1g or less for better resolution and you could certainly slow the sampling down.

Mike

Thanks for the suggestions Mike.

One of my goals for the off season is to get very familiar and comfortable with using SPI. I've already done some testing and communicating between two Arduino's with SPI, and the data logger might be a perfect time to get really used to the code.

The Doctor 15-04-2014 17:48

Re: pic: Arduino datalogger
 
Quote:

Originally Posted by billbo911 (Post 1374105)
I also plan on building a dual axis accelerometer data logger. I'm curious to compare car driving styles between people based on how smoothly they drive. I want to use logged acceleration data as the criteria for "smoothness".

I'm glad you brought this up. I originally was only going to have a single accelerometer and temp. sensors for each motor. I still have yet to get some of the temperature sensors. I might also do a decoupled battery voltage reader.

Invictus3593 15-04-2014 22:15

Re: pic: Arduino datalogger
 
You've built it, the sensor array
Spoiler for Example Picture:

The Doctor 21-04-2014 18:54

Re: pic: Arduino datalogger
 
And we have code!

https://github.com/red-green/IMUreader


All times are GMT -5. The time now is 11:10.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi