Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5120

Python • Re: RPI Servo

$
0
0
What i would need, to set up two servos to rotate on certain angles (different from one another), with one command (example: say ''Ok'' and one servo turn 90 degree, the other 45)?
Then create two servos object. This is quite simple. Next will be to figure out how your speak recongnition will acces them individually or together.

I'm using the echo dot with an old python code called fauxmo which emulate the belkin and it works great but I didn't touch it for years since it works and I didn't have to change anything for long time.

So maybe your voice command should be something like "servo 1 120", "servo 2 90", "servo mode 1" which will set both servos to a specific value. This is up to you

Statistics: Posted by danjperron — Mon Jan 22, 2024 4:12 pm



Viewing all articles
Browse latest Browse all 5120

Trending Articles