so im trying to design a dual axis solar tracker using an Arduino Uno-R3. Basically it just takes the input from the LDR and outputs the PWM signal to the two 9g servo motor for each axis. The question that im wondering is that why is the PWM output inconsistent on the servo? Im powering the Arduino with a USB port from my laptop.
Serial port output :

Here is the code :
Mod edit: deleted multiple screen shots of code. Code as text follows in next post - JohnInTX
https://forum.allaboutcircuits.com/threads/solar-tracking-using-arduino-uno.169586/post-1510266
Serial port output :

Here is the code :
Mod edit: deleted multiple screen shots of code. Code as text follows in next post - JohnInTX
https://forum.allaboutcircuits.com/threads/solar-tracking-using-arduino-uno.169586/post-1510266
Last edited by a moderator: