Go Down

Topic: L293D shield doesn't run the 12V dc motor (Read 621 times) previous topic - next topic


I'm using the L293D shield to control the dc motor,  I uploaded the code on the Arduino board but the motor doesn't run
Code: [Select]

#include <AFMotor.h>

// DC motor on M2
AF_DCMotor motor(2);

void setup() {
  Serial.begin(9600);           // set up Serial library at 9600 bps
  Serial.println("Motor party!");

  // turn on motor #2

// Test the DC motor,
void loop() {



Dec 14, 2018, 08:12 pm Last Edit: Dec 14, 2018, 08:13 pm by outsider
How much current does the motor require? Can your 12V PS supply at least that much current? Can the L293 handle that much current? Can you post a link to the motor specs and a wiring diagram?


The ancient, inefficient L298 is useful only for small, low current motors.


the R of the motor equals 1.003 ohms
and the power supply minimum value was 6V so the current value for this voltage is 5.98 A!
is it possible to run the motor with this shield?



ok, I want to control 3 DC motors so I found the Monster Moto VNH2SP30 but just 2 DC motor could be controlled by, is it anyway to use 2 of this shield with one Arduino board?


Shields are a double-edged sword: handy to have them plug in like that, but then a pain in the backside if you need two.

Have a look at Pololu's list of driver modules. They're not shields, so as long as you have enough pins to control them you can use more than one.

Go Up