Servo Motor(DM-S0090D,360): 두 판 사이의 차이
잔글편집 요약 없음 |
잔글편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
{{#seo:|title= | {{#seo:|title=ArduWiki : Arduino Servo Motor (DM-S0090D) Guide|title_mode=append|keywords=Arduino, Computer Science, Maker Learning, Performance Assessment, Servo Motor (DM-S0090D), Arduino Project, Capstone Project, Arduino Example Code|description=Introduces how to control a DM-S0090D servo motor using Arduino (basic info, wiring, example code). Useful for computer science and maker classes.}} | ||
[[File:DMS0090D대표이미지.jpg|center|class=coders100]] | [[File:DMS0090D대표이미지.jpg|center|class=coders100]] | ||
The DM-S0090D is a 360-degree rotating servo motor. Unlike 180-degree servo motors, which are used for angle adjustment, this motor adjusts the rotation direction and speed. | The DM-S0090D is a 360-degree rotating servo motor. Unlike 180-degree servo motors, which are used for angle adjustment, this motor adjusts the rotation direction and speed. | ||
2025년 3월 27일 (목) 15:26 기준 최신판

The DM-S0090D is a 360-degree rotating servo motor. Unlike 180-degree servo motors, which are used for angle adjustment, this motor adjusts the rotation direction and speed.
Specifications
- 360-degree continuous rotation
- Weight: approximately 9g
- Dimensions: 23mm12mm22.5mm
- Torque: 1.5kg.cm at 4.8V, 1.6kg.cm at 6V
- Operating Voltage: 4.8 ~ 6V
Example Required Hardware
- Arduino board
- DM-S0090D
- Jumper cables
Connection
| Arduino Uno | DM-S0090D |
| 5V | +(red wire) |
| GND | -(black wire) |
| 7 | S(orange wire) |

Example Code
This example code makes the servo rotate clockwise for 1 second, then stops for 1 second, rotates counterclockwise for 1 second, and stops for 1 second, repeatedly.
#include <Servo.h> // Use the Servo motor library
Servo servo; // Declare a servo object
void setup() {
servo.attach(7); // Assign the servo motor to pin number
servo.write(90); // Stop the servo motor
delay(1000);
}
void loop() {
servo.write(60); // Rotate clockwise
delay(1000);
servo.write(90); // Stop
delay(1000);
servo.write(120); // Rotate counterclockwise
delay(1000);
servo.write(90); // Stop
delay(1000);
}
Example Code Result