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.
-
3They'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.Dave Newton– Dave Newton2021年07月01日 19:52:12 +00:00Commented Jul 1, 2021 at 19:52
-
1Thank you so muchWaddleBoy– WaddleBoy2021年07月01日 20:40:22 +00:00Commented 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
answered Jul 2, 2021 at 13:37
-
Did you see Dave Newton's comment below the question?sempaiscuba– sempaiscuba2021年07月02日 14:10:05 +00:00Commented Jul 2, 2021 at 14:10