Jump to content

Recommended Posts

How to calibrate digital output accelerometers like ADXL345 or ADXL345 to obtain the outputs as 'g' values?

I have interfaced it with TM4C1294XL and the communication is through I2C protocol. Platform used is Energia.

Share this post


Link to post
Share on other sites

Don’t double post, it is bad etiquette. 

If you have a look at the datasheet you will see that the device is quite linear.  You can improve calibration by recording values at 1g and correcting for offset.  The datasheet also shows the influence of temperature. 

Also see https://learn.adafruit.com/adxl345-digital-accelerometer/programming

Share this post


Link to post
Share on other sites

I first posted on Embedded Systems/ Test equipment DEALS without realizing the word DEALS. Later I posted here and tried to delete the previous post but could not. Sorry for that.

On 5/5/2018 at 3:14 AM, Fmilburn said:

Don’t double post, it is bad etiquette. 

If you have a look at the datasheet you will see that the device is quite linear.  You can improve calibration by recording values at 1g and correcting for offset.  The datasheet also shows the influence of temperature. 

Also see https://learn.adafruit.com/adxl345-digital-accelerometer/programming

I calibrated it according to the datasheet where I found offset values for each axis and then subtracted it from the respective outputs. But I want outputs such that the parallel axis (to the ground) shows 0 (zero) g and perpendicular axis shows 9.8 g which I didn't get.

Share this post


Link to post
Share on other sites

Did you make a jig and follow the procedure in the Adafruit link?  What value are you seeing for g?  A value of 9.8 would be close for SI units.  However if it is reporting g-force the value should be close to 1.  I don’t have this sensor but cannot understand why a correction cannot be made if the sensor is giving relatively constant values at rest. 

Share this post


Link to post
Share on other sites

Yeah I followed the steps. But I didn't get either 9.8 or 1. There is formula online but that is not for digital output sensors like this. I somehow tried with that formula and I got values close to 1 but its not correct for all the axis. Still trying...

Share this post


Link to post
Share on other sites

We will test this. Thank you for your patience.
Are you sure that the speeds are not to high during machining and therefore machine loses some steps?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...