Hi, has anyone connected the BR power sense module R2 to an Arduino micro-controller board?
I have it integrated into my ROV but I believe I may not have the connector wires correctly installed. The device does power up and is sending a signal topside but the numbers don’t look right nor do they respond like I believe they should.
RED: VCC +0v - ?
BLK: VCC +0v - ?
BLK: A3.3v - A1 (Analog Input)
BLK: V3.3v - A0 (Analog Input)
BLK: GND - GND
Once the signal is sent topside though the Fathom-S system, I may also require help converting the ADC signal to the proper values. (Math)
Cheers
Thanks Jacob for the reply. So I have it connected correctly but my math must be wrong.
So to be clear, pins 3 & 4 are sending a 0 to 3.3v analog signal based on voltage and current?
Do you have an idea what the math would look like?
Thanks again
That’s correct, the pins 3 and 4 are sending 0-3.3v based on voltage and current. Here’s the math to get the values.
Current:
Pin 3
The current is 38.8788 times the measured voltage with an offset of 0.33 volts (so zero amps output 0.33 volts.) This assumes you’re using a 5v Arduino. ADC is the raw measurement value from the analogRead function.
I = (ADC*(5.0/1024)-0.33)*38.8788
Voltage:
Pin 4
The output is 11.0 times the battery voltage.
V = ADC*(5.0/1024)*11.0
For reference, these values are printed on the circuit board of the Power Sense Module.