'NPN'에 해당되는 글 2건

  1. 2016.09.30 DC6~12V R030 Biaxial Double Axis DC Motor (R030) [D067]
  2. 2016.09.30 Micro 130 DC Motor [D071]

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

  }

}

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

댓글을 달아 주세요