Go Down

Topic: Starting and Stopping a DC Motor (Read 1 time) previous topic - next topic

holmes4

It depends on your motor in the kit that goes with the diagram the motor is a small (toy) 5v motor so you use Vcc. For smaller motors use 3.3v. For larger motors an extra battery is a good idea. +ve of the battery to the motors +v in the diagram and battery
-ve to ground.

Mark 

T0x1x

Well I got it up and running thanks to you guys! I can now control the delay from start to stop, using most of the code from the blink function. Thanks again, hopefully there won't need to be any trouble-shooting in the future!

holmes4

Now look at the "blink without delay" example and see if you can't get control of the speed of the motor. For example turn the motor on for 10 mills and off for 10 mills will get you something about 1/2 speed. Have full!

Mark

Go Up