Problems with L293D + Arduino

I wired up a L293D to my arduino, planning to run 2 motors with it, and just for testing I runned the blinkie program on it changing the LEDpin to the to the digital pin that goes to the l293d but only half of the pin works, like it turns in only one direction. Is it normal ?

 

It's 4 in the morning so I did not do a lot of trouble shooting, just changed the pins that were on PWM to digital, it didn't changed anything.

have you tried this ?
have you tried this ?

Yeah…

I tried the first example, but i plugged a second motor and pin to the arduino (on the other side of the chip)

 

I’ll try your code to see if that works.

argh…

I think i may have fried the chip…

When i soldered the chip to the protoboard, it heated a lot but i didn’t worry thinking it was made to whitstand this temperature.

I had just plugged LEDs to the output pins, and now i’ve soldered my motors and they don’t run…

**sorry to hear that… **

sorry to hear that… :frowning: you should use IC Sockets.

that’s what being lazy does…

I have a 16 pin IC socket somewhere, but i was to lazy to search it…

And the chip costed me like 15 bucks because of the shipping.

have you double checked

have you double checked everything?

are you sure all the connections are ok?

I don’t know…

I checked my protoboard, all the traces are well defined and I cutted with a hooby knife anything that coudl do a short, everything seems ok.

 

I’ll check if everything is plugged in it’s right place.

are you using leds instead

are you using leds instead of motors??? because that is the problem right there… leds can only go on and off. That will f*** up your results a lot. Try using an actual motor, sorry if i am misunderstanding something.

I wasn’t using standard LEDs,

I’m using the kind of led’s that has 2 colors (I don’t know how they’re called), so when the direction changes so does the color.

Since that way didn’t work I’ve hooked up the motors, and it doesn’t work either…

I have my afternoon off

I have my afternoon off tommorow, I’m gonna buy the new chip and a socket for it.

 

I’ve found a shop that sells the chip, so I won’t have to pay like 10 bucks of shipping for one IC !

 

I’ll send you news when the new circuit is done, hopefully tommorow.

YAY IT WORKS !!!

Omg, I managed to get the circuit working, the motors turning, thank you everybody!

I used a L293NE, it’s the same thing execpt you need a couple of diodes, it works on the breadboard it’s not the final thing but I’m so happy!

It works! It works! It works!

And again thanks to anybody who helped me with this.

good!! :smiley:

good!! :smiley:

Am I doomed ?

I mounted everything on a protoboard now, no more breaboard, I uploaded the test code you gave me to my arduino, and there’s only one motor spining, I checked the circuit everything looks fine, what’s wrong?

Is it my arduino that is screwed up?

Or is it maybe the circuit that is bad ?

 

(btw, It was doing the same thing on the breadboard, I just thought that it was the code)

I guess it can be something

I guess it can be something like:

- your power source isn´t enough to drive 2 motors

- some bad connection

- code

 

can you post a picture of your setup?

It’s not the power source.

First I used a 9v 300ma power supply, I tought it was that, then I used a 12volts 1.2 amp power supply it didn’t change anything. I’ll post you some pictures later.

I don’t think it’s the code since I use the test code you sent me, but I may be wrong…

that lead us to some bad
that lead us to some bad connection, or maybe a defective motor, have you changed the motors and checked if both are ok?

both motors are OK

I’ve checked both of them with a 3 volt battery pack, I also reversed the pole just to be sure, everything’s ok with those motors.

Pictures coming soon…

here are the pictures !

Clean
I like how your motor controller is clean :)!