I have some Waveshare SC-15 serial servos and the Waveshare driver board -
https://www.waveshare.com/wiki/SC15_Servo
https://www.waveshare.com/bus-servo-adapter-a.htm
I'm struggling to communicate with them using a Pico, I've got this test code but I don't get any response back, I've confirmed all connections correct. Anyone have any ideas, thanks.
Below command based on the ping command in the protocol guide here 1.3.1 - https://files.waveshare.com/upload/2/27 ... 923%29.pdf
https://www.waveshare.com/wiki/SC15_Servo
https://www.waveshare.com/bus-servo-adapter-a.htm
I'm struggling to communicate with them using a Pico, I've got this test code but I don't get any response back, I've confirmed all connections correct. Anyone have any ideas, thanks.
Below command based on the ping command in the protocol guide here 1.3.1 - https://files.waveshare.com/upload/2/27 ... 923%29.pdf
Code:
import machineimport timeuart = machine.UART(0, baudrate=9600, tx=machine.Pin(16), rx=machine.Pin(17))def send_command(command): """ Send command to SCServo via UART """ uart.write(bytes(command)) time.sleep(0.1) # Wait for responsedef read_response(): """ Read response from SCServo """ time.sleep(0.1) # Give time for response if uart.any(): response = uart.read() return list(response) if response else None return Noneping_command = [0xFF, 0xFF, 0xFF, 0x01, 0x02, 0x01, 0xFB] # Broadcast + Servo ID 1print("Sending PING to Servo...")send_command(ping_command)response = read_response()print("Received:", response) # Should show [255, 255, 1, 2, 0, 252] if workingStatistics: Posted by nige6 — Wed Mar 19, 2025 10:24 am — Replies 0 — Views 11