PDFPrintE-mail


2A Motor Shield For Arduino
View Full-Size Image


2A Motor Shield For Arduino

( DFR )
SG$23.70



This Arduino Motor shield uses L298P chip which allow to drive two 7-12V DC motors with maximum 2A current. This shield can be directly mount onto standard Arduino Duemilanove and Arduino Mega.

Specification

  • 2 way 7-12V motor drive
  • Up to  2A current each way
  • Pin 5,6,7,8 are used to drive two DC motor
  • Support PWM speed control
  • Support PLL advance speed control

Documents

 

 

Sample code

 

PWM Speed Control

//Arduino PWM Speed Control:
int E1 = 6;   
int M1 = 7;
int E2 = 5;                         
int M2 = 4;                           

void setup() 
{ 
    pinMode(M1, OUTPUT);   
    pinMode(M2, OUTPUT); 
} 

void loop() 
{ 
  int value;
  for(value = 0 ; value <= 255; value+=5) 
  { 
    digitalWrite(M1,HIGH);   
    digitalWrite(M2, HIGH);       
    analogWrite(E1, value);   //PWM Speed Control
    analogWrite(E2, value);   //PWM Speed Control
    delay(30); 
  }  
}

PLL Speed Control

 

//Arduino PLL Speed Control:
int E1 = 7;   
int M1 = 6;
int E2 = 4;                         
int M2 = 5;                           

void setup() 
{ 
    pinMode(M1, OUTPUT);   
    pinMode(M2, OUTPUT); 
} 

void loop() 
{ 
  int value;
  for(value = 0 ; value <= 255; value+=5) 
  { 
    digitalWrite(M1,HIGH);   
    digitalWrite(M2, HIGH);       
    analogWrite(E1, value);   //PLL Speed Control
    analogWrite(E2, value);   //PLL Speed Control
    delay(30); 
  }  
}

Availability

In Stock: 1

Usually ships in:

2-3d.gif


Customer Reviews:

There are yet no reviews for this product.
Please log in to write a review.




Products Categories

We Accept


 


Shopping Cart

Your Cart is currently empty.

NOTE..


-> NO GST -> NO GST -> NO GST

Product Search



Advanced Search

Currency Selector




HTTPS Secure