I am trying to use the atto pilot 13v6 current sensor with my arduino mega 2560 and am consistently getting wrong readings. I’ve gone through all the math and everything checks out but did catch one thing that may have something to do with it.
In the data sheet it gives the respective analog voltage outputs, but states that they are scaled for a 3.3v reference. Whereas i am under the impression that the arduino mega is default to reference 5v. I can’t dial in any other variable that could be causing my problems.
I’ve attached a screen shot of the data sheet I’ve been referencing and my .ino file.
Any ideas or thoughts on how to scale these values for a 5v reference? or perhaps I am thinking about this in the wrong way completely.
VoltageSensor.ino (1.47 KB)