DC6~12V R030 Biaxial Double Axis DC Motor (R030) [D067]
https://www.youtube.com/watch?v=1jvl2rFBCb4
* GitHub : https://github.com/rdiot/rdiot-d067.git
* Specs
Contain: 1pcs R030 motor
Motor Diameter: 15.5 MM
Motor Height: 19 MM (Not include output shaft)
Output shaft Diameter: 1.5 MM
Output shaft length: 13 MM (starting from the front panel)
Voltage: DC6-12V
Speed: 13500RPM(12V)
Weight: 12g
Electric current: 0.1A
* Contents
- Key Code
int motorPin = 9; //D9
void setup() {
pinMode(motorPin, OUTPUT); //PWM
Serial.begin(9600);
Serial.println("DC Motor Input Speed 0~255");
}
void loop() {
if(Serial.available())
{
int speed = Serial.parseInt();
Serial.println(speed);
analogWrite(motorPin,speed);
}
}
'3) Actuator > Motor' 카테고리의 다른 글
SG90 Camera Mount [B051] (0) | 2016.10.04 |
---|---|
Tower Pro SG90 Micro Servo (SG90) [D018] (0) | 2016.10.04 |
Helicopter Coreless DC Motor [S143] (0) | 2016.09.30 |
9376 Motor Miniatura (9376) [D019] (0) | 2016.09.30 |
Micro 130 DC Motor [D071] (0) | 2016.09.30 |