Blue Robotics Sensors

Our team has been working with the Bar 30 M Blue Robotics pressure sensor and the Celsius Fast Response Blue Robotics temperature sensor to fit onto our ROV and have been having trouble getting accurate readings. We are using the Arduino_Communicator program with the example code from each sensor and all the proper libraries are installed. Our board is a Arduino Mega 2560 and connects to an IC2 Level Converter before connecting to the sensors. When we run the code, we get no reading on Roborealm, and in the serial monitor in Arduino shows the numbers being terribly incorrect. If anyone has any insight, please help!

Almost forgot, here is the Arduino_Communicator code.

Arduino_Communicator.ino (6.2 KB)

Please post a wiring diagram of how you connected the sensors to the Meag2560.

My apologies! Here is the electronics diagram for our sub.

IMG_1620[1].jpg

On this diagram there is no I2C connection from the sensors to the Mega2560, they only get power. If it's connected that way I understand that the numbers you get are incorrect.

In your code your don't return the values as they are read from the sensor. Don't you think for debugging it would be wise to keep the complexity low to start?