UM7 Binary Parser Arduino Library

Home Forums UM7 Product Support UM7 Binary Parser Arduino Library

Tagged: , , ,

This topic contains 6 replies, has 3 voices, and was last updated by  Bob Cook 1 month, 3 weeks ago.

  • Author
    Posts
  • #631 Reply

    Michael Hoyer
    Participant

    I made a simple arduino library to parse binary data from a UM7. It works well with the Arduino Due, but it should also work with an Arduino Mega.

    https://github.com/mikehoyer/UM7-Arduino

    Currently it only parses binary data packets from the UM7 for roll/pitch/yaw. I can add more functionality if anyone is interested in the project.

  • #636 Reply

    Caleb
    Moderator

    Thanks for sharing! I’m sure that others will appreciate the availability of Arduino support for the UM7.

  • #692 Reply

    Jesus Jara

    Please. Send me the skecth and conector with arduino due board.
    I can not read data for serial port using the arduino due board.

    Thanks for all.

  • #693 Reply

    Michael Hoyer
    Participant

    Configure the UM7 to send binary Euler angle packets at 115200 baud using the CH Robotics serial interface.

    http://www.chrobotics.com/serial-interface

    Connect the RX pin on the UM7 to TX1 (pin 18) on the DUE
    Connect the TX pin on the UM7 to RX1 (pin 19) on the DUE

    That’s it! I’ll add these comments to the example sketch.

    Thanks,
    Mike

  • #850 Reply

    Asad

    Thanks for sharing, actually i need to print data via serial to PC , i need (Roll and pitch angles,Yaw angle,Roll and pitch angle rates), you code works fine but when i add following statements, the Arduino Mega2560 doesnt send data to PC …

    #include <UM7.h>

    UM7 imu;

    void setup() {
    // put your setup code here, to run once:
    Serial.begin(115200);
    Serial3.begin(115200);
    }

    void loop() {
    // put your main code here, to run repeatedly:
    // put your main codeo here, to run repeatedly:
    if (Serial3.available() > 0) {
    if (imu.encode(Serial3.read())) { // Reads byte from buffer. Valid packet returns true.
    //roll, pitch, yaw, roll_rate, pitch_rate, yaw_rate;
    Serial.print(“roll = “);
    Serial.println(imu.roll);
    Serial.print(“pitche = “);
    Serial.println(imu.pitch);
    Serial.print(“yaw = “);
    Serial.println(imu.yaw);
    Serial.print(“roll rate = “);
    Serial.println(imu.roll_rate);
    Serial.print(“pitche rate = “);
    Serial.println(imu.pitch_rate);
    Serial.print(“yaw rate = “);
    Serial.println(imu.yaw_rate);
    }
    }
    }

  • #853 Reply

    Asad

    Thanks for sharing, actually i need to print data via serial to PC , i need (Roll and pitch angles,Yaw angle,Roll and pitch angle rates), you code works fine but when i add following statements, the Arduino Mega2560 doesnt send data to PC …

    #include <UM7.h>

    UM7 imu;

    void setup() {
    // put your setup code here, to run once:
    Serial.begin(115200);
    Serial3.begin(115200);
    }

    void loop() {
    // put your main code here, to run repeatedly:
    // put your main codeo here, to run repeatedly:
    if (Serial3.available() > 0) {
    if (imu.encode(Serial3.read())) { // Reads byte from buffer. Valid packet returns true.
    //roll, pitch, yaw, roll_rate, pitch_rate, yaw_rate;
    Serial.print(“roll = “);
    Serial.println(imu.roll);
    Serial.print(“pitche = “);
    Serial.println(imu.pitch);
    Serial.print(“yaw = “);
    Serial.println(imu.yaw);
    Serial.print(“roll rate = “);
    Serial.println(imu.roll_rate);
    Serial.print(“pitche rate = “);
    Serial.println(imu.pitch_rate);
    Serial.print(“yaw rate = “);
    Serial.println(imu.yaw_rate);
    }
    }
    }

  • #867 Reply

    Bob Cook

    Why not connect the UM7 directly to the PC? Just port the binary parser code to run on the PC, should be straight forward to get the same code running in C# or C++.

Reply To: UM7 Binary Parser Arduino Library
Your information:




Cancel