Hi guys, im new in the field and for my project i need to control two 12v dc motors by my adruino uno.
i need to make the motors spin individually in both directions and stop them. can anyone help me?
Thank you.
Start off by reading this:-
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html
and
http://www.thebox.myzen.co.uk/Workshop/Motors_2.html
Thank you , because i have to use two power sources one for arduino and one for the motors is it possible to use relays, and how many relays will do the job?
Yes the fact you are using two power sources is not an issue, you do however need to connect the grounds together.
You need one relay for on / off and an other for direction, that is for each motor.
You can also use a circuit called a H-bridge to do the same thing like an SN754410, this chip will let you control two motors.
Thank you for the details, I went through some studies about connecting the relays to the arduino and found that i have to use transistors and diodes to make safe the arduino, but i couldn’t find schematic or a circuit diagram for connecting the relays to change the polarity, could you tell a way to how to connect the relays to the motors to change their polarity? and what relays i should use?
but i couldn’t find schematic or a circuit diagram for connecting the relays to change the polarity
That was in the links I poster with my first reply.
Thank you soo much I have started my work with your help, thanks again.