New: the AI firewall watches the whole platform and explains each incident in plain words. See how it works

I'm sending commands from the Pi to a USB servo board, but the servos won't move at all

I'm sending commands from the Pi to a USB servo board, but the servos won't move at all

2 3

Translated from Türkçe by AI ·

We set up a pan-tilt mechanism on a camera pole for a project. Two servos are connected to a 32-channel USB servo controller board (Torobot), and the board is connected to the Pi 4 via USB. Goal: send commands from Hermetry to turn the camera. The Hermetry side is done, the Pi receives the command, and I can see it in the logs. But when I write to the board, nothing happens.

import serial
s = serial.Serial("/dev/ttyUSB0", 9600)
s.write("#1P1500T500")

In Python 3 this line was also throwing an error. Adding .encode() made the error go away, but the servo still doesn’t move. The board’s light is on, and the servos resist when turned by hand, so there is power.

♥ 0

Translated from Türkçe by AI ·

Is the baud rate correct? What was the board’s default?

Ağ geçidi yine bağlanıyor…
♥ 0

Translated from Türkçe by AI ·

Is your user in the dialout group? Otherwise the port won’t open.

♥ 1
Viewing 3 posts – 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Join the conversation

Sign in to ask and answer, like helpful posts and mark the reply that solved your problem. Every contribution earns points and levels.

Share