Thread: Help! DIY 4 amp L297/6203 driver
Hybrid View
-
18-11-2009 #1
Hi tribbles,
Yep, all that would work - I was just demonstrating that what was required could be done simply.
In the past I've used PWM to modify the VRef voltage - however I've always spotted some ripple with a single stage of RC filtering (I think my PWM was at about 5khz) so always added another. Don't think it matters that much as long as the voltage is approximately right though.
Usually I didn't bother with the VR, having options in the PIC to set the current (either with links setting the most common values, or via a menu on whatever display device I'm using).
Monitoring the VRef voltage I've never found to be necessary - although my initial attempt did exactly that. I have in the past though (when building buck/boost converters to drive LED's) made self starting regulators using the PWM on the PIC and used the analogue inputs to monitor the voltage and adjust the PWM. That's a very interesting experiment in feedback loops...)
-
18-11-2009 #2Just to clear any confusion - you the 3k9 res should be removed from the +5v line and connected to a port. The voltage at the other end will never exceed 1v.
Another resistor is connected the same (19k??) one end to the junction of the VR and the 3K9 the other to a second port.
The advantages with this are:
1) The hold VREF can be easily adjusted, and measured with a volt meter
2) The PIC has voltage comparison circuits on GP0 and GP1, and this would be using them
3) Interrupts can easily be used for everything (VREF going below voltage, clock signal coming in, timeout occurring)
4) The PIC shouldn't need to be reprogrammed at all (once it's all working)
If monitoring the vref isnt necessary then the reset option would be best. I see the data sheet says the reset must be initially be set low and then set high but this is the only circuit I have seen that dose this, all the others just tie it to +5v.
The only question is what can we make GP3 do? Flashy lights, make the tea?
Usually I didn't bother with the VR, having options in the PIC to set the current (either with links setting the most common values, or via a menu on whatever display device I'm using).
Thread Information
Users Browsing this Thread
There are currently 3 users browsing this thread. (0 members and 3 guests)
Similar Threads
-
Stepper Motor Driver - cheap similar to ArcEuro 4.2A Bi-Polar Stepper Motor Driver
By craynerd in forum Motor Drivers & ControllersReplies: 1Last Post: 16-03-2014, 07:29 PM -
Dc servo driver
By Treemonkey in forum Motor Drivers & ControllersReplies: 11Last Post: 11-02-2013, 08:16 PM -
Driver suggestions
By Shinobiwan in forum Motor Drivers & ControllersReplies: 0Last Post: 04-03-2012, 03:54 PM -
Driver wiring help...
By mike in forum Motor Drivers & ControllersReplies: 12Last Post: 21-09-2010, 09:29 AM -
Driver box
By John S in forum General ElectronicsReplies: 1Last Post: 21-06-2009, 12:46 PM
Bookmarks