Dave said:
Hi,
The following is a PDF of a motor control kit...
http://www.electronickits.com/kit/complete/motor/ck1400.pdf
Currently it is designed to run at around 410Hz.
I assume that too will be the frequency for the PWM output but I need
5KHz from the PWM.
I looked at the formula for frequency on page 1 and it may as well be
written on Chinese as far as I can tell.
Could someone with a brain significantly superior to mine, please tell
me what components need to be changed to get this to operate at 5Kz. I
need this to operate at 5KHz, 5volts and 100mA PWM output from 0%-95%
Thanks so much.
This would be very easy to implement with a PIC, but then you would need to
learn how to program using PIC code, which is not all that simple.
Microchip has an app note for motor control using a PIC16F684, which I have
used for a step-up DC-DC boost converter. The document shows the schematic
and basic operation of a motor control kit which I got as a prize at a
Microchip seminar. You can have a look at:
http://ww1.microchip.com/downloads/en/AppNotes/00893a.pdf
Another good app note is:
http://ww1.microchip.com/downloads/en/AppNotes/00905a.pdf
These show a full bridge controller, which is more complex than a single
MOSFET with PWM, but it is really much better because it can reverse
direction under software control, and you can also use dynamic braking
which slows the motor more quickly and provides more precise control.
If you really want good control, a stepper motor is best. The PIC16F684 is
also usable for stepper motors, and I have had some experience with that
device if you want to go that route.
http://ww1.microchip.com/downloads/en/AppNotes/00906B.pdf
http://ww1.microchip.com/downloads/en/AppNotes/00907a.pdf
But stepper motors are even more complex, and I think you want something
very simple. Still, the PIC16F684 would be able to provide a nice PWM drive
to a logic level MOSFET at 5 kHz, and you could add a pot across the 5 VDC
power supply to an A/D pin, and you could have a complete PWM circuit with
only a few components. And you could change the frequency just by
reprogramming it, or add other things like pushbuttons, LEDs, and even
literally "bells and whistles".
You can use a PICkit 1 (which I have) to build your entire motor
controller. It connects by a USB cable to your computer for programming,
and it has a prototyping card that can be snapped off and used separately.
There is also a PICkit 2 that has more features. Here's more info:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010053
And for the PICkit 2:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en023805
I could give you a PC board that could be used to make a simple PWM motor
control using a PIC16F684 or the similar PIC16HV616 (which I am using). The
board is designed to produce up to 60 VDC at 750 mA as a boost converter,
but you could replace the inductors with a motor (and diode), and you could
add an external pot for speed control. But it's only about 1" x 2.5", and
mostly SMT. I got about 100 boards for about $150, and I could spare a few.
I also have about 100 boards that were designed for an LT1247 or UC1843a
PWM controller, and they might work also. It's a simple IC, and you could
get a free sample in DIP package from Linear Technology or TI. The boards
are essentially scrap, and I have some extra parts, so let me know if you
(or anyone else) is interested. Again, this was for a boost converter, and
it works, but not quite right.
Sorry for getting carried away, but these are just some other ideas that
might help you with your project, and maybe you might enjoy a more
software-oriented approach to circuit design with PICs.
Good luck,
Paul