Hi everyone!
I just started playing with the Arduino, got it last pay day and it's quite fun! I'm looking at accelerometers for my own project, and I'd like to find out the difference between using accelerometers that have analog vs digital outputs. The only place where I found some info was in this data sheet: http://www.freescale.com/files/sensors/doc/app_note/AN3468.pdf
From my basic understanding for accelerometers with analog outputs
Can be read in by arduino's analog pins using analogRead()
ADC of the arduino is 10bit; if I want a finer resolution, I may need to look into an external ADC?
Digital outputs:
Using i2C or other protocols, so there is a library to use
There is a limit on how fast you can sample the data
Some I've seen have 13 bit adc resolution
A little on my project, it's very simple. I want to attach LEDs to my arm, if I'm say, squatting down, the number of LEDs lit up will depend on how fast I move. Conversely, if I'm jumping up, another set of LEDs will indicate upward movement, with the number of them indicating how fast the upward movement is.
Question 1: In such a case, what kind of accelerometer would make more sense?
Question 2: Recommendations! I'm looking for a 3-axis accelerometer, my budget is £30-50. It's not solely for this project it's going to be recycled for other purposes, so I don't mind purchasing something more expensive, say with gyro on board.
Thank you! I hope the info provided is sufficient.
ADC of the arduino is 10bit; if I want a finer resolution, I may need to look into an external ADC?
external ADC, or much more easy a digital accelerometer (some got 14 bit).
it seems that with an analog accelerometer, I can sample it several thousand times a second.
Yes, you can sample in standard mode about 9Khz. With some tricks until 70Khz. accelerometer will handel max 1-2Khz. But for your project it seems total overkill. I think a < 100Hz should be sufficient (and you get non fluctuating readings).
Hi there! Thanks for the info! That's a very nice recommendation you got there, I may get it I also came across this page http://www.sparkfun.com/tutorials/167 after looking at your links, gave me a good idea what's the differences between the various accelerometers. Thanks!
I also came across this page http://www.sparkfun.com/tutorials/167 after looking at your links, gave me a good idea what's the differences between the various accelerometers. Thanks!
Oh, thank you, that is a cool collection I wasn't aware of!
I also came across this page http://www.sparkfun.com/tutorials/167 after looking at your links, gave me a good idea what's the differences between the various accelerometers. Thanks!
Oh, thank you, that is a cool collection I wasn't aware of!
You're welcome
Daanii: Those two look quite interesting. I'd love to explore gyros one day soon
The following table was developed with the following settings.
The G-Force range was set to 1G
The Band Pass was set to 150 Hz.
The Mode was set to Mode Zero (0) through One (1) as indicated.
I also took off 2.31V from a voltage divider with a .01 uf cap across the 2.31Volts.
I was using an ISR and sampling at about 145-150 SPS
Accelerometer Noise-- The BOSCH BMA180
Mode 0 Axis Axis Axis
Measurement X Y Z
Low Value -147 -511 8029
High Value 167 -192 8168
Sample Count 14938 14938 14938
Average -2 -327 -8160
Std Dev. 38.52 32.87 6.77
Mode 1 Axis Axis Axis
Measurement X Y Z
Low Value 3064 -968 8150
High Value 3364 -677 8165
Sample Count 16174 16174 16174
Average 3230 -818 8165
Std Dev. 29.34 30.08 1.16
Mode 2 Axis Axis Axis
Measurement X Y Z
Low Value 3091 -977 8155
High Value 3300 -771 8165
Sample Count 12390 12390 12390
Average 3196 -870 8162
Std Dev. 22.52 22.84 0.6478
Mode 3 Axis Axis Axis
Measurement X Y Z
Low Value -53 -408 8125
High Value 93 -214 8164
Sample Count 11083 11083 11083
Average 19 -312 8159
Std Dev. 19.27 21.39 1.71
[/table]
Maybe you can throw that into your own spreadsheet and have a look...
Hmm does not look hopeful.
In the next day or two I should do some trials on Low Frequency noise. I need to move everything off a breadboard onto a mounting system.
I have a PDF I could send you -- maybe you could duplicate the trials at the most sensitive settings...