603,365 active members*
3,775 visitors online*
Register for free
Login
Results 1 to 20 of 113

Hybrid View

  1. #1
    Join Date
    Jun 2007
    Posts
    20
    Quote Originally Posted by BillTodd View Post
    I see. Can mach3 do that, if it has encoder/count inputs?

    What sort of input does Mach3 need?
    I`m not really sure.I was thinking along the lines of another pic or such countin pulses and comparing the result with an encoder (sort of like a virtual closed loop system) and if it misses steps using one of the inputs to signal a positioning error

    Marz

  2. #2
    Join Date
    Mar 2007
    Posts
    534
    I'm brewing up much the same but with a home made computer board reading scales and stepping motors.

    The step timer interrupt compares "where I am" with "where I want to be" and steps accordingly.

    The "where I am" can change at any moment should a report be received from any of the 3 scale interrupts. (I read them with hardware because any lag will only serve to confuse it).

    At the end of an x,y,z stepping sequence it works out the error on all 3 axes. Should any be outside tolerance it doesn't update the "where I want to be" to a new position. This means I get remedial steps to put it back on course.

    Questions are, wil it do more remedial steps than moving steps, and, how tight can I put the tolerance

    I only have to mount the scales and I can find out

  3. #3
    Join Date
    Aug 2008
    Posts
    573
    Quote Originally Posted by Robin Hewitt View Post
    I'm brewing up much the same but with a home made computer board reading scales and stepping motors.

    The step timer interrupt compares "where I am" with "where I want to be" and steps accordingly.

    The "where I am" can change at any moment should a report be received from any of the 3 scale interrupts. (I read them with hardware because any lag will only serve to confuse it).

    At the end of an x,y,z stepping sequence it works out the error on all 3 axes. Should any be outside tolerance it doesn't update the "where I want to be" to a new position. This means I get remedial steps to put it back on course.

    Questions are, wil it do more remedial steps than moving steps, and, how tight can I put the tolerance

    I only have to mount the scales and I can find out
    Interesting idea Although,the missed steps may not be able to be corrected until the cause has been removed.

    i.e. if it drops steps because of excess speed v load, will there be time to correct them before the next motion without increasing the frequency of the pulses thus exacerbating the speed v load problem?

    (Well worth trying though )

  4. #4
    Join Date
    Mar 2007
    Posts
    534
    The fast traverse is a completely separate interrupt handler, precise placement only happens at speeds where the motors can handle an instantaneous reversal.

    There is more work to do. When it encounters back lash it will tend to trail by the tolerance and I will need extra remedial steps. OTOH I'm not going to try to fix anything until it has had a chance to tell me what needs fixing.

    I'm writing the code and everything runs in SRAM. I can recompile and upload all new in a matter of seconds. I am in control

  5. #5
    Join Date
    Jun 2007
    Posts
    20
    Hi Robin. What a brilliant idea. When you get it right you will have solved one of the major issues with using steppers. i would be interested in the outcome.I had another thought that if i had the knowhow would be worth pursuing. What if you had a PIC counting pulses sent my Mach 3 and then the PIC moved the stepper motor using the encoder to go to the correct position? Its probably complicated, and you would get some lag,but i would gladly put up with lag for accuracy.

  6. #6
    Join Date
    Aug 2008
    Posts
    573
    What if you had a PIC counting pulses sent my Mach 3 and then the PIC moved the stepper motor using the encoder to go to the correct position?
    Hmmm , That wouldn't be too difficult.

    I use a PIC (16F84 and an L6219) to drive the Z motor on my engraver, it'll happily keep up with the step inputs from the controller using interrupts. It even has has a couple of unused timer/counters that could be used to track an encoder. Might be worth a look

    [I still wonder, if you're going to add all this complexity you might be better of using proper servo-motors]

  7. #7
    Join Date
    Jun 2007
    Posts
    20

    Smile

    Quote Originally Posted by BillTodd View Post
    Hmmm , That wouldn't be too difficult.


    [I still wonder, if you're going to add all this complexity you might be better of using proper servo-motors]
    Yeah. you could be right, but steppers and encoders on ebay are a lot cheaper than servos, and if a cheap PIC could be made to act as a Pseudo closed loop it would be just as good for a lot less money for the DIYers

  8. #8
    Join Date
    Jul 2011
    Posts
    0
    tried the circuit with verniers too
    but no data

  9. #9
    Join Date
    Aug 2008
    Posts
    573
    Quote Originally Posted by aadityadengle View Post
    tried the circuit with verniers too
    but no data
    :bs:
    :bs: like that's going to get you an answer !
    Bill

  10. #10
    Join Date
    Jan 2014
    Posts
    3

    DRO Design discrepancies.

    Reposted to correct forum - apologies.

    Hi,

    I was looking with great interest at Bill Todd's DRO designs, and I really want to build this one - I am quite at home with electronic assembly and PCB manufacture - but although an impressive amount of work has obviously gone into the design, the information downloaded appears to be fragmented and inconsistent, therefore I am having problems verifying schematic to PCB layout.

    Having downloaded the Zip package for Version 1.2.05, I found the PCB layout PDF file, but there was no schematic. I downloaded the schematic separately from the forum, but one does not verify with the other. The PCB layout has numbered components and nets given, the schematic has no numbering - just question marks. I have tried tracing by eye, but there are several discrepancies. eg pin 7 of the DB9 goes nowhere on the schematic, but is connected on the PCB; there are 2 diode cathodes to 3.5V on the PCB, but only 1 on the schematic; there are 2 resistors to DB9 pin 4 on the PCB but only 1 shown on the schematic. I gave up at this point as clearly the schematic that I have is not the one that the PCB was netlisted and routed from.

    Is there a schematic and PCB layout that are a matching set somewhere, or alternatively a definitive schematic somewhere that I can confidently use to netlist and route my own PCB from?

    I really don't want to spoil a good project or waste time and money by going off half cock, so I trust some kind soul will be able to point me in the right direction.

    Thanks.

Similar Threads

  1. Is water based
    By cncadmin in forum Safety Zone
    Replies: 45
    Last Post: 10-19-2022, 05:10 PM
  2. Need help with CNC UK based
    By ciscoe in forum European Club House
    Replies: 1
    Last Post: 07-21-2008, 12:03 PM
  3. Pic based Oscilloscope
    By thegimpster in forum PIC Programing / Design
    Replies: 0
    Last Post: 01-25-2008, 07:48 PM
  4. PC Based Controls
    By zimbricd in forum News Announcements
    Replies: 0
    Last Post: 12-12-2007, 09:38 PM
  5. dos based cnc software
    By flyingmike in forum Computers / Desktops / Networking
    Replies: 14
    Last Post: 11-25-2005, 08:29 PM

Posting Permissions

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