Using the simple code below, I’ve been able to control a servo connected to P7 (servo 1). But if I add another servo on P8 for servo 2, (with the appropriate code), and just try to control that servo, I get this weird interaction where both servos respond with one of them oscillating back and forth. I thought maybe my board had a short between pins P7 and P8 but that wasn’t the problem.The servos are powered by a 6 volt battery pack with the common ground also connected to a ground pin on the OpenMV. I’m using an OpenMV H7, model 4 with the latest firmware (4.3.3) and the servo signal wires are connected to P7 & P8. One other thing: if I have only one servo signal wire connected at a time (e.g. just one servo connected to P7) and run its code, it work fine. If I pull that wire out and connect the other servo to P8 and run its code it also works fine.
Thanks,
Marc Helfman
Santa Rosa, CA
Code for servo 1:
from pyb import Servo
s1 = Servo(1) # P7
s1.angle(25)
Code for servo 2:
from pyb import Servo
s2 = Servo(2) # P8
s2.angle(25)