Uvic-Robotics-Club / uvic-rover

CIRC 2024 UVic Rover
2 stars 3 forks source link

[5-Feature] Pyserial interface with IMU #40

Open JoshuaGabriel opened 11 months ago

JoshuaGabriel commented 11 months ago

Is your feature request related to a problem? Please describe. Rosserial is having a hard time interfacing with the arduino nano when using serial and I2C. I think it is worth trying to ditch rosserial on the arduino, and interface it directly with pyserial to read the data.

computer <-> arduino <-> imu (through i2c)

Describe the solution you'd like Use pyserial library to interface with serial port.

Additional context

JoshuaGabriel commented 10 months ago

type of imu https://www.sparkfun.com/products/retired/13284

JoshuaGabriel commented 10 months ago

Had to download this repo as a zip and click the 'Add .ZIP Library' option, which will then allow you to choose a folder or *.zip file containing the library of your choice. https://github.com/sparkfun/SparkFun_LSM9DS1_Arduino_Library

JoshuaGabriel commented 10 months ago

Just using the example i2c hookup and the example file in the library, this is on the serial monitor on Arduino ide image

JoshuaGabriel commented 10 months ago

I am able to reproduce the error that this issue refers to. Using the imu_ros.ino file

image