lar3ry:
As far as data sheet for the motor goes:
I see in the datasheet, the input voltage is listed as 100.0 V DC, Rectified, 60 Hz. What sort of power supply are you using for the motor? Fullwave rectified? Half-wave? Filtered/smoothed?
If it's a pulsating DC, you could get the symptoms you are seeing, as the voltage you read depends where, in the cycle, you sample with the analogRead().
I would suggest (as an addition to Robin2's suggestion), a simple sketch that does an analogRead() of the pin, followed by a Serial.println() of the variable you read into, a delay(500), and nothing else.
Then, attach a potentiometer to the analog pin, (ends to 5V and GND, center tap to analog pin), then vary it to ensure you can see the levels change. Only then, attach and start to work on the current sensor.
It also might help if you post your code.
I am using a power supply that it came with. It was originally a product I took apart. The supply plugs into a power outlet and gives a full wave rectified source. On a random note, per the AC warnings I did try using a DC power supply and at some point it was working perfectly fine (into arduino) but I cannot for the life of me get back to that result after trying with the rectified signal again.
Currently I am just using a code to get an analog reading with a few points of precision ( decimal places ).
"
void setup() {
Serial.begin(9600);
analogReference(INTERNAL); // 1.1V Ref
}
void loop() {
int sensorValue = analogRead(A1);
double vShunt = sensorValue * (1.1 / 1023.0);
Serial.print(sensorValue);
Serial.print(" , ");
Serial.println(vShunt,8);
delay(1000);
}"
Again, I have no trouble amplifying the shunt output(in mV) with my ad623an amplifier whether I use a dc power supply or the rectified signal, and in fact the multimeter readings match with both methods. It's just when it comes to the arduino that I have problems. Maybe potential difference could be an issue? Or maybe even the fact that one of the signals is rectified and not just DC?
I will try playing with the potentiometer, I guess thats just a test to make sure the board isn't busted? Luckily I do have a bunch of boards (uno, mini, nano etc..).
Thanks in advance, I appreciate all the help.
EDIT: The potentiometer works fine. Hmm..