Hi,
We will help with code, it is not a case of GIVING you code, but helping you develop it, that way you learn about your project.
Have you got code that makes the servo sweep?
You have code to read the current sensor, now write code to JUST make the servo sweep.
What servo do you have?
Can you post a link to specs/data?
Can you please post a circuit diagram?
How are you going to power your project?
Thanks. Tom...
![]()