E Shore Technologies - Online Robotic Center

  • Increase font size
  • Default font size
  • Decrease font size
Home Motor Controller Motor Driver 2A Dual Motor Controller User Manual


2A Dual Motor Controller User Manual

E-mail Print PDF

Introduction

2A Dual Motor Controller 1

This is a 4.8-46V, 2A Dual Motor Controller. Its performance has been improved greatly. It can bear larger current due to the increased haetsink dissipation. It is easy to control, using LGS's outstanding high-power motor driver chip, the L298N. This chip allows for direct drive of two bi-directional DC motors, and incorporates high-speed short diodes for protection. Drive current up to 2A per motor output. The driver uses a broad-brush design to reduce wire resistance.

 

Specifications

  • The logic part of the input voltage: 6 ~ 12V
  • Driven part of the input voltage Vs: 4.8 ~ 46V
  • The logical part of the work current Iss: 36mA
  • Drive part of the operating current Io: 2A
  • Maximum power dissipation: 25W (T = 75 degree Celsius)
  • Control signal input level:
  • High level: 2.3V = Vin = Vss
  • Low:-0.3V = Vin = 1.5V
  • Operating temperature: -25 degree Celsius ~ +130 degree Celsius
  • Drive Type: Dual high-power H-bridge driver
  • Module Size: 47 mm × 53mm
  • Module Weight: About 29g

 

BOARD DEFINITION

2A Dual motor controller board definition

 

SAMPLE CONNECTION DIAGRAM

2A Dual motor controller  sample diagram

NOTE: Ensure you have a ground wire running between Arduino GND and motor controller GND where battery power GND is connected.

 

Sample Code

For Arduino:

//This is Arduino Code
//Standard PWM DC control
//Connect E1 to Digital Pin 5 (Arduino)
//Connect E2 to Digital Pin 6 (Arduino)
//Connect M1 to Digital Pin 4 (Arduino)
//Connect M2 to Digital Pin 7 (Arduino)
 
int E1 = 5;     //M1 Speed Control
int E2 = 6;     //M2 Speed Control
int M1 = 4;    //M1 Direction Control
int M2 = 7;    //M1 Direction Control
 
void stop(void)                    //Stop
        {
          digitalWrite(E1,LOW);   
          digitalWrite(E2,LOW);      
        }   
void advance(char a,char b)          //Move forward
        {
          analogWrite (E1,a);      //PWM Speed Control
          digitalWrite(M1,HIGH);    
          analogWrite (E2,b);    
          digitalWrite(M2,HIGH);
        }  
void back_off (char a,char b)          //Move backward
        {
          analogWrite (E1,a);
          digitalWrite(M1,LOW);   
          analogWrite (E2,b);    
          digitalWrite(M2,LOW);
}
void turn_L (char a,char b)             //Turn Left
        {
          analogWrite (E1,a);
          digitalWrite(M1,LOW);    
          analogWrite (E2,b);    
          digitalWrite(M2,HIGH);
        }
void turn_R (char a,char b)             //Turn Right
        {
          analogWrite (E1,a);
          digitalWrite(M1,HIGH);    
          analogWrite (E2,b);    
          digitalWrite(M2,LOW);
        }
void setup(void) 
{ 
    int i;
    for(i=6;i<=9;i++)
    pinMode(i, OUTPUT);  
    Serial.begin(19200);      //Set Baud Rate
} 
void loop(void) 
{ 
     char val = Serial.read();
     if(val!=-1)
       {
          switch(val)
           {
             case 'w'://Move Forward
                     advance (100,100);   //PWM Speed Control
                     break;
             case 's'://Move Backward
                     back_off (100,100);
                     break;
             case 'a'://Turn Left
                     turn_L (100,100);
                     break;       
             case 'd'://Turn Right
                     turn_R (100,100);
                     break;          
            }     
          delay(40); 
       }
      else stop();  
}

 

DOCUMENTS:

 

Comments  

 
#2 toll can be 2014-09-06 08:12
Hi! This is kind of off topic but I need some
guidance from an established blog. Is it very difficult to
set up your own blog? I'm not very techincal but I can figure things out pretty quick.
I'm thinking about creating my own but I'm not sure where to begin. Do you have any tips or suggestions?

Many thanks
Quote
 
 
#1 Raly Ritus Munsin 2012-09-07 00:25
i brought 2 this kind of driver and arduino uno from you store before... my problem now is:
1. can this arduino uno connect to 2 2A Dual Motor Controller?
2. how to connect?
i have make my own study but still cant get it.... :sigh:

thankx in advance :D
Quote
 

Add comment


Security code
Refresh

Login/Register

E-Mail Address:

Password:


Find us on Facebook



Sponsored Links