Pages: [1]   Go Down
Author Topic: MX2125 Sample Rate  (Read 482 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 guys,

I'm doing a project for my Mechatronics course and I'm having some trouble with this darn accelerometer. For the parameter I'm measuring for, I need a resolution of at least 200Hz, but I haven't found any documentation on the MX2125's sample rate smiley-sad. Does anyone have any idea? I tried to print the time of each sample (x, y values), but I don't know how to do that either smiley-sad (using the sample code given).

- Duylam
Logged

Peoples Republic of Cantabrigia
Offline Offline
God Member
*****
Karma: 6
Posts: 719
Arduino happiness
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, according to Jameco, it can only handle 100Hz.

Given how slow the serial port is, I wouldn't bother trying to print individual output instances. Rather, I'd try reading results 100 times and using the millis() function to see how long that took. Then infer a reading rate from that.
Logged

Pages: [1]   Go Up
Jump to: