Reply To: [Perhaps] Better Example Code

Home Forums Forums Technical Support for BerryIMU [Perhaps] Better Example Code Reply To: [Perhaps] Better Example Code

#16720
djmaxwell
Participant

A couple of things I noticed:

1. you shouldn’t be multiplying by 9.8 in you acceleration calculation. It should be acc * sensitivity / 1000.0

2. Your acceleration range setting appears to not match what you are using for your sensitivity. Your resting acceleration is half of 9.8.

 

Their example here is pretty good.

Converting values from an Accelerometer to G

 

Blip, blop, bloop…