คำอธิบาย
TD-8320MG เซอร์โวมอเตอร์แรงบิดสูง Digital Servo Motor High Torque DC4.8V to 6.6V 20kg 180D TD8320MG (Waterproof)
การประยุกต์ใช้
หุ่นยนต์, แขนกล, งานที่ต้องการควบคุมแรงบิดสูง
ตัวอย่าง Code การควบคุมดิจิตอลเซอร์โวโดยใช้ PWM
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#include <Servo.h> Servo myservo; // create servo object to control a servo // twelve servo objects can be created on most boards int pos = 0; // variable to store the servo position void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo object } void loop() { for (pos = 0; pos <= 150; pos += 1) { // goes from 0 degrees to 180 degrees // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } for (pos = 150; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position } } |
เฉพาะลูกค้าที่เข้าสู่ระบบ และเคยซื้อสินค้าชิ้นนี้แล้วเท่านั้น ที่เขียนบทวิจารณ์ได้
รีวิว
ยังไม่มีบทวิจารณ์