Hi Ed,
I am unclear where you got that formula. From what I have read, it seems a little too simple to work. What am I missing? The Memsic 2125 outputs in measurements of gravity, not angle.
Hi Ed,
I am unclear where you got that formula. From what I have read, it seems a little too simple to work. What am I missing? The Memsic 2125 outputs in measurements of gravity, not angle.
http://www.scalerobotics.com
Hi Walter,
This is where I get confused. To measure a servo's angle you do a calculation based upon the pulse width (1ms-2ms with 1.5ms as center). From what I can see the 2125 gives a variable pulse width based upon the temperature difference between temperature sensors based upon the angle of the internal gas bubble. Therefore the 2125 output pulse width should be related to the tilt of a given axis?
![]()
I gather from the datasheet http://www.parallax.com/dl/docs/prod/acc/memsickit.pdf the 2125 is just an accelerometer, and will give the pulse output based on the G sensed, but not based on angle. Perhaps you don't need an angle, if you are just wanting to keep the nose of your sub pointed at 0 tilt.
This spreadsheet sort of shows the correlation (or lack thereof) between angle and G sensed. It could be used to make a lookup table to determine angle.
![]()
http://www.scalerobotics.com
Thanks Walter!
I already have an Automatic Pitch Controller that keeps the sub level and just wished to display the pitch angle as well as the roll angle. Things like "look-up tables" are completely foreign to me and trig math just seemed to complex. Maybe I am just looking at the wrong type of sensor? I saw the electrolyte type and apparently they do not like DC. It also seems silly to buy another Automatic Pitch Controller just to read the roll angle. Best, Ed
Bookmarks