So I want to use my Raspberry Pi (40 pins) with a breadboard to control servos, but I am having trouble. I have an external battery pack connected to positive and hooked up my ground to a GND marked on my T-Cobbler Plus. I connected the Cobbler to my breadboard and connected the yellow wire from my servo to the #19 GPIO slot on my breadboard (corresponding with the cobbler).
This is the code I tried to use.
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(19, GPIO.OUT)
pwm=GPIO.PWM(19, 50)
pwm.start(7)
I am just trying to move the servo at this point, can anyone helps, when I press enter after pwm.start(7) nothing happens.