Ks0063 keyestudio L298N Motor Driver Board Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
Line 23: Line 23:
<br>
<br>
==Connection Diagram ==
==Connection Diagram ==
<br>[[File:ks0063-2.png|800px|frameless|thumb]]<br>
<br>[[File:0063.png|800px|frameless|thumb]]<br>


<br>
<br>

Revision as of 09:13, 5 June 2019


keyestudio L298N Motor Driver Module


thumb


Introduction

Using L298N made by ST Company as the control chip, the module has characteristics of 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 reliability.


Specification

  • Working mode: H bridge (double lines)
  • Control chip: L298N (ST)
  • Logical voltage: 5V
  • Driving voltage: 5V-35V
  • Logical current: 0mA-36mA
  • Driving current: 2A (MAX single bridge)
  • Storage temperature: (-20 °C)-(+135 °C)
  • Maximum power: 25W


Connection Diagram


thumb


Sample Code

int IN1=5;
int IN2=6;
int IN3=7;
int IN4=8;
int ENA=9;
int ENB=10;
void setup()
{
 for (int i = 5; i <11; i ++) 
   {
     pinMode(i, OUTPUT);   
   }
}
void loop()
{
   // rotate CW
  digitalWrite(IN1,LOW);
  digitalWrite(IN2,HIGH);
  analogWrite(ENA,200); 
  digitalWrite(IN3,LOW);
  digitalWrite(IN4,HIGH); 
  analogWrite(ENB,200); 
  delay(1000);
  // pause for 1S
  analogWrite(ENA,0); 
  analogWrite(ENB,0); 
  delay(1000); 
  // rotate CCW
  digitalWrite(IN1,HIGH);
  digitalWrite(IN2,LOW);
 
  analogWrite(ENA,100); 
  digitalWrite(IN3,HIGH);
  digitalWrite(IN4,LOW); 
  analogWrite(ENB,100); 
  delay(1000);
  // pause for 1S
  analogWrite(ENA,0); 
  analogWrite(ENB,0); 
  delay(1000); 
}


Resources

  • Video

http://video.keyestudio.com/ks0063/

  • PDF and Code

https://drive.google.com/open?id=1FuIphGyA1rQzajgVeky4A-i_oxrR0JnU



Buy from