Project 2 Work-in Process

https://oceanic-elk-f88.notion.site/Wish-Box-Project-c139bbc7497648e8acf74e791fbd6005

Lab: Serial IMU Output to P5.JS


Program the Microcontroller to Read the IMU

Read the accelerometer values and the gyrometer values from the nano board by using LSM6DS3 library.

Screen Shot 2021-10-29 at 5.23.10 PM.png

1635542874837415.mp4

Screen Recording 2021-10-29 at 5.25.56 PM.mov

Then I add the Madgwick library and get orientation for reading the degrees values that been filtered by the the MadgwickAHRS library.

Screen Recording 2021-11-02 at 1.32.16 AM.mov

When I am programming the p5.js to read the serial data and get the visualization of the board, I find the problem of undefined value that makes the virtual arduino unable to show in the screen.

Screen Shot 2021-11-02 at 1.50.45 AM.png

Screen Shot 2021-11-02 at 1.54.55 AM.png