Thread: Help! DIY 4 amp L297/6203 driver
Im looking to build a new stepper driver for my mill project. The original board used an L297 driver and 2x L6203 H bridge output stage. I'm hoping to build something similar and have found a few circuits on the net.
I have also found some nice additions to the basic circuit like overload protection for the output chips (good idea since I fried them on the last board ) and varable voltage for VREF to increase Half step torque.
The circuit i have used i heavilly based on one I got from an old thread on cnczone but I'm unsure what the Pic chip dose (i asume it detects the clock pulse and varies the VREF accordingly)
So Question 1. can anyone help with a replacement circuit for the PIC chip as I dont want to use PIC chips for this project.?
And Question 2. Can some check over my version to make sure it works or suggest an alternative?
Thanks in advance
I'm not sure about the PIC - R23 is adjusting Vref (driven by Q2/IC5A) into it's GP4 input (which for the '675 is analogue input 3).
But it also does take the CLOCK signal that goes into IC3 (L297).
I don't think it's doing anything to Vref, so it must have the capability of driving CLOCK instead. Otherwise, there's not a lot the PIC could do - all the other IO pins are grounded. Do you have the code for the PIC? That would give more of a clue as to what it's doing.
Any particular reason why in yours you aren't using optoisolators?
D11 on yours should be a triac instead (T1 on the original, middle-bottom).
C15 on yours is the reverse polarity (+ve is going to GND) - next to T1 on the original (C27).
I see you've omitted the power supply circuit (top-right) - are you going to power it from the CNTL port (JP3)? I can't see any other method of providing +5V...
Apart from that, it looks good - but I'll have another look later on.
Edited to add: I suppose the PIC could do things with Vref - although the only things it could do are:
- Power GP4 high
- Power GP4 low
- Pulse GP4
- Leave GP4 open
It might power down the stepper controller if the clock hasn't been used for a while. GP2 is also the INT(errupt) input on the PIC. In which case, I suppose a resettable monostable could do the same job.
 must learn to type faster![/edit]
Thanks for the replies
Im not using the optos as i plan to make modular set up with a master board for the optos. Thank for spotting the mistakes, thought it was a funny looking diode :whistling:
The +5 is supplied from the input connector, Bottom left.
So is the Pic just earthing the 5v supply to the VREF making it 0v which means there is no holding current? I presume it would then revert back when a pulse is detected on the clock line?
I'd missed that connector for some odd reason
I suspect that VREF does indeed go to 0V.
Q2 on the original can pull it low based on IC5A, and the PIC can pull down pin 3 of R23 (original).
I suspect that you may be able to get away without the PIC at all - it would mean that it would be powered up continually though (so you may need to get some meatier heatsinks).
Modulating the vref would make sense as no holding current isnt much use. Is that why a Pic is used rather than a 555?
I did find another cuircuit that uses logic gates to trigger 2 separates trim pots but the control signal came from an external source or the software. would it be possible to use a 555 chip to trigger this circuit?
This would make more sense and be easier to setup
Simply dropping VREF to 0 would probably drop the output current to 0, which is probably what Q2 is being used for (I'm not familiar with the L297 itself).
If INH1, INH2 and JP1 (pin2) are high, then VREF would be 0.
If the PIC's modulating VREF, then it would allow the holding current to be varied - it was probably felt by the designer to be more configurable than other circuitry (and I would be inclined to agree - you could do some cleverness like make the holding voltage [current] drop off over time the longer you don't use it, and then stabilise at a set value for the minimum hold you need). C23 would smooth the signal.
In your latest circuit, the whole left hand side appears to be doing the work of the PIC - and that's a fairly large circuit. Are you sure you don't want to use a PIC (why not?)
Whats lacking is the actual code for the PIC, only then can we determine what its doing... should be on the net somewhere...
By craynerd in forum Motor Drivers & ControllersReplies: 1Last Post: 16-03-2014, 06:29 PM
By Treemonkey in forum Motor Drivers & ControllersReplies: 11Last Post: 11-02-2013, 07:16 PM
By Shinobiwan in forum Motor Drivers & ControllersReplies: 0Last Post: 04-03-2012, 02:54 PM
By mike in forum Motor Drivers & ControllersReplies: 12Last Post: 21-09-2010, 08:29 AM
By John S in forum General ElectronicsReplies: 1Last Post: 21-06-2009, 11:46 AM