itty
Posts: 4
Joined: Wed Feb 25, 2015 8:38 am

l298n runs motor automatically when connected

Sun Mar 08, 2015 10:00 pm

Hi there guys,

Ive been having having some problems with my pi, i connected 2 motors using the l298n board and im using 4 1.5 volts duracell batteries. The link shows the connections.
http://explainingcomputers.com/images/p ... wiring.jpg

For some reason when i connect to pin 7 and start the pi(without even running any script) one of the motors automatically starts running.
Any help would be appreciated

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

Re: l298n runs motor automatically when connected

Sun Mar 08, 2015 10:25 pm

Try using pin 19 (gpio 10) instead of pin 7 (gpio 4).

itty
Posts: 4
Joined: Wed Feb 25, 2015 8:38 am

Re: l298n runs motor automatically when connected

Sun Mar 08, 2015 10:40 pm

Will try tomorrow morning, thanks for reply.

Return to “Automation, sensing and robotics”