ラズパイ
set_servo_pulsewidth(user_gpio, pulsewidth)
意味:
Starts (500-2500) or stops (0) servo pulses on the GPIO.
引数:
user_gpio:0-31でGPIOの番号を指定
pulsewidth:
0 (off)
500 (反時計回り向き端)
1500 回転の中間点
2500 (時計回り向き端).
解説:
The selected pulsewidth will continue to be transmitted until changed by a subsequent call to set_servo_pulsewidth.
選択されたパルス幅は、後続の set_servo_pulsewidth の呼び出しによって変更されるまで送信され続けます。
The pulsewidths supported by servos varies and should probably be determined by experiment. A value of 1500 should always be safe and represents the mid-point of rotation.
サーボによってサポートされるパルス幅はさまざまなので、おそらく実験によって決定する必要があります。 値 1500 は常に安全であり、回転の中間点を表します。
サーボモータによって
You can DAMAGE a servo if you command it to move beyond its limits.
サーボの動作範囲を超えた信号を入力すると、損傷の可能性がある。