I am trying to control multiple servo motors with a Raspberry Pi. I am using a USB to TTL cable for this. I am currently sending following serial commands for the movement.
--> gpio -g mode 18 pwm
--> gpio pwm-ms
--> gpio pwmc 192
--> gpio pwmr 2000
So we set the frequency for the port 18. Similarly I repeat the steps for 12 and 21 where I have connected two other motors.
- --> gpio -g pwm 18 100
- --> gpio -g pwm 12 100
after this command, the movement is seen only for the Motor at pin 18 and not for the motor at 12.