Uvic-Robotics-Club/uvic-rover

[5-Feature] Pyserial interface with IMU

Opened this issue · 4 comments

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

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

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

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

image