1

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.

asked Jul 1, 2021 at 19:25
2
  • 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 Commented Jul 1, 2021 at 20:40

1 Answer 1

1

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

answered Jul 2, 2021 at 13:37
1
  • Did you see Dave Newton's comment below the question? Commented Jul 2, 2021 at 14:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.