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
Posted by RDIoT
|

9376 Motor Miniatura (9376) [D019]



https://www.youtube.com/watch?v=SpYVBLfMmfI


* GitHubhttps://github.com/rdiot/rdiot-d019.git



* Specs

 
VACIO
MÁXIMA EFICACIA
BLOQUEO
 
V.
R.P.M.
A.
R.P.M.
A.
Kg·cm.
Kg·cm.
A.
 340000.08531900.3417851.35
 685000.170000.54281783
 9123001.11106500.7302204.5
 12165000.125143000.836.52755.2

* Contents

- Connect

Red ----- D7

Black ----- GND

 

Buttton Module

S ----- D2

middle ----- 5V

- ----- GND


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x27,20,4);  // LCD2004

int R = 2;

byte lastButton = HIGH;

byte nowButton = HIGH;

int servo = 7;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

  pinMode(R, INPUT);

  pinMode(servo, OUTPUT);

 

  digitalWrite(R, HIGH);

 

  digitalWrite(servo, LOW);

  

  delay(1000);

 

  lcd.clear();

}

 

void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("D019:9376 Motor");

 

  byte nowButton = digitalRead(R);

 

  lcd.setCursor(0,1);

  lcd.print("value="+(String)nowButton);

 

  if (HIGH == lastButton)

  {

    if (LOW == nowButton)

    {

     lcd.setCursor(0,2);

     lcd.print("running motor  ");

     digitalWrite(servo, HIGH);

    }

  }

  else

  {

    if (HIGH == nowButton)

    {

     lcd.setCursor(0,2);

     lcd.print("stopped motor  ");

    digitalWrite(servo, LOW);

 

    }

  }

 

 lastButton = digitalRead(R);

 delay(100);

 

}

Posted by RDIoT
|

Micro 130 DC Motor [D071]



https://www.youtube.com/watch?v=_L1XE6mWqqI


* Specs

Motor Size: 15 *20 MM

Motor Height: 29 MM (bearing set, excluding output shaft)

Output shaft: 2 MM

Output shaft length: 9 MM (starting from the front panel)

Voltage: 3 V-6V

Speed: 5000 RPM (3V); 10000RPM RPM(6V)

Weight: 14g


* Contents

This is a general-purpose motor, a weak magnetic motor, which can be started by solar energy, suitable for small toy car, using 3-6V DC voltage.


- 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);  

  }

}

Posted by RDIoT
|