I've also considered these "poor man DAC's". They should be every bit accurate enough for the application. I just got a sample tube of 18200's, but they're only a buck or so cheaper than the 18245's. I'm thinking discrete is the way to go.
A lot of chopping driver chips don't directly support microstepping, however it can be done by varying the VREF input.
I made a simple circuit using a R2R DAC and a voltage follower between the PIC outputs and the VREF input of TEA3718 chips (used these TEA's because I had them here), it's working fine.
Below is the basic diagram.
With this it's possible to use recuperated or cheaper chips than those quite expensive LMD's.
If there's an interest I can make up the complete schematic and post it in the open forum.
There are no modifications needed to the PICSTEP firmware.
Alan, do you have objections or comments?
Luc.
I've also considered these "poor man DAC's". They should be every bit accurate enough for the application. I just got a sample tube of 18200's, but they're only a buck or so cheaper than the 18245's. I'm thinking discrete is the way to go.
Steve
DO SOMETHING, EVEN IF IT'S WRONG!
Wow...great. I have also a lot of TEA3718 recuperated from broken old printers. Could you, please, upload the full schematics?
Thank you.
Zoltan
These DAC's can be very accurate, the R2R exists in precision resistor arrays like these at up to 0.01%:Originally Posted by Madclicker
http://www.semiconwell.com/r_net/swr2r04a.htm
For CNC microstepping is in most cases not used to increase resolution but to smooth out the motor, so tolerance isn't a big issue: just have a look at the step tolerance of a typical stepper.....
I use industry standard 1% resistors from the same batch and use 2 in series to make up the 2R values, this should be more than good enough.
My next project could be a high current driver using mosfet's and the L6506 (or similar) for the chopping part of it.
Edit: I misinterpreted your reply, you were saying that this is accurate enough, sorry. I will leave this for those who have doubts.
Have you done the code for your poor man's dac?
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
No, it uses the Picstep firmware as is (see message #1) and the output after the opamp looks just fine on the scope.Originally Posted by pminmo
Alan did a good job.
This is also what an R2R DAC does but VDAC REF are the 5V outputs from the PIC. This concept will never output exactly 5V, it will be slightly less but very close and this doesn't really matter for CNC applications.Originally Posted by LMD datasheet
Hi,
Sorry for repeating myself, but are you going to upload the full schematics as you said: "If there's an interest I can make up the complete schematic and post it in the open forum."
I am interested to try your solution.
Thank you.
Zoltan
Zoltan,
no problem, just needed a bit of time to complete the schematics.
So here we go:
http://www.cnczone.com/forums/showth...567#post181567
Feedback appreciated.
Regards,
Luc.
I never analyzed the LMD DAC, I tought it was like allegro's 3 bit non linear dacs, I see that isn't true now.
I'm missing something though, I did some calculations and the 4 bit dac of the lmd and it looks like it has as much as 5% error when quarterstepping? How are people doing 1/16th micro stepping with it?
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
Phil,
like you I never looked into the details of the DAC's usage nor their "error" or the respective results.
I simply use the PICSTEP firmware and it gives wonderfull results.
5 % of one quarterstep (= 0.25/step) is only 0.0125/step, this doesn't look really important for our applications.
How they do 1/16th: just to smooth the motor's movement, certainly not to perfectly increase the resolution to exactly 1/16th with 1% precision.
Must say that I didn't try 1/16 yet, the new firmware wasn't available at that time.
A stepper motor has a bigger tolerance problem per step than this.
If my memory serves me right, Mariss, Gerry and others have pointed this out several times, microstepping doesn't increase resolution.
Regards,
Luc.
.
Yes I understand the increased resolution/accuracy issue, just wanted to point it out if anyone was thinking along those lines.
Phil, Still too many interests, too many projects, and not enough time!!!!!!!!
Vist my websites - http://pminmo.com & http://millpcbs.com
None at all. Nice work!Originally Posted by lucas
Alan.