Using Picstep's PIC to microstep other driver chips.

Page 1 of 2 12 LastLast
Results 1 to 12 of 24

Thread: Using Picstep's PIC to microstep other driver chips.

  1. #1
    Member
    Join Date
    Jan 2005
    Location
    Belgium
    Posts
    364
    Downloads
    0
    Uploads
    0

    Default Using Picstep's PIC to microstep other driver chips.

    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.

    Similar Threads:
    Attached Thumbnails Attached Thumbnails Using Picstep's PIC to microstep other driver chips.-step_r2r-pdf  


  2. #2
    Registered
    Join Date
    Jul 2005
    Location
    us
    Posts
    668
    Downloads
    0
    Uploads
    0

    Default

    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!


  3. #3
    Registered
    Join Date
    Mar 2005
    Location
    Romania
    Posts
    339
    Downloads
    3
    Uploads
    0

    Default

    Wow...great. I have also a lot of TEA3718 recuperated from broken old printers. Could you, please, upload the full schematics?

    Thank you.

    Zoltan



  4. #4
    Member
    Join Date
    Jan 2005
    Location
    Belgium
    Posts
    364
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Madclicker
    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.
    These DAC's can be very accurate, the R2R exists in precision resistor arrays like these at up to 0.01%:
    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.



  5. #5
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3312
    Downloads
    0
    Uploads
    0

    Default

    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


  6. #6
    Member
    Join Date
    Jan 2005
    Location
    Belgium
    Posts
    364
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by pminmo
    Have you done the code for your poor man's dac?
    No, it uses the Picstep firmware as is (see message #1) and the output after the opamp looks just fine on the scope.
    Alan did a good job.

    Quote Originally Posted by LMD datasheet
    The DAC sets the threshold voltage for chopping at VDAC REF x D/16, where D is the decimal equivalent (0–15) of the binary number applied at M4 through M1.
    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.



  7. #7
    Registered
    Join Date
    Mar 2005
    Location
    Romania
    Posts
    339
    Downloads
    3
    Uploads
    0

    Default

    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



  8. #8
    Member
    Join Date
    Jan 2005
    Location
    Belgium
    Posts
    364
    Downloads
    0
    Uploads
    0

    Default

    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.



  9. #9
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3312
    Downloads
    0
    Uploads
    0

    Default

    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


  10. #10
    Member
    Join Date
    Jan 2005
    Location
    Belgium
    Posts
    364
    Downloads
    0
    Uploads
    0

    Default

    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.

    .



  11. #11
    Registered pminmo's Avatar
    Join Date
    Jun 2003
    Location
    St. Peters, Mo USA
    Posts
    3312
    Downloads
    0
    Uploads
    0

    Default

    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


  12. #12
    Registered Garfield2's Avatar
    Join Date
    Sep 2004
    Location
    Australia
    Posts
    223
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by lucas
    There are no modifications needed to the PICSTEP firmware.
    Alan, do you have objections or comments?
    None at all. Nice work!

    Alan.



Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Using Picstep's PIC to microstep other driver chips.

Using Picstep's PIC to microstep other driver chips.

Using Picstep's PIC to microstep other driver chips.