- Oct 10, 2000
- 2,689
- 0
- 0
I would like to use an accelerometer to measure the 1/4 mile time of a car using a micro-controller to measure the outputs of the accelerometer, similar to what G-Tech is doing.
Now here's the problem:
1) I can either do all the calculations on the micro-controller and send out the total time on a few 8-segment displays.
The problem with doing it this way is the mcu is only 8-bit (can't afford the 16-bit development kit for other mcu's) so computation is going to be intensive, plus the mcu doesn't have much ram to hold the data... and that means I'd have to integrate each data point as it is being received. Doing it this way means no bulky laptop in the car = standalone system.
2) Send the data to the PC and let the PC (via serial port or parallel port) and let the PC do the processing.
If I choose this approach, I have to send both the sample data and the sample count to the PC via the parallel (serial is just too slow unless I sample data at a slower rate), and parallel ports arepain in the arse to work with! However the payoff is that you can store all the data into memory and process it later, get nice graphs of your acceleration, velocity, and time. Basically, unlimited computing power.
3) Any other ideas?
Also, the accelerometer I am using is the ADXL202 from Analog Devices and that outputs the g in PWM format, so timing is a critical issue. Are there other accelerometers out there that are available in a kit?
Now here's the problem:
1) I can either do all the calculations on the micro-controller and send out the total time on a few 8-segment displays.
The problem with doing it this way is the mcu is only 8-bit (can't afford the 16-bit development kit for other mcu's) so computation is going to be intensive, plus the mcu doesn't have much ram to hold the data... and that means I'd have to integrate each data point as it is being received. Doing it this way means no bulky laptop in the car = standalone system.
2) Send the data to the PC and let the PC (via serial port or parallel port) and let the PC do the processing.
If I choose this approach, I have to send both the sample data and the sample count to the PC via the parallel (serial is just too slow unless I sample data at a slower rate), and parallel ports arepain in the arse to work with! However the payoff is that you can store all the data into memory and process it later, get nice graphs of your acceleration, velocity, and time. Basically, unlimited computing power.
3) Any other ideas?
Also, the accelerometer I am using is the ADXL202 from Analog Devices and that outputs the g in PWM format, so timing is a critical issue. Are there other accelerometers out there that are available in a kit?