588,193 active members*
7,887 visitors online*
Register for free
Login
Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2008
    Posts
    4

    low cost USB/Serial controller for mill

    Here goes nothing:

    Background:
    I run a (very) small electronics company and we use several mills running TurboCNC. It works great but we need to run faster, better (closed loop servo) and not rely upon ancient operating systems and PC's. I love the TurboCNC interface simplicity. I've tried MACH but really had enough of printer interfaces. I like the look of the Gecko controller but still feel this isn't quite what I want.

    Low Cost Controller:
    So I've designed a small controller board and PC based program (written in Liberty Basic so works with Vista/XP (and Macs in future)). The controller has a DSP and FPGA on-board and communicates via a low-speed optocoupled serial port (RS232) - the prototypes actually have a USB port on them with a built in USB-RS232 converter IC.

    The controller currently drives 3 sets of step/dir ports (although we will add at least one more) and has a bunch of I/O for control, analog output voltages for speed control, encoder pulse counters, jogwheel interfaces, estops, limit & datum switches, etc...

    There is no (practical) limit on the max/min pulse rate we can generate and the controller handles nearly everything without PC intervention (the PC sends very simple commands to the controller - not far short of pure G-code).

    The aim is to be able to run the mill very robustly (all safety, tool & machine paramaters settings, etc... are stored on the controller boards; so can use any PC in the office. Just dowload the code from the website, take a single USB lead from the PC to the controller board and mill away - our test record is under 5 mins from download to milling (on a pre-configured controller board).

    Proposal:
    If we can get enough initial interest ([email protected]) then we will 'productionize' our code and hardware and make it available (late Dec).

    At present the thought is that we sell the controller board fully built-up/tested and give the PC software away free (or at minimal charge), this allows us to add more functions and sortout any software/firmware bugs. Estimate the controller board to be $150-$200 and available worldwide.

  2. #2
    Join Date
    Feb 2007
    Posts
    2
    What type of control are you using?

  3. #3
    Join Date
    Oct 2008
    Posts
    4
    control?

    we have written our own front-end (similar in look and feel to TurboCNC), this then talks to the 'controller' board where all the motion control is processed and this drives sets of step/dir lines.

    the controller board has full control of the mill at all times - so things like hitting 'halt' or estop are handled in a very controlled fashion (no danger of losing position), all the PC ends up doing is parsing the G-code (for errors), packing it up and sending it down the serial bus (USB/RS232), at 115kbaud we get something like 500 lines of code a second into the control board, this can be buffered and we can increase the speed of the bus much further - so 3D mould making is a possibility - G02/G03 are processed on the control board so curves are accurately reproduced.

  4. #4
    Join Date
    Feb 2007
    Posts
    2
    Sorry, my question was directed at what type of motion control approach you are using (i.e. PID, State Feedback etc.)

    Thanks

  5. #5
    Join Date
    Oct 2008
    Posts
    4
    The trajectory generators (in the DSP) generate desired position per iteration (with acceleration parameters used). This then feeds separate code and the FPGA with a proprietary method of generating fine-grain pulse trains. My initial prototype used (PID) servo routines & servos amps (I built these into the prototype, which I prefer) - but the current mills use step/dir Gecko drives. It is actually easier to build in 4 PID controlled DC servo amplifiers into the control board than adding the FPGA.

  6. #6
    Join Date
    Oct 2008
    Posts
    4
    Clearly the servo version (proto's) used a 2 ch. opto encoder (we didn't bother implementing the 3rd channel). The stepper version can run without an encoder or with our own absolute magnetic encoder or a stock 2ch. By using the abs.mag encoder we don't need to datum the machine, so long as each stepper hasn't moved more than 180degrees whilst switched off we know exactly where the machine is.

  7. #7
    Join Date
    Feb 2006
    Posts
    71
    I have been looking at the various controlers I might well be interested in yours. Any more details?

Similar Threads

  1. Low cost 6 axis USB motion controller
    By Xerxes in forum CNC Machine Related Electronics
    Replies: 70
    Last Post: 07-18-2012, 04:26 PM
  2. New low cost CNC Controller, USB, Windows XP based!
    By bert_eding in forum News Announcements
    Replies: 13
    Last Post: 10-25-2009, 09:14 PM
  3. serial port controller
    By eloid in forum Servo Motors / Drives
    Replies: 1
    Last Post: 03-10-2007, 04:49 AM
  4. I need a low cost upgrade controller for my CNC Router
    By ReefkeeperCNC in forum CNC (Mill / Lathe) Control Software (NC)
    Replies: 10
    Last Post: 09-09-2006, 02:01 AM

Posting Permissions

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