Servokit with 2 channels controller

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dstonek
 
Posts: 41
Joined: Tue Feb 20, 2018 8:00 pm

Servokit with 2 channels controller

Post by dstonek »

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

User avatar
Tannar
 
Posts: 23
Joined: Sat Nov 26, 2022 7:44 pm

Re: Servokit with 2 channels controller

Post by Tannar »

I cant get mine to work. What software and code did you use?

User avatar
dstonek
 
Posts: 41
Joined: Tue Feb 20, 2018 8:00 pm

Re: Servokit with 2 channels controller

Post by dstonek »

I’m installing a fresh Buster in Pi 4 and will try Servokit from Adafruit.

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: Servokit with 2 channels controller

Post by adafruit_support_carter »

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.

User avatar
dstonek
 
Posts: 41
Joined: Tue Feb 20, 2018 8:00 pm

Re: Servokit with 2 channels controller

Post by dstonek »

I've just tested them in a Pi 4 and

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
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).

User avatar
Tannar
 
Posts: 23
Joined: Sat Nov 26, 2022 7:44 pm

Re: Servokit with 2 channels controller

Post by Tannar »

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

User avatar
dstonek
 
Posts: 41
Joined: Tue Feb 20, 2018 8:00 pm

Re: Servokit with 2 channels controller

Post by dstonek »

Do you mean using Arducam or Adafruit pan tilt kit?

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: Servokit with 2 channels controller

Post by adafruit_support_carter »

@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

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”