The attachment might help.
The attachment might help.
Dave
Always wear safety glasses while programming.
Thanks Dave,
I read that one yesterday and, while I'm not opposed to building with discrete components, the cost is somewhat higher. Also, more components to mount and solder into the pcb.
The L298HN is an IC that seems to be popular and I have found some circuitry and code to control direction but just need to add the PWM speed control.
Anyway, the code in Scott Edwards article seemed pretty simple so I wasn't sure if it offered a good smooth speed control. Guess I could breadboard it and see...
Regards,
Mitch
After re-reading some of my search results, I believe that I can modify the code that I found from HankMcSpank...
http://www.picbasic.co.uk/forum/show...highlight=HPWM
This will allow me to read a POT and convert that into a PWM output. I should be able to do this with a 12F683 as I only need one channel. If so, then I now need to decide on a IC or discrete components. I am favoring an IC, forgot the part number without re-searching, that only requires one pin for directional control.
Still would appreciate any input.
Mitch
You could use one BD6220 3 to 36 volts @ 2 Amps with PWM capability.
See the attached Pdf.
Cheers
Al.
Last edited by aratti; - 11th November 2010 at 15:19.
All progress began with an idea
I was referring to the BD62xx series. BD6232 is 36 Volts Max 2 Amps. But you have a choice from 0.5 to 2 Amps
Al.
All progress began with an idea
If I understand the data sheet correctly, the BD622x and BD623x series have a minimum frequency requirement of 20kHz. That would rule out using the PIC internal oscillator, would it not? It also appears that the IC's require 2 channels of PWM for control. If that is true, then the PIC12F683 would not qualify, I suppose.
The LMD18200 would be great, and it only requires 1 PWM input, except that the cost is more than I want to put into this project - ~$12.00. The BD6232 is less than half the cost of the LMD18200 at ~$5.00.
So far, I'm leaning towards the popular L298N. It cost about $2.50 and requires just the 1 PWM input and no limitations on the frequency so I could use the 12F683 with internal osc.
Of course, I may be missing some things so please let me know if that is true.
Mitch
Bookmarks