alpeace89
Posts: 49
Joined: Wed Dec 04, 2013 12:34 am

Controlling 2 DC motors using the L293D chip

Sat Sep 20, 2014 11:01 am

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

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Controlling 2 DC motors using the L293D chip

Sat Sep 20, 2014 11:12 am

The chip could be faulty.

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

alpeace89
Posts: 49
Joined: Wed Dec 04, 2013 12:34 am

Re: Controlling 2 DC motors using the L293D chip

Sun Sep 21, 2014 9:52 am

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

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Controlling 2 DC motors using the L293D chip

Sun Sep 21, 2014 12:44 pm

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

Return to “Automation, sensing and robotics”