'Gear'에 해당되는 글 3건

  1. 2016.10.05 Control H Bidge Gear Motor Control [P003]
  2. 2016.10.05 100RPM Gear Motor [S141]
  3. 2016.10.05 TT Motor Car Gear Motor [S142]

Control H Bidge Gear Motor Control [P003]



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


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


* Parts

- Arduino Uno R3

- L298N Dual Motor Driver H Bridge (L298N) [B005]

- TT Motor Car Gear Motor [S142]

 

 

* Contents

- Connect

ENA ----- D9

IN1 ----- D2

IN2 ----- D3

ENB ----- D10

IN3 ----- D4

IN4 ----- D5


- Key Code

int dir1PinA = 2;

int dir2PinA = 3;


int dir1PinB = 4;

int dir2PinB = 5;


int speedPinA = 9;

int speedPinB = 10;


int speed1;

int dir;


void setup()

{


  pinMode(dir1PinA,OUTPUT); // IN1

  pinMode(dir2PinA,OUTPUT); // IN2

  pinMode(speedPinA,OUTPUT); // ENA


  pinMode(dir1PinB,OUTPUT); // IN3

  pinMode(dir2PinB,OUTPUT); // IN4

  pinMode(speedPinB,OUTPUT); // ENB


  speed1 = 200;

  dir = 1;


  delay(1000);


}


void loop()

{


  //analogWrite(speedPinA, speed1); // 200 -> ENA 

  if(dir == 1)

  {

    digitalWrite(speedPinA, HIGH);

    digitalWrite(speedPinB, HIGH);

    

    digitalWrite(dir1PinA, LOW);

    digitalWrite(dir2PinA, HIGH);


    digitalWrite(dir1PinB, LOW);

    digitalWrite(dir2PinB, HIGH);

    

    delay(5000);


    digitalWrite(speedPinA, HIGH);

    digitalWrite(speedPinB, HIGH);

    

    digitalWrite(dir1PinA, HIGH);

    digitalWrite(dir2PinA, LOW);

    

    digitalWrite(dir1PinB, HIGH);

    digitalWrite(dir2PinB, LOW);

    

    delay(5000);


  }

}

Posted by RDIoT
|

100RPM Gear Motor [S141]



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


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


* Specs

Description:  

This is a DC Mini Metal Gear Motor,ideal for making robots

Light weight, high torque and low RPM.

Fine craftsmanship,durable,not easy to wear.

With excellent stall characteristics,can climb hills easily.

You can also easily mount a wheel on the motor’s output shaft.

 

Specification:

We guarantee the high quality condition for you

Rated Voltage:DC 12V

Speed:100RPM

Shaft Diameter:3mm

Size:Diameter: 12 mm

fuselage without shaft length: 26 mm 

Output axial length: 10 MM to 4.4 MM

Name:DC Mini Metal Gear Motor.

Voltage range:6-12V

Posted by RDIoT
|

TT Motor Car Gear Motor [S142]



https://www.youtube.com/watch?v=Kw7BCf-NGGE


* GitHub : https://github.com/rdiot/rdiot-s142.git


* Specs

Operating voltage: 3V~12VDC (recommended operating voltage of about 6 to 8V)

Maximum torque: 800gf cm min (3V)

No-load speed: 1:48 (3V time)

The load current: 70mA (250mA MAX) (3V)

This motor with EMC, anti-interference ability. The microcontroller without interference.

Size: 7x2.2x1.8cm(approx)

Voltage load current No-load speed

 6V ≤200mA 200 ± 10% rpm

 3V ≤150mA 90 ± 10% rpm



* Contents

- Key Code

void setup() {

  pinMode(A0,OUTPUT);

  pinMode(A1,OUTPUT);

}



void loop() {

  // put your main code here, to run repeatedly:


  digitalWrite(A0,HIGH);

  digitalWrite(A1,LOW);

  delay(1000);


  digitalWrite(A0,LOW);

  digitalWrite(A1,HIGH);

  delay(1000);


  digitalWrite(A0,LOW);

  digitalWrite(A1,LOW);


  delay(2000);

}

Posted by RDIoT
|