2021-08-04, 03:11 PM
Hi gang, I'm trying to get an arduino nano reading current from an iBT_2/BTN7960. Before starting to fiddle....
With 1v applied to pin A1 the servo.current returns 2.569 - should this be calibrated as Amps?
Am I right assuming to change this line in the arduino motor.ini to do the calibration?
if(pwm_style == 2) // VNH2SP30
return v * 9 / 34 / 16;
This is the circuit between the IBT_2 & A1
Think the voltage at Con 1 was around 1.2v with about 1.8A on the load (just a lightbulb for testing). Will do some more testing later, just checking I'm along the right track, Ta.
With 1v applied to pin A1 the servo.current returns 2.569 - should this be calibrated as Amps?
Am I right assuming to change this line in the arduino motor.ini to do the calibration?
if(pwm_style == 2) // VNH2SP30
return v * 9 / 34 / 16;
This is the circuit between the IBT_2 & A1
Think the voltage at Con 1 was around 1.2v with about 1.8A on the load (just a lightbulb for testing). Will do some more testing later, just checking I'm along the right track, Ta.