Hi All
I am doing a small project where the objective is to control a DC small motor.
My tools : Arduino mega 2560 & L298N IC
Closest match to this project here : http://www.allaboutcircuits.com/projects/control-a-motor-with-an-arduino/
The above link rotates the motor in each direction for 3 seconds, but my requirement is that the motor should turn slowly 180 degrees clockwise then 180 degrees anti clockwise. This needs to be repeated for a 10 cycles.
Is there any way I can control the motion ? Is it advanced programming required?
In my head I was thinking to stop the motor using the time delay at 180 degrees, is this the way to go on about it?
Let me know thanks.
(bear in mind I am noob)
I am doing a small project where the objective is to control a DC small motor.
My tools : Arduino mega 2560 & L298N IC
Closest match to this project here : http://www.allaboutcircuits.com/projects/control-a-motor-with-an-arduino/
The above link rotates the motor in each direction for 3 seconds, but my requirement is that the motor should turn slowly 180 degrees clockwise then 180 degrees anti clockwise. This needs to be repeated for a 10 cycles.
Is there any way I can control the motion ? Is it advanced programming required?
In my head I was thinking to stop the motor using the time delay at 180 degrees, is this the way to go on about it?
Let me know thanks.
(bear in mind I am noob)