I want to control 2 servos in python pyfirmata library, but I can only run 1 pc.

I can only control 1 servo in code with pyfirmata, I need to increase it to 2. I tried threading and serial libraries as alternatives but it didn't work.
Data sent with opencv in the serial library is causing problems. I couldn't run it with thread either. I don't know if it will work with the servofirmata library, I would appreciate it if you could help. my goal is to track objects with image processing together with servos

This guy shows how to do it:

Thanks, I got it done, but not the way you said. I took a look at it, but there is an error, let me tell you how I did it:
After pyfirmata general calibration, we had to add a command called .mode=servo for the servo, I couldn't because I added it for only 1 pin. We had to write .mode=servo for 2 pins

Ekran görüntüsü 2022-10-06 012346

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.