#imu #byte #angle #quaternions #interface #data #link

bin+lib hiwonder

Interface for interacting with Hiwonder IMUs

3 unstable releases

new 0.2.2 Jan 17, 2025
0.2.0 Jan 17, 2025
0.1.0 Jan 1, 2025

#10 in #angle

Download history 124/week @ 2024-12-27 36/week @ 2025-01-03 26/week @ 2025-01-10

186 downloads per month
Used in 2 crates (via imu)

MIT license

16KB
346 lines

Link to IMU:

HiWonder IMU Protocol

  • Data Length: 11 bytes
  • Header/start/SOF Byte: 0x55
  • Command Byte: 0x51 accel data, 0x52 Gyroscope data, 0x53 angle data, 0x59 quaternion data
  • Data: 8 bytes
  • CheckSum Byte: 1 byte (only lowest 8 bits of summation of all bytes in packet is used (CheckSum & 0xff))

Setup

  • Install this driver for the CH341 USB controller
  • This should create a /dev/ttyUSB0 - you should check which one by doing ls /dev/tty*. You might need to the change the permissions
  • Connect the IMU to the computer via USB
  • Default Baud Rate: 9600
  • Default USB port: /dev/ttyUSB0

Dependencies

~2MB
~43K SLoC