Additional IMUs : server
Description of the file server.py from Raspberry Py
The two additional IMUs are connected to Rasberry Pi in I2C. If you have flashed the SD card with the image : aColor-BlueRov2-raspberry-with-server-for-imu-4Gb.img the only thing to do is to connect the two IMUs to the Raspberry.
Connect IMUs on the Raspberry :
Raspberry Pin
Sensor Pin
3V3
VIN
GND
GND
SCL
SCL
SDA
SDA
GND
SDOM (only for the second IMU)
GND
SDOAG (only for the second IMU)
Libraries
This require Python3 and pip.
Server
To send data to topside computer, a server is launched when the Raspberry start. This server read data from IMUs. To collect data on topside computer, you should launch the client which is the file Imu_brigde.py. It is a client to the server running on Raspberry Pi.
Server configuration
IP
192.168.2.2
Port
14600
Last updated
Was this helpful?