I'm trying to make it so I can control 2 servos with data that I get from a python script that tracks my face.

I have found 2 libraries that do this:pySerial and pyfirmata.

Is one superior to the other one, are there more libraries, or should approach things differently.

  • 3
    They're different things: one is a specific interface to Arduino Firmata, one is a generic serial port library. "Superior" depends on context, usage, etc. Either would work perfectly fine, each would require a different approach. Commented Jul 1, 2021 at 19:52
  • 1
    Thank you so much
    – WaddleBoy
    Commented Jul 1, 2021 at 20:40

1 Answer 1


I'd say pyFirmata can work but controling servos ... NOPE! use pyserial and add the code

  • Did you see Dave Newton's comment below the question? Commented Jul 2, 2021 at 14:10
  • no but thanks i needed it Commented Jul 2, 2021 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.