How to control a servo motor using a PID control with input from current sensor. I am not so proficient in arduino and in coding so can anyone please help me. I want to create a closed loop using pid for controlling servo with current sensor acs70331

Post a pic of your project.

This does not really work till you've collected 150 readings and then do the math. If you take one reading and divide it by 150, that's not an average.

1 Like