Pages: [1]   Go Down
Author Topic: Accelerometer allows only low sample rate?  (Read 448 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

I'm using a standard Arduino Uno board and connected an accelerometer (ADXL335). I measure voltages on the analog pins in the loop function and this goes on forever, no processing. However, the frame rate I get is 1700/s.

Can that be right? I was hoping for a frame rate 10 times as large, if not higher? Am I doing anything wrong?

Lars
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25712
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Using analogRead, the most I'd expect would be one read every 100us or so, (about 9600 samples per second), so over three channels an update rate of 3200 per second (without any other processing or I/O).
If you need a higher rate, you'd have to use an external A/D converter, but this would seem to me to be a bit pointless, because the maximum bandwidth of the device is only around 1500Hz.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7171
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Using the accelerometer at this rate is not recommended. You'll pick up something like vibrations (if the board doesn't already have a capacitor to filter them out). What was your purpose of such a high sampling rate?
Logged


Pages: [1]   Go Up
Jump to: