Afternoon all.
Been playing around with using the LED matrix to display pitch and roll angles from a Arduino NANO IOT 33 BLE using the on board LSM9DS1 IMU.
Basically I created custom characteristics for magnetometer, accelerometer, gyro and Yaw/Pitch/Roll from the Madgwick IMU algorithm. This data is then transmitted via BLE.
Another sketch running on the R4 WiFi subscribes to the YPR characteristic and then using the LED Matrix to show pitch and roll. Of course not very accurate display but still fun exercise.
The R4 Wifi code uses @KurtE's wifi_gfx lib ( Experimenting with the WIFI Charlieplex matrix code - UNO R4 / UNO R4 WiFi - Arduino Forum) which he used to modify the original version I had.
Here are the 2 sketches if you want to try it yourself.
BLESense4Nano33.zip (6.1 KB)
UnoR4_rx_BLE_IMU_v1.zip (3.1 KB)
