I brought a new SG90 servo and I tried to control it using my Raspberry Pi's pin 17 writing the following code on the terminal's python
>>>import RPi.GPIO as GPIO
>>>import time
>>>GPIO.setmode(GPIO.BCM)
>>>GPIO.setwarnings(False)
>>>GPIO.setup(17, GPIO.OUT)
>>>servo=GPIO.PWM(17, 50)
>>>servo.start(5)
>>>servo.ChangeDutyCycle(2)
When the last command is executed, the servo performs its job but it vibrates a lot and it heats up. Please help me solve this.
ChangeDutyCycle
? 2 seems really low (rpi.science.uoit.ca/lab/servo) – Félicien Feb 26 '18 at 16:27