Page 1 of 1

Controlling 2 DC motors using the L293D chip

Posted: Sat Sep 20, 2014 11:01 am
by alpeace89
Hi,

I am following primarily this tutorial: http://computers.tutsplus.com/tutorials ... -cms-20051

but I have also looked at http://roverpi.blogspot.co.uk/2013/07/c ... -with.html and the adafruit one.

Everything works fine except the second motor will not go in reverse. I have tried swapping wire and pin numbers (as suggested in the comments) but still not luck. Any suggestions appreciated?

Regards,

Alex

Re: Controlling 2 DC motors using the L293D chip

Posted: Sat Sep 20, 2014 11:12 am
by joan
The chip could be faulty.

More likely your wiring is wrong. Photos and/or diagrams of your set-up would help.

Re: Controlling 2 DC motors using the L293D chip

Posted: Sun Sep 21, 2014 9:52 am
by alpeace89
Hi Joan,

I am wiring it exactly as in the diagram in the tutorial and have now wired it many times with the exact problem always happening.

Cheers,

Alex

Re: Controlling 2 DC motors using the L293D chip

Posted: Sun Sep 21, 2014 12:44 pm
by danjperron
I am following primarily this tutorial: http://computers.tutsplus.com/tutorials ... -cms-20051
This tutorial use GPIO pins which could be used for the SPI.

Maybe the SPI is enable.

In the file /etc/modprobe.d/raspi-blacklist.conf, the line with "blacklist spi-bcm2708" should be there and with no '#' in front.


N.B. Use LED to visually check if your GPIOs works.

Daniel