Tracking
Tracking Number:

 
Facebook
 
Testimonials

Pengiriman cepat, paket rapi. HRC memang mantabs

• Ahmad

HRC response cepat,pengiriman rapi... mangstab deeh.. RECOMMENDED!

• efen

Mantab deh agan yang satu ini, komunikatif banget, jadi gak ragu ane waktu pertama order, barang pun cepat dikirim dengan packing yang aman, pertahankan ya gan :) Ane lagi cari selip2an di dompet nih mau order lagi :p

• ijial

Gan makasih,Barang ane udah nyampe..di Pontianak.....Mantab.

• Heri kal-bar.

Jangan ragu beli di sini, alasannya: 1. Tempat jual Arduino mega 1280 dan SD card stackable shield termurah se-Internet. 2. Saya pernah beli shield dan pin 5V nya patah waktu pengiriman, langsung ditukar dg yang Baru! Salam sukses HISTLA Robotic!

• Didi
Read more...
isi_testimonial
 
Shopping Cart
0 items
 
Yahoo Messenger!

 

Arduino motor drive shield-L298N

Arduino motor drive shield-L298N
Click to enlarge
Price: Rp140,000
Availability: 3
Model: M-SL298N
Average Rating: Not Rated

Arduino motor drive shield-L298N

This motor drive shield is based on L298N.It is more powerful than Arduino motor drive shield- L293D.L298N is a kind of high voltage、heavy current motor drive chip,maximum working voltage is 46V,constant working current is 2A,transient peak electric current is 3A。This chip contain high voltage heavy current bridge driver of two H-bridge,it can drive two DC motor directly。

This shield should firstly consider how to supply power to motor when linking to the circuit,if your Arduino adopt external power,and this power supply mode that can fit your motor driver,then link the motor to MA or MB:

 

then link jumper wire of VM to VIN port.

when talking about controlling principle,L298N are the same as L293D on function,they both control the direction of motor by two direction pin,and control the speed of motor by one enable pin。When to this shields,the motor MA direction pin is Arduino's 13 and 12 pin,speed pin is Arduino's 10 pin;while the motor MB direction pin is Arduino's 11 and 8 pin,speed pin is Arduino's 9 pin;the test code show as below:

// motor A
int dir1PinA = 13;
int dir2PinA = 12;
int speedPinA = 10;

// motor B
// motor A
int dir1PinB = 11;
int dir2PinB = 8;
int speedPinB = 9;

unsigned long time;
int speed;
int dir;

void setup() {
  pinMode(dir1PinA, OUTPUT);
  pinMode(dir2PinA, OUTPUT);
  pinMode(speedPinA, OUTPUT);
  pinMode(dir1PinB, OUTPUT);
  pinMode(dir2PinB, OUTPUT);
  pinMode(speedPinB, OUTPUT);

  time = millis();
  speed = 0;
  dir = 1;
}

void loop() {
  analogWrite(speedPinA, speed);
  analogWrite(speedPinB, 255 - speed);
  // set direction
  if (1 == dir) {
    digitalWrite(dir1PinA, LOW);
    digitalWrite(dir2PinA, HIGH);
    digitalWrite(dir1PinB, HIGH);
    digitalWrite(dir2PinB, LOW);
  } else {
    digitalWrite(dir1PinA, HIGH);
    digitalWrite(dir2PinA, LOW);
    digitalWrite(dir1PinB, LOW);
    digitalWrite(dir2PinB, HIGH);
  }
  if (millis() - time > 5000)  {
    time = millis();
    speed += 20;
    if (speed > 255) {
      speed = 0;
    }
    if (1 == dir) {
      dir = 0;
    } else {
      dir =1;
    }
  }
}

Write Review
Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad            Good

Enter the code in the box below:

There are no additional images for this product.