Posts

Stormworks - Measure angle for Pitch/Roll of your vehicle. Simple circuit guide.

Image
 Measure the angle for pitch/roll of your vehicle. Ever wondered how to measure the roll of your vehicle or detect if it flipped ? It's simple   by using two Altimeters! If you want you can leave a comment with feedback or suggestions for further guides! Table of contents 1 Setup 2 The Calculation 3 Microcontroller 4 Extras 5 Troubleshooting Setup: As a setup place one altimeter inline with the rotational axis. If we want to measure the roll of the vehicle - let's take an aircraft as an example - we would place one altimeter between the wings and one other altimeter on either the left or the right side of it in line. Important is that the altimeters (when there is no roll / pitch) are on the same height. A simplified schematic build:  This setup simulates the vehicles rotation (roll or pitch) at the pivot. Sidenote: the rotation axis is in most cases around the center of mass or a mechanical pivot - for planes and the such it is usually the center of mass and if it's not ...