roll and pitch angles

Discussion in 'Embedded Systems and Microcontrollers' started by carter2000, Sep 26, 2015.

  1. carter2000

    Thread Starter New Member

    Sep 9, 2015
    Hello, the task is:
    Design and implementation of a program with the available
    provided hardware (STM32F4DISCOVERY + board with 3 MEMS sensors) the
    temporally variable roll and pitch angles of the system in real time has to be determined.

    the program has been made so far, we get from the 3
    Sensors (accelerometer, gyrometer, magneto-resistive sensor) ax, ay, az;
    wx, wy, wz; x, y, z.
    how can be determined the roll and pitch angles with that value?
    does someone know the mathematical formula for that?
    how can we determine it with Eulerangle e.g.
  2. Papabravo


    Feb 24, 2006
    If x is the pitch axis, y is the roll axis, and z is the yaw axis, then the angles will all be arctangents of the ratio of coordinate pairs. Can you figure out which pairs give you the angles you want?

    One more thing, the sensors need to be located away from the center of rotation.
  3. dannyf

    Well-Known Member

    Sep 13, 2015
    google imu and ahrs fusion.

    Typically done via Kalman filter or PID. But simpler approach is possible.
  4. Kermit2

    AAC Fanatic!

    Feb 5, 2010