Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3873

Troubleshooting • Troubleshooting Servo?

$
0
0
Hi,

I'm hoping for some help getting my test servo to work. I have a Raspberry Pi Zero W controlling a servo via GPIO 4. My setup works for the micro servo's but not for any of the other digital servo's I have.

I've attached a picture of how my set up is currently structured. In this setup I have a TD-4212MG digital servo attached to a 7.2V external power supply just to ensure it is not a power issue:

https://drive.google.com/file/d/1fd6Qq7 ... drive_link

Running the code below doesn't cause the servo to move at at:

Code:

import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM)GPIO.setup(4, GPIO.OUT)servo = GPIO.PWM(4, 100)servo.start(2.5)time.sleep(2)servo.ChangeDutyCycle(15)time.sleep(2)

However, when I use a micro servo (shown below) with the same code above it works fine:

https://drive.google.com/file/d/1tthDvl ... drive_link

Using the same code with any of my bigger servos (again see below) do not seem to work at all):

https://drive.google.com/file/d/16TypF- ... drive_link

Can anyone help me understand what I am doing wrong?

Statistics: Posted by nhanderr — Mon Apr 01, 2024 3:56 am



Viewing all articles
Browse latest Browse all 3873

Trending Articles