pic program for dc motor control

Status
Not open for further replies.
Hi,

You do not say what programming language you are using, if its assembler you can use Nigels tutorial.
 
You can use either a H-Bridge or PWM or both if needed, but you need to specify the option you want to use.

Wilksey
 
You can use either a H-Bridge or PWM or both if needed, but you need to specify the option you want to use.

Wilksey

Hi Wilksey, if he uses an H bridge(hard ware) that would be for controlling direction not speed.Speed is determined by PWM or some other mechanism.PWM is in software.Even if he doesnt use H bridge he will need a transistor(or something else) since a PIC cant run a motor directly.
 
Last edited:
@Wond3rboy:

Yes, he didnt specify which he was trying to control, you can also get hardware PWM chips, it doesn't have to be generated in software.
A H-Bridge is just 4 transistors anyway, it is the best way for hobbyists to control motors (that I know of).

Wilksey
 
Hi
Yeah you can, but hes using a micro for that.H bridge IC's are much less tedious to work with than 4 transistors(the simple approach as you pointed out).

If he wants simple control an H bridge and two bits will dtherwise he can use the CCP feature for PWM.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…