Hi everyone. To those of you who have watched the video and cannot seem to make the servo motor rotate, here is the fix. In the code provided, the owner uses digital pin 7 to connect to the servo motor. However, a servo motor needs Pulse Width Modulation (PWM) signal to rotate, and in this case, the digital pin 7 is not a PWM pin. To fix, you can use the digital pin 3 instead, which is a PWM pin. In the " int servoPin = 7; " command line, change number 7 to 3. Now compile and connect the servo motor to digital pin 3. It should be able to rotate now.
@AryanSingh-sl9gt Жыл бұрын
thanks a lot for your help!
@djSpinege2 жыл бұрын
can the nano also be used to trigger the servo with a push button?
@lot10games2 жыл бұрын
Yes
@karlsaariste2 жыл бұрын
@@lot10games how
@lot10games2 жыл бұрын
@@karlsaariste using a button , of course. You can find tutorials on KZbin
@wenceslaodianabunge Жыл бұрын
error avrdude: stk500_recv(): programmer is not responding
@lot10games Жыл бұрын
Make sure that the correct port is selected
@brunohuf90163 жыл бұрын
apparently my arduino couldn’t process the code, do you have any idea of how to fix this?