Welcome Guest [Login|Register]
Currency
Shop by Category
Shopping Cart
Your shopping cart is empty.
0Items in cart:
0.0g / 0.00ozShipping Weight:
C$0.00Total:

L298 Dual Full Bridge L298N Stepper/DC Motor Driver Shield 46V/2A for Arduino

Location: /Miscellaneous

L298 Dual Full Bridge L298N Stepper/DC Motor Driver Shield 46V/2A for Arduino

Click image to zoom.

Shown images are ilustrative only. Please refer to manufacturer's website and/or available datasheet for accurate information.

QtyUnit PriceLot Price
1C$16.4700C$16.47
2C$15.0800C$30.16
5C$13.7200C$68.60
10C$12.3800C$123.80
OUT OF STOCK

Product Information
dipmicro Code DE4004
Added 2012-07-08
Manufacturer BTELEC
Stock Type New
Restockable? Yes, we can get more. ASK
Shipping Weight 30g / 1.06oz
Shipping Note Cannot ship Standard in Canada
 
Technical Summary
Packaging bulk

Schematic

Arduino L298N Shield Schematic
Click on image to zoom.

Terminal Block Pinout

Pin Function
VEX External motor voltage 0-20V. Connected only if VM switch is in VEX position.
5V Regulated 5V from VEX. Shield's regulator only allows up to 20V, if you need to use higher voltages on VEX input, set VLO switch to OFF.
GND Ground.
A+ L298N channel #1 OUT1
A- L298N channel #1 OUT2
B+ L298N channel #2 OUT3
B- L298N channel #2 OUT4

Sample Sketch

/*
 * The circuit:
 * L298N INPUT1 to digital pin 13
 * L298N INPUT2 to digital pin 12
 * L298N INPUT3 to digital pin 11
 * L298N INPUT4 to digital pin 8
 * L298N ENABLE_A to digital pin 10 (PWM)
 * L298N ENABLE_B to digital pin 9 (PWM)
 */

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

// motor B
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;
	}
}