Real-time plotting of LSM9DS1 data through a UDP socket using an ESP32 and Python.

preview_player
Показать описание
Real-time plotting of LSM9DS1 data using a EPS32 (client) to a computer (server) using a UDP socket via wifi. Code is Arduino (for the ESP32) and Python.

Data sent as csv format (bytes, I know...),but can be easily changed. LSM9D1 module has 3D digital linear acceleration sensor, a 3D digital angular rate sensor, and a 3D digital magnetic sensor.. Further information and code can be found on GitHub:

Рекомендации по теме
Комментарии
Автор

Great work! I am currently planning to use it to record gyro data for stabilizing camera footage and reducing camera shake. Do you think this is a good idea, considering its accuracy and noise levels?

tingoyeh
Автор

I'm love to try this! I have an Melopero ST LSM9DS1 and driver, but I'd like to use ST's X-CUBE-MEMS1's MotionFX sensor-fusion library.. however it doesn't support the LSM9DS1.

I'd like to use Matlab for calibration, and python for visualization (pygame, python-processing) or Adafruit's WebSerial.

BTW, there was a nice hackster io article by Jason Marcum, that uses vtk for rendering, and the RTIMULib / RTIMULib2 sensor-fusion algorithm.

bennguyen
Автор

If you dont mind me asking، what sample rate were you able to get it at through udp? I.e. what rate were you able to send out the readings at? Would 300Hz be possible in your opinion?

sadf
Автор

i looked at your code. why "acc" values drawing on position plots, but "gyr" on acceleration?

DeaDMaN