Uniaxial Steadicam

From Microduino Wiki

Revision as of 03:01, 31 March 2017 by Fengfeng(talk)(Created page with "{| style="width: 1000px;" |- | ==Overview== 600px|center Make a uniaxial Steadicam with motor module and motion module, and control the...")

Plug one end of the USB cable into the battery base and connect the other to the computer;

Programming

Programming Thought

Pitch: when the X axis arrow points to the horizontal direction, the pitch degree is 0; when it points to left horizontally, the pitch degree is 0; when it points to top vertically, the pitch degree is 90; when it points to bottom, the pitch degree is -90.

When the base of the platform is level, the servo should be kept at 90 degrees, at this moment, the pitch degree is about 0 degree.

When the base leans up (the arrow of X axis of the motion module points to top), the pitch degree is between 0-90, the degree of the servo is the sum of 90 degrees and the pitch degree. The degree of the servo is between 90-180.

When the platform leans downward (the arrow of X axis of the motion module points downward), the pitch degree is between 0-90 degrees, the degree of the servo is the sum of 90 degrees and the pitch degree. The degree of the servo is between 90-0.

Required Program Blocks

Start to Program

Motion DMP solution, the degree of pin 6 servo is the sum of pitch degree +60

Test the result
After powering on, keep the motion module level for 5s, lean the platform at pitch direction, and the servo can make the platform level always.

Q: If the motion sensor is stuck to the other end of the battery base, what will happen?A: Under that situation, the pitch degree of the motion module is just opposite to the original one, you can change the 90+pitch degree in the code into 90-pitch degree.