logo

为什么我的舵机没反应啊 用的例程 线接的也是对的 舵机也是5V就能供的起来的 就是没反应

2024-04-18 09:35
F
g5ay

import time

from servo import Servos

from machine import I2C, Pin

i2c = I2C(sda=Pin('P5'), scl=Pin('P4'))

servo = Servos(i2c, address=0x40, freq=50, min_us=500, max_us=2500, degrees=180)

while True:

servo.position(0, 0)

time.sleep_ms(500)

servo.position(0, 180)

time.sleep_ms(500)

2024-04-18 20:35
I
网红小智智 星瞳科技

我估计你没有连接电池。舵机需要单独的供电,不能从USB取电。