Motor Circuit not working

Hey all,

I tried setting up the circuit below on tinkercad, but unfortunately it isn't working

Could you please have a look to suggest what I'm doing wrong?

Thank you.

// C++ code
//
int enable = 5;
int dir1 = 4;
int dir2 = 3;
void setup()
{
  //pinMode(enable, OUTPUT);
  pinMode(dir1, OUTPUT);
  pinMode(dir2, OUTPUT);
}

void loop()
{
  //digitalWrite(enable, 1);
  digitalWrite(dir1, HIGH);
  digitalWrite(dir2, LOW);
  
  delay(5000);
}

You need to provide a real wiring diagram. a photo of a hand drawn is fine.

I mean on tinkercad it isnt working. The motor doesn't turn when I start the simulation

Sorry, I don't know anything about that.

Oh my goodness, the bottom half of the L293D just wasnt connected as i had assumed it was.

Ill be checking connections properly from now on

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.