I have a RC servo towerPro sg90 connected to Arduino, to measure the current I have put 1 ohm shunt resistor between servo GND and power ground.
Then I did a analogRead on the resistor, when servo sweep between 0 -180. I am getting following values out of my analogRead.
So in total I have 180 readings from 0 -180 sweep, and I have 15ms delay the loop, all in all its takes 2700ms or 2.7 secs to complete the sweep.
Values from analogRead ranging from 20 - all the way upto 250, since servo is controlling a small flap.
Now I have two questions here..
1. Is this analogRead is my voltage, or do I have to convert it into voltage, like analogread *(3.3/1023).. Then its simply voltage/R is my current.
2. Total current, will it be sums of all the 180 values calculated in the step 1.
I am going to copypaste the raw serial output as well... The serial monitor is running at 9600 buad rate, if its useful to know.

Then I did a analogRead on the resistor, when servo sweep between 0 -180. I am getting following values out of my analogRead.
So in total I have 180 readings from 0 -180 sweep, and I have 15ms delay the loop, all in all its takes 2700ms or 2.7 secs to complete the sweep.
Values from analogRead ranging from 20 - all the way upto 250, since servo is controlling a small flap.
Now I have two questions here..
1. Is this analogRead is my voltage, or do I have to convert it into voltage, like analogread *(3.3/1023).. Then its simply voltage/R is my current.
2. Total current, will it be sums of all the 180 values calculated in the step 1.
I am going to copypaste the raw serial output as well... The serial monitor is running at 9600 buad rate, if its useful to know.

Attachments
-
59.8 KB Views: 2