hiwonder

Crates.iohiwonder
lib.rshiwonder
version0.6.4
created_at2025-01-01 19:25:47.30453+00
updated_at2025-05-09 18:46:38.667353+00
descriptionInterface for interacting with Hiwonder IMUs
homepage
repositoryhttps://github.com/kscalelabs/imu
max_upload_size
id1501020
size91,485
Ben Bolte (codekansas)

documentation

README

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

Notes

While the datasheet says that the temperature is included in both the accelerometer and magnetometer data packets, we have observed that the temperature is only included in the accelerometer data packet and the magnetometer data packet is padded with zeroes.

Commit count: 76

cargo fmt