2018-02-21から1日間の記事一覧

サーボの原理

RCサーボの中身

Arduinoでサーボ制御

write()ではなく、writeMicroseconds()を使う http://tetsuakibaba.jp/index.php?page=workshop/ServoBasis/main #include <Servo.h> Servo sv; void setup() { Serial.begin(9600); sv.attach(9); } void loop() { for(int i=0;i<180;i++){ int j = map(i,0,180,800,</servo.h>…