View Full Version : Using Accelerometer with '04 controller
sanddrag
19-02-2004, 23:52
I know nothing about programming but can you use an accelerometer to measure tilt with the 2004 control system? I know it can be done in PBASIC but I don't know about C. Don't you need to use trig functions? Thanks.
Kevin Watson
20-02-2004, 00:07
I know nothing about programming but can you use an accelerometer to measure tilt with the 2004 control system? I know it can be done in PBASIC but I don't know about C. Don't you need to use trig functions? Thanks.Yes you can. Just make sure your accelerometer's bandwidth extends to DC.
-Kevin
sanddrag
20-02-2004, 00:43
Yes you can. Just make sure your accelerometer's bandwidth extends to DC.
-Kevin
DC? As in direct current? I am a bit confused.
Kevin Watson
20-02-2004, 01:03
DC? As in direct current? I am a bit confused.DC as in zero hertz. You're sensing the constant (unchanging) acceleration of the earth's gravity.
-Kevin
kiracofe8
20-02-2004, 12:18
DC? As in direct current? I am a bit confused.
There are different kinds of accelerometers. One of the most common kind is the piezoelectric (e.g. quartz) accelerometer. These are very useful, but they can only pick up high frequencies, not low frequencies. So if your robot was tilting back and forth at, say, 3 kHz, they would be wonderful. But if your robot is tilting very slowly (say 0.1 Hz), or has stopped in a tilted position (0 Hz) you cannot use this kind of accelerometer. You need to get a different kind.
"DC" in this case refers to the frequency content of the signal coming out of the accelerometer.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.