L9110 Fan Module (L9110) [D086]




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


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


* Specs

Designed for fire fighting robot and adopt 9110 H as the bridge drive
Can be used with steering engine to control the wind direction
Can control positive and negative going motion easily.
High quality propeller,high efficiency
Can be easily blow out the lighter flame(beyond 20 cm)
Working Voltage: 5V 
Color: Red + white + black
Size:Approx.34 x 26 x 12mm/1.33*1.02*0.47inch(excluding propeller)
Propeller Diameter : Approx. 75mm / 2.95 inch
Package Includes:
1 x Fan Motor Module


* Contents

- Connect 

INB ----- D8

INA ----- D9

VCC ----- 5V

GND ----- GND

 

- Source

int INA = 9; 

int INB = 8; 


void setup() 

  pinMode(INA,OUTPUT); 

  pinMode(INB,OUTPUT); 

void loop() 

  // LEFT

  digitalWrite(INA,LOW);

  digitalWrite(INB,HIGH); 

  delay(1000); 

  

  digitalWrite(INA,LOW);

  digitalWrite(INB,LOW); 

  delay(3000); 


  // RIGHT

  digitalWrite(INA,HIGH);

  digitalWrite(INB,LOW); 

  delay(1000); 


  digitalWrite(INA,LOW);

  digitalWrite(INB,LOW); 

  delay(3000); 

}

Posted by RDIoT
|

UVC Camera Servo Motor Control [P006.1]




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


*GitHubhttps://github.com/rdiot/rdiot-p006.1.git


* Parts

- Arduino Yun (ARDUINO-YUN) [B015]

- Logitech HD WebCam C310 (C310) [S084]

- SG90 Camera Mount [B051]

- Tower Pro SG90 Micro Servo (SG90) [D018]  

 

Contents

- Control Interface 


- Source

#include <Bridge.h>
#include <YunServer.h>
#include <YunClient.h>
#include <Servo.h> 
 
YunServer server;

Servo myservo1;
Servo myservo2;

int servoPin_leftright = 9; 
int servoPin_updown = 10; 

int pos_updown_min = 100; 
int pos_updown_max = 150;

int pos_leftright_min = 0;
int pos_leftright_max = 90;

int pos_updown;
int pos_leftright;
int pos_cnt = 5;

void setup() {
  Serial.begin(9600);
  pinMode(13,OUTPUT);
  
  digitalWrite(13, LOW);
  Bridge.begin();
  digitalWrite(13, HIGH);
  
  server.listenOnLocalhost();
  server.begin();

  myservo1.attach(servoPin_leftright); 
  myservo2.attach(servoPin_updown); 

  for(int pos = 0; pos < 65; pos += 1) 
  { 
    myservo1.write(pos);
    pos_leftright = pos;

    delay(100); 
  }

  for(int pos = 150; pos>=100; pos-=1)
  { 
    myservo2.write(pos); 
    pos_updown = pos;
    delay(100); 
  } 
}

void loop() {
  YunClient client = server.accept();
 
  if (client) {
    process(client);
    client.stop();
  }
  delay(50); 
}

void process(YunClient client) {
  String command = client.readStringUntil('/');
 
  if (command == "control") {
    controlCommand(client);
  }
}
 
void digitalCommand(YunClient client) {
  int pin, value;
pin = client.parseInt();
 
  if (client.read() == '/') {
    value = client.parseInt();
    digitalWrite(pin, value);
  } 
  else {
    value = digitalRead(pin);
  }
  client.print(F("Pin D"));
  client.print(pin);
  client.print(F(" set to "));
  client.println(value);
 
  String key = "D";
  key += pin;
  Bridge.put(key, String(value));

}

void controlCommand(YunClient client) {
  String mode = client.readStringUntil('/');
  
  if(mode == "up")
  {
    int temp = pos_updown + pos_cnt;
    if(temp < pos_updown_max)
    {
      myservo2.write(temp); 
      pos_updown = temp;
    }
  }

  if(mode == "down")
  {
   int temp = pos_updown - pos_cnt;
    if(temp > pos_updown_min)
    {
      myservo2.write(temp); 
      pos_updown = temp;
    } 
  }

  if(mode == "right")
  {    
   int temp = pos_leftright - pos_cnt;
    if(temp > pos_leftright_min)
    {
      myservo1.write(temp); 
      pos_leftright = temp;
    }  
  }

  if(mode == "left")
  {
   int temp = pos_leftright + pos_cnt;
    if(temp < pos_leftright_max)
    {
      myservo1.write(temp); 
      pos_leftright = temp;
    }

  }

  client.print(F("Camera "));
  client.print(mode);
  client.print(F(" Current Point X = "));
  client.print(pos_leftright);
  client.print(F(", Current Point Y = "));
  client.print(pos_updown);
}


Posted by RDIoT
|

L9110S 2-Channel Dual Motor Driver (L9110S) [B042]



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


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


* Specs

The L9110S 2-Channel motor driver module is a compact board that can be used

to drive small robots. This module has two independent motor driver chips which can

each drive up 800mA of continuous current. The boards can be operated from 2.5V to

12V enabling this module to be used with both 3.3V and 5V microcontrollers.



On-board 2 L9110 motor control chip

Module can be driven by two dc motors at the same time or one phase 4 line 2 type stepping motor

Input voltage: 2.5-12V DC

Each channel has a continuous output current 800 ma

PCB Size: 29.2mm x 23mm



* Contents

- Connect

Motor Driver gnd, vcc --- Arduino gnd, Vcc

B-1A --- A0

B-1B --- A1



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

ULN2003 Stepper Motor driver (X113647) [B002]



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


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


* Specs

Driver ID : ULN2003AN

Description:

Rated Voltage: DC5V

4-phase

Reduction Ratio: 1/64

Step Torque Angle: 5.625/64

DC Resistance: 200±7% (25)

Insulation Resistance: >10M (500V)

Dielectric Strength: 600V AC / 1mA / 1s

Insulation Grade: A

No-load Pull in Frequency: >600Hz

No-load Pull out Frequency: >1000Hz

Pull in Torque: >34.3mN.m(120Hz)

Detent Torque: >34.3mN.m

Temperature Rise: <40K(120Hz)

Noise: <40dB (120Hz, No load, 10cm)

Board Size: Approx. 29 ×21 mm


* Contents

- Connect

5V -  ----- 5V 

5V +  ----- GND

 

IN1 ----- D8

IN2 ----- D9

IN3 ----- D10

IN4  ----- D11


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Stepper.h>

 

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

const int stepsPerRevolution = 2048; // 2048(360 Degree), 1024(180 Degree)

 

// IN4, IN2, IN3, IN1

Stepper myStepper(stepsPerRevolution,11,9,10,8); 

 

int val;

 

void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");

 

  delay(1000);

  

  myStepper.setSpeed(14); 

  lcd.clear();

}

 

void loop()

{ 

  lcd.setCursor(0,0);

  lcd.print("D021:28BYJ-48");

  lcd.setCursor(0,1);

  lcd.print("B002:X113647");

 

  // Left 1 Round

  myStepper.step(stepsPerRevolution);

  val = stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("right=" + (String)val + "  ");

  delay(500);

 

  // Right 1 Round

  myStepper.step(-stepsPerRevolution);

  val = -stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("left=" + (String)val + "   ");

  delay(500); 

}



Posted by RDIoT
|

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
|

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



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


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

* Specs

Description:

Using L298N as the control chip,the module has such characteristics as strong driving ability,low calorific value and strong anti-interference ability. This module can use built-in 78M05 for electric work via a driving power supply part. But to avoid the damage of the voltage stabilizing chip, please use an external 5V logic supply when using more than 12V driving voltage. Using large capacity filter capacitor, this module can follow current to protect diodes,and improve the reliability.


Feature:

L298N Double H Bridge Motor Driver Module Control chip: L298N Logical voltage: 5V Drive voltage: 5V - 35V Logical current: 0mA - 36mA Drive current: 2A(MAX single bridge) Storage temperature: -20°C to +135°C Max power: 25W Size: 43 x 43 x 27mm


* Contents

- Connect

12V ------ 9V VCC

GND ----- 9V GND, Arduino GND

5V ----- Arduino 5V


ENA ----- D9

IN1 ----- D2

IN2 ----- D3


OUT1 ----- Motor +

OUT2 ----- Motor -


- Key Code 

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>


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


int dir1PinA = 2;

int dir2PinA = 3;

int speedPinA = 9;

int speed1;

int dir;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  pinMode(dir1PinA,OUTPUT); // IN1

  pinMode(dir2PinA,OUTPUT); // IN2

  pinMode(speedPinA,OUTPUT); // ENA

  speed1 = 200;

  dir = 1;


  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("B005:L298N Driver");


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

  if(dir == 1)

  {

    digitalWrite(speedPinA, HIGH);

    digitalWrite(dir1PinA, LOW);

    digitalWrite(dir2PinA, HIGH);

    lcd.setCursor(0,1);

    lcd.print("ENA=" + (String)speedPinA + " HIGH");   

    lcd.setCursor(0,2);

    lcd.print("IN1=" + (String)dir1PinA + " LOW ");

    lcd.setCursor(0,3);

    lcd.print("IN2=" + (String)dir2PinA + " HIGH ");

    delay(5000);


    digitalWrite(speedPinA, HIGH);

    digitalWrite(dir1PinA, HIGH);

    digitalWrite(dir2PinA, LOW);

    lcd.setCursor(0,1);

    lcd.print("ENA=" + (String)speedPinA + " HIGH");   

    lcd.setCursor(0,2);

    lcd.print("IN1=" + (String)dir1PinA + " HIGH ");

    lcd.setCursor(0,3);

    lcd.print("IN2=" + (String)dir2PinA + " LOW ");

    delay(5000);


    digitalWrite(speedPinA, LOW);

    lcd.setCursor(0,1);

    lcd.print("ENA=" + (String)speedPinA + " LOW ");   

    

    lcd.setCursor(0,2);

    lcd.print("IN1= STOP  ");   

  

    lcd.setCursor(0,3);

    lcd.print("IN2= STOP  ");   


    dir = 0;

  }

}



Posted by RDIoT
|

6~28V 3A Motor Speed Controller [B056]



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


* Specs

This DC Motor Speed Controller allows controlling the direction of a DC motor using a Pulse-Width-Modulated (PWM) DC voltage with a Duty Cycle fully adjustable from 0%-100%. 

The motor speed controller can easily provide a continuous current of3A to your DC motor or other DC load. 

Main technical parameters: 

Input supply voltage:6V-28VDC 

The maximum output power: 80W 

The maximum continuous output current :3A 

Duty Cycle adjustable:0%-100% 


Operating instruction: 

1. Connect your DC motor (or DC load) to the motor terminals as indicated on the wiring diagram. 

2. Connect a voltage of 10V-36V DC to the circuit making sure of the correct polarity of the connection. Note that the voltage applied to the motor will be supply voltage applied to the circuit. It is recommended to add an appropriately rated fuse inline with the positive supply in order to protect the circuit from any possible short circuits. 

3. You can now control the speed of the motor through potentiometer.

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
|

Clamp Gripper Bracket Servo Mount [B045]



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


* Specs

Use:Vehicles & Remote Control Toys

Technical parameters:Value 2

RC Parts & Accs:Servo Accessories

Model Number:gripper

Robot Clamp Gripper Bracket Servo Mount Plastic Claw Arm kit For MG995 MG996 SG5010 Servo use of the egineering Plastics material very light, solid and hardness

'3) Actuator > Motor' 카테고리의 다른 글

100RPM Gear Motor [S141]  (0) 2016.10.05
TT Motor Car Gear Motor [S142]  (0) 2016.10.05
4-Phase 5-Wire Stepper Motor (28BYJ-48) [D021]  (0) 2016.10.04
TowerPro SG5010 Micro Servo (SG5010) [D032]  (0) 2016.10.04
SG90 Camera Mount [B051]  (0) 2016.10.04
Posted by RDIoT
|

4-Phase 5-Wire Stepper Motor (28BYJ-48) [D021]



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


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

* Specs

Color: Silver

Diameter: 28mm

Voltage: 5V

No-load pull into the frequency: >600Hz

Phase: 4

No-load pull-out frequency: >1000Hz

Reduction ratio: 1/64

Pull-in torque: >34.3mN.m (120Hz)

Step Angle: 5.625 x 1/64

Self-positioning torque: >34.3mN.m

DCR: 200ohm +/- 7% (25'C)

Temperature: <40K (120Hz)

Insulation resistance: >10Mohm (500V)

Noise: <40dB (120Hz, No load, 10cm)

Dielectric Strength: AC 600V / 1mA / 1s

Insulation Class: A

Cable length: 24cm

Suitable for guide wind deflector, portable air conditioner valve, etc

Dimensions: 1.65 in x 1.22 in x 0.79 in (4.2 cm x 3.1 cm x 2.0 cm)

Weight: 1.20 oz (34 g)


* Contents

28BYJ-48 Stepper Motor and ULN2003 Motor Driver


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Stepper.h>


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

const int stepsPerRevolution = 2048; // 2048:(360 Degree), 1024:(180 degree)


// ULN2003 IN4, IN2, IN3, IN1

Stepper myStepper(stepsPerRevolution,11,9,10,8); 


int val;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  delay(1000);

  

  myStepper.setSpeed(14); 

  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("D021:28BYJ-48");

  lcd.setCursor(0,1);

  lcd.print("B002:X113647");


  // Left 1 round

  myStepper.step(stepsPerRevolution);

  val = stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("right=" + (String)val + "  ");

  delay(500);


  // Right 1 round

  myStepper.step(-stepsPerRevolution);

  val = -stepsPerRevolution;

  lcd.setCursor(0,2);

  lcd.print("left=" + (String)val + "   ");

  delay(500);


}

'3) Actuator > Motor' 카테고리의 다른 글

TT Motor Car Gear Motor [S142]  (0) 2016.10.05
Clamp Gripper Bracket Servo Mount [B045]  (0) 2016.10.04
TowerPro SG5010 Micro Servo (SG5010) [D032]  (0) 2016.10.04
SG90 Camera Mount [B051]  (0) 2016.10.04
Tower Pro SG90 Micro Servo (SG90) [D018]  (0) 2016.10.04
Posted by RDIoT
|

Digital Multi Servo Tester ECS [B176]



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


* Specs

Features:

CCPM Servo Consistency Master / Servo tester

The device also can be used as a signal generator for electric speed controller (ESC), then you can test your motor system without using a transmitter and receiver.

There are 3 modes to check servos or ESC:

Manual mode: turn the knob with different speed, check the reaction time.

Neutral mode: make the servo go back to the neutral point.

Automatic \"window wiper\" mode: make the servo swing like a window wipers in the biggest angle.

It can connect 1-3 servos simultaneously and test such as 1-3 servos consistency and so on.

You can also connect 1-3 ESC to test and compare their reaction time respectively.

It can connect 3 servos of the CCPM helicopters and select servos.

It can also connect the servo of airplanes install the steering-box and adjust planes by using such as the neutral mode and so on.


Specification:

Voltage consumption: DC4.8-6V 

Size: 48 x 42 x 17mm 

Original box: NO

Color: Blue

Item size: 48*42*17 mm

Net weight: 7g

Package weight: 13g


Packet content:

1 x multi Servo tester

Posted by RDIoT
|

TowerPro SG5010 Micro Servo (SG5010) [D032]



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


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


* Specs

owerPro SG5010 Micro Servo.

Small and exquisite appearance, it is convenient to carry.

Coreless motor and double ball bearing.

Less noise, light weight.

Used for model airplane accessories.

Stable performance and shock proof.

Color: Black

Connector wire length: 28.3cm

Operating speed (4.8V no load): 0.14sec/60 degrees

Operating speed (6.0V no load): 0.11sec/60 degrees

Stall torque(4.8V): (8kg/cm) (110oz/in.)

Stall torque(6.0V): (11kg/cm) (156oz/in.)

Temperature range: -30 to 60°

Dead band width: 4usec

Operation Voltage: 3.5-8.4V

Item weight: 55g

Package including:1 * Torque servo

4 * Rubber grommets

4 * Brass eyelets

5 * Screws

5 * Servo horn set


* Contents

- Key Code

#include <Servo.h>

Servo towerprosg5010; 

 

int pos = 0; 

 

void setup()

{

  towerprosg5010.attach(9); 

}

 

void loop()

{

  for(pos = 0; pos < 180; pos += 1)  // 0 to 180 degrees with 1 degree step

  {                                  

    towerprosg5010.write(pos);  

    delay(120);                       // time set 120 ms 

  }

}

Posted by RDIoT
|

SG90 Camera Mount [B051]



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


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


* Specs

Weight : 0.050kg (0.11lb.)

Size : 13cm x 9cm x 8cm (5.12in x 3.54in x 3.15in)


* Contents

- Connect

Top ----- D12

Bottom ----- D11


- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Servo.h> 


LiquidCrystal_I2C lcd(0x27,20,4);

Servo myservo1;

Servo myservo2;


int servoPin_updown = 12;

int servoPin_leftright = 11;


int pos_updown = 0;

int pos_leftright = 0;


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  myservo1.attach(servoPin_updown); 

  myservo2.attach(servoPin_leftright); 

  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("B051:SG90 Mount");



  for(pos_leftright = 0; pos_leftright < 180; pos_leftright += 1) 

  { 

    myservo2.write(pos_leftright);

    //lcd.setCursor(0,1);

    //lcd.print("pos0~179=" + (String)pos + "  " );


    delay(10); 

  }


  for(pos_leftright = 180; pos_leftright>=0; pos_leftright-=1)

  { 

    myservo2.write(pos_leftright); 

    //lcd.setCursor(0,2);

    //lcd.print("pos180~1=" + (String)pos + "  " );

    delay(10); 

  } 


  

  for(pos_updown = 80; pos_updown < 180; pos_updown += 1) 

  { 

    myservo1.write(pos_updown);

    //lcd.setCursor(0,1);

    //lcd.print("pos0~179=" + (String)pos + "  " );


    delay(10); 

  }


  for(pos_updown = 180; pos_updown>=80; pos_updown-=1)

  { 

    myservo1.write(pos_updown); 

    //lcd.setCursor(0,2);

    //lcd.print("pos180~1=" + (String)pos + "  " );

    delay(10); 

  } 


}

Posted by RDIoT
|

Tower Pro SG90 Micro Servo (SG90) [D018]



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


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


* Specs

Speed: 0.12 second / 60 degrees rotation

Torque: 1.2-1.4kg @ 4.8V~6V power

Comes with full ranged connectivity accessories and mounting screws

Working temperature: -30 to +60 degrees Celsius

Dead band setting: 7 microseconds


* Contents

- Connect

Brown - GND

Red - 5V

Orange - D12



- Key Code

#include <Wire.h> 

#include <LiquidCrystal_I2C.h>

#include <Servo.h> 



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

Servo myservo; 

int servoPin = 12;

int pos = 0; 


void setup()

{

  lcd.init();  // initialize the lcd 

  lcd.backlight();

  lcd.print("start LCD2004");


  myservo.attach(servoPin); 

  delay(1000);


  lcd.clear();

}


void loop()

{

 

  lcd.setCursor(0,0);

  lcd.print("D018:SG90 Servo");


  for(pos = 0; pos < 180; pos += 1) 

  { 

    myservo.write(pos);

    lcd.setCursor(0,1);

    lcd.print("pos0~179=" + (String)pos + "  " );


    delay(0); // Control Speed by delay time.

  }


  for(pos = 180; pos>=1; pos-=1)

  { 

    myservo.write(pos); 

    lcd.setCursor(0,2);

    lcd.print("pos180~1=" + (String)pos + "  " );

    delay(0); 

  } 

}


Posted by RDIoT
|

Helicopter Coreless DC Motor [S143]



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


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


* Specs

Voltage: DC 3.7-4.2V

Current: 0.1A

Speed: DC3.7V------39000 RPM; D4.2V-----45000RPM

Motor diameter: 7MM

Motor length: 16MM

Output shaft diameter: 0.8MM

Output shaft length: 4.5MM

Weight: 2g

Propeller length: 45MM

Propeller: Red or Black


* Contents

- Key Code

void setup() {

  pinMode(A0,OUTPUT);

  pinMode(A1,OUTPUT);

}

 

void loop() {

  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
|

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
|