Overview
- Object ID : 5259 (2025-07-01 21:08:49)
- Author : Jon McPhalen
- Content : Code
- Microcontroller : Propeller 2
- Language : SPIN2
- Category : Sensor
- Licence : MIT
- Tags : BNO08x, IMU, jonnymac, Sensor, Serial, smart-pin
Content
This object takes advantage of the BNO08x RVC (serial) output to provide Yaw, Pitch, Roll, X acceleration, Y acceleration, and Z acceleration using Smart Pin serial RX without a cog. This is possible because each packet is framed with a specific, two-byte header ($AAAA) which is very easy to detect. Sensor values are provided in 16-bit signed format and converted by the object to signed longs.
The demo program uses the P2 Debug Terminal window which has been tested with Propeller Tool v2.93, PNut v51, and Spin Tools v0.48.1.