H48C 3-Axis Accelerometer
MTompson
Posts: 4
Hello
Does anyone have any example code to output some angles in degrees from the H48C ? I have the sample program from the product page but can't see a way to get the angles from the outputs that program produces, i have a rough idea but would love some help...
many thanks for any help
Mark
Does anyone have any example code to output some angles in degrees from the H48C ? I have the sample program from the product page but can't see a way to get the angles from the outputs that program produces, i have a rough idea but would love some help...
many thanks for any help
Mark
Comments
Did you ever manage this?
Leo
No, I'm afraid not, I dropped that project a while ago now ( but I'll be back )
If you do get anywhere I would still be interested...
Mark
I was looking for a similar solution but I found I couldn't do mine as my accelerometer would also be moving. Which meant that accelerations would be present on the axis as well as some gravity component. As it wasnt possible to determine where the values were coming from ( gravity or actual acceleration ) I had to give up. I would be able to do it but I'd also need a gyroscope which may also have helped you solve your problem.
If your accelerometer is stationary, I believe you could calculate the percentage of "g" on each axis and calculate angles from there. I think! People's general feelings where that an accelerometer wasnt the right equipment to do it. There are gyroscopes with built in accelerometers that would help solve your problem. I can send you the name of them if you like.
My project isn't over yet so if I happen to find out any more I will certainly let you know,
Leo