RPi 3,4
I use servokit with the 16 channels control board succesfully.
Does it work with the new Arducam pan tilt system with its own 2 channels control?
Thank you
Servokit with 2 channels controller
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Tannar
- Posts: 23
- Joined: Sat Nov 26, 2022 7:44 pm
Re: Servokit with 2 channels controller
I cant get mine to work. What software and code did you use?
- dstonek
- Posts: 41
- Joined: Tue Feb 20, 2018 8:00 pm
Re: Servokit with 2 channels controller
I’m installing a fresh Buster in Pi 4 and will try Servokit from Adafruit.
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Servokit with 2 channels controller
You'd only want to use one controller. Either the servokit with the 16 channels or the controller that came with the Arducam. The servos being used on the Arducam appear to be generic hobby servos. And the controller appears to use a PCA9685 - so is essentially the same thing as the ServoKit 16 channel controller.
- dstonek
- Posts: 41
- Joined: Tue Feb 20, 2018 8:00 pm
Re: Servokit with 2 channels controller
I've just tested them in a Pi 4 and
and it works okay but I the horizontal angle to front is 25 instead of 90. (enough for my needs)
A problem I had and solved with your help was that on reboot servos moved a bit despite angles were set the same from crontab. Solution that still works with 16 channels board was to add a non-slatching relay to cut the current to them after the angles were set.
With this new 2 channels and servos board there's no movement after reboot (or power on after power off).
Code: Select all
import time
import sys
from time import sleep
from adafruit_servokit import ServoKit
kit = ServoKit(channels=16)
kit.servo[0].angle = 25
kit.servo[1].angle = 90
A problem I had and solved with your help was that on reboot servos moved a bit despite angles were set the same from crontab. Solution that still works with 16 channels board was to add a non-slatching relay to cut the current to them after the angles were set.
With this new 2 channels and servos board there's no movement after reboot (or power on after power off).
- Tannar
- Posts: 23
- Joined: Sat Nov 26, 2022 7:44 pm
Re: Servokit with 2 channels controller
Is there any chance you could help me with my pca9685, it doesnt seem to want to work and i feel like ive tried everything
- dstonek
- Posts: 41
- Joined: Tue Feb 20, 2018 8:00 pm
Re: Servokit with 2 channels controller
Do you mean using Arducam or Adafruit pan tilt kit?
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Servokit with 2 channels controller
@Tannar. Please don't cross post in other people's threads. We'll work your issue in your other thread here:
viewtopic.php?p=950388
viewtopic.php?p=950388
Please be positive and constructive with your questions and comments.