Motor controller development for laser


Page 1 of 2 12 LastLast
Results 1 to 20 of 22

Thread: Motor controller development for laser

  1. #1
    Registered
    Join Date
    Jan 2004
    Location
    United States
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default Motor controller development for laser

    Greetings,

    I'm working on a CNC controlled laser table. I've recently completed the electronics to control the laser and motors so I thought I'd document my activities here.

    Enjoy


    Similar Threads:


  2. #2
    Registered
    Join Date
    Jan 2004
    Location
    United States
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Controller Process I/O

    Couldn't have got this together without mapping out all the components first.

    Development of the whole system required an exhaustive identification of all processes of the laser controller. I started with this diagram which outlines the major physical components that will be used for the cnc laser. The laser has a power supply, a db-25 connector which reports various states of the laser, gas lines which are controlled by solenoids, water flow and cooling systems, a servo driven CNC table, and a computer system for the central controlling unit. The servos are driven by Gecko drives, the Geckos are controlled by Jon Elson's Universal Stepper Controller (USC).

    There are an intimidating 50 or so I/O lines going into the control unit, so it was time to make another block diagram of all the internal electronic components. This picture was generated, which still leaves out items like indicator lights, power switches as well as the power supply that eventually was added to the circuit, but it was a good start. The blocks marked JAM buzzer and PWM module were eventually combined into the custom circuit that was part of the project. Digi-key part numbers of most of the connectors were included in the drawing to help with intelligent ordering. Ordering parts occurred over several iterations and while it'd be nice to put together a final BOM, one does not exist.

    The original controller and process diagrams were generated in AutoCAD (dxf formats).

    View pic...

    Attached Thumbnails Attached Thumbnails Motor controller development for laser-block_diagram_sm-jpg  
    Last edited by owhite; 06-24-2004 at 11:29 AM.


  3. #3
    Registered
    Join Date
    Jan 2004
    Location
    United States
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Custom circuit schematic

    Blessed are those that use Eagle Schematic software.

    The Gecko drives and the USC board are nice, but the laser controller also has some custom electronics that measure the states of laser itself, generate a pulse width modulated signal, and report an E-stop to the Unversal Stepper Controller. The schematic of the custom electronics was generated using Eagle schematic software. The Eagle-formatted schematic can be downloaded here. You can try loading this big picture as well.

    The laser measurement was based on circuitry specified by the laser manufacturer (see figures 4-2 and 4-4). These circuits use differential line recievers and drivers.

    The states of the laser were fed into a "Just A Minute" or JAM circuit (original schematic). The JAM circuit was originally designed for a game show situation, where multiple contestants can hit a switch, when the switch is thrown a light goes on indicating who hit the button, and the rest of the contestants are locked out. Perfect for my application, because if any of multiple states go low I want to register which system went low, lock out other inputs, and then flip the E-stop toggle of the USC board. The custom board also has a PWM circuit which is based on a 4541 programmable timer that feed into a binary counter and magnitude comparator combination.

    There's also a section on the circuit that debounces the push of a button and then toggles a D-type flip flop. This receives power from an unswitched power supply, when the user hits the pushbutton it turns on a solid state relay that powers up the remaining circuit.

    The schematic epitomizes the I/O problem posed by the laser controller. There are over 120 different lines from connectors going to limit switches, encoders, geckos and the USC board. All lines were led into one of four 30 pin female headers. This was good way to go because it reduced any soldering or other types of direct connections between components -- basically all connections between components were handled by linking between header pins using wire wrap.

    This has several advantages: 1) it is an overall reduction in soldering -- soldering is fine but its harder to disconnect -- connections are made by crimping wires onto pins and then inserted into the header 2) The "logic" of how lines are linked is managed in software as described in the next section -- this avoids mechanically looking at a header block from the geckos and deciding which wires have to be soldered to the pins leading to the encoders. 3) Overall, it reduces the spagetti of the circuit. Dont get me wrong, the spagetti is still there, but its centralized into four main headers. Readers may not want to go with this strategy, but one thing I strongly recommend is to avoid making hardwired connections between components. Be sure everything is connected by easily disconnected plug ends -- hardwired leads soldered directly between components make it really hard to pull the components out of the box when problems arise.

    View circuit...

    Attached Thumbnails Attached Thumbnails Motor controller development for laser-circuit_sm-jpg  


  4. #4
    Registered
    Join Date
    Jan 2004
    Location
    United States
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Custom circuit board

    Wire wrap is a beatiful thing.

    Eagle supports exporting the schematic as a net list and a pin list. These files were used as input to a perl program which was also given the locations of all the parts on a wire wrap board, which then listed all the wire wrap connections required to make the board. The program also creates a drawing that showing the location of the chips on the wire wrap board.

    There are significant advantages to mapping out the entire network of connections in a file. The main thing is that its faster. You arent looking at much except the names of the pins on the wirewrap board, wiring those pins together, and then checking for continuity with a audible tester. This is in contrast to a situation where you have your components on one side of the board, you're looking at those, looking at a circuit diagram, then flipping the board over, picturing the location of the IC pins in your mind that are now on the other side of the board, and then connecting things together. I've now gotten into the habit of always translating the circuit I'm working on into pin to pin connections. The other advantage I see with having a listing of wire wrap connections is if I experience problems with the circuit in the future -- imagine just having a circuit diagram and a completed wire wrap board in your hands. Debugging the circuit -- looking for breaks, testing chips -- is very time consuming. With a list of wire wrap connections you can order the list to give all the connections for one single IC, and rapidly check those connections.

    The wire wrap was performed using a slit-n-wrap tool purchased from Digi-key; a few points about this process:

    • If you havent done slit-n-wrap, dont compare it to other methods. Slit-n-wrap takes a little getting used to, but you can end up making a pretty high quality product. Frankly I thought it was fun.
    • Dont use pre-stripped wire wrap tools because they only allow you to make two connections. Slit-n-wraps let you make as many connections as you want on one wire.
    • Get an audible continuity checker. You must check for continuity -- when it works wirewrap is a very solid connection but around 10 percent of the connections will fail and have to be redone. The audible continuity checker is a lot faster.
    • Being able to rapidly unwrap wirewrap is essential. Radio shack part number 276-1570 is a cheap wire wrap tool that absolutely should not be used do wire wrap with slit-n-wrap wire, however; it is a great device for unwrapping. Digikey also sells unwrap tools but they are over-priced. Unwrapping using the radio shack tool is a matter of pushing the tool over the wirewrap post, bearing down on the wrapped wire, and turning in the opposite direction. This loosens the wire enough to then be pulled off with your fingers.
    • I purchased my wire wrap boards on ebay by searching on "AUGAT" "WIREWRAP" and or "WIRE WRAP". Augat wire wrap boards are absolutely the best. Their original cost is astronomical but fortunately many have been appearing on ebay for garage-sale prices.


    My board had over 400 connection points and I would definitely use wire-wrap if I had do it again. On the other hand, now that I debugged my circuit I could just have a board shop make a PCB for around $100. :-) The Eagle website has links to places that make PCBs.

    View board...

    Attached Thumbnails Attached Thumbnails Motor controller development for laser-108_0814sm-jpg  
    Last edited by owhite; 06-24-2004 at 12:23 PM.


  5. #5
    Registered
    Join Date
    Jan 2004
    Location
    United States
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Component layout

    Thinking outside of the box included thinking how to work outside of the box.

    Previous motor controllers that I've made have had one serious flaw -- all the components were mounted directly into their enclosure. This made circuit repair, as well as installation and removal of all components very inconvenient. For this controller, I started by mounting all the components on a plywood board. The board has rubber feet and makes it much easier to service all the parts on my bench. The board sits inside a recycled computer case, which also has a hole on the side for a fan. The fan points directly over the gecko motor drivers.

    This laser cut connector plate was made by first designing the plate using dimensions of connectors found in documentation obtained from digikey.

    The resulting DXF file was sent to Laser Arts who produced the plate by laser cutting 1/8 inch thick plywood. Ironic that I am out-sourcing to other laser shops to do something I hope to eventually do in my own basement. The wires leading to the connector plate form something that I refer to as the neural network, an extensive collection of wires and connectors that hook to all the internal components. Once the neural net is connected to the internal components the plate faces outside of the enclosure, and is slightly recessed to allow all the cabling connectors to be protected from getting banged around.

    Assembled system...

    Attached Thumbnails Attached Thumbnails Motor controller development for laser-108_0810sm-jpg  
    Last edited by owhite; 06-24-2004 at 12:24 PM.


  6. #6
    Registered
    Join Date
    Jan 2004
    Location
    United States
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Okay gang, that's what I have so far. What remains is a lot more testing. The issue will be getting the USC to interact faithfully with the parallel port, which means plunging into the internals of a software system known as EMC. Wish me luck.



    Owen



  7. #7
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    234
    Downloads
    0
    Uploads
    0

    Default

    owhite,
    You "click for larger image" is smaller than the ones in the post.

    Marv



  8. #8
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    234
    Downloads
    0
    Uploads
    0

    Default

    owhite,
    The "View Pic" works fine though.
    Thanks,
    Marv



  9. #9
    Registered cncadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6855
    Downloads
    3
    Uploads
    4

    Default

    Nice layout, what are you using for a laser? How many watts will it be?

    Thank You,
    Paul G

    Check out-
    [URL="http://www.signs101.com"]www.signs101.com[/URL]


  10. #10
    Gold Member
    Join Date
    Mar 2003
    Location
    United States
    Posts
    234
    Downloads
    0
    Uploads
    0

    Default

    Very Impressive. Nice work.

    Marv



  11. #11
    Registered
    Join Date
    Jan 2004
    Location
    United States
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Originally posted by CNCadmin
    Nice layout, what are you using for a laser? How many watts will it be?
    The laser is 100 watts. Its a coherent G100 and its beam quality is sufficient to cut 16ga sheet metal.

    Owen



  12. #12


  13. #13
    Registered cncadmin's Avatar
    Join Date
    Mar 2003
    Location
    United States
    Posts
    6855
    Downloads
    3
    Uploads
    4

    Default

    Can you upload your pics in the gallery for us as well?

    Thank You,
    Paul G

    Check out-
    [URL="http://www.signs101.com"]www.signs101.com[/URL]


  14. #14
    Gold Member Bloy2004's Avatar
    Join Date
    Oct 2003
    Location
    Sturgeon Bay, WI
    Posts
    927
    Downloads
    0
    Uploads
    0

    Default

    fantastic!

    ....where did you find/purchase the laser unit from?



  15. #15
    Registered
    Join Date
    Jan 2004
    Location
    United States
    Posts
    231
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by Bloy2004
    fantastic!

    ....where did you find/purchase the laser unit from?
    on ebay. I waited about 3 years to find one of that quality.

    owen



  16. #16
    Registered happytriger2000's Avatar
    Join Date
    Nov 2004
    Location
    currently in UK
    Posts
    139
    Downloads
    0
    Uploads
    0

    Default

    Owhite

    WOW.....do you have any video clips of the laser machine in operation?
    Freeman



  17. #17
    Registered
    Join Date
    Aug 2006
    Location
    USA
    Posts
    33
    Downloads
    0
    Uploads
    0

    Default Simplest hardware controller for CO2 laser and step/dir controls for motors

    I am going to show you how easy it can be to control a laser machine and how easy it is for you to build electronics.

    You need:
    1. PC/ windows XP or 2000 with 1 GB memory if raster operation desired or 512 MB RAM, if vector only.
    2. PC needs one parallel port and one USB port
    3. Your XY table, optics, laser power source, and(IMPORTANT) laser power supply that is capable of working with PWM input for laser power control.
    4. If you are going to use step motors, you may use gecko or any appropriate step motor drivers for your step motors.
    5. Cylindrical attachment, if laser work is desired on cylindrical surface.
    6. Either build or buy a simple breakout board ($10 to $50)
    7. You will build one simple cable from the printer port to your breakout board in your laser machine.
    8. There is no need for building any front panel on your laser machine. You may want power on/off switch as well as a red or green indicator for power ON.

    You can use any of the following popular applications to design your jobs:
    a. AutoCAD version 14 and up
    b. Corel Draw version 9 and up
    c. DolphinCAD for LinkMotion
    d. AcceliCAD for LinkMotion
    e. Rhino 4.0
    f. Illustrator
    g. FlexiExpert
    h. SignLab/EngraveLab
    j. Gerber's ArtPath

    Applications for raster work only:
    a. Microsoft Word
    b. BarTender from SeagullScientific
    c. PhotoShop
    d. Corel Paint
    e. PhotoGrav to convert from gray scale to single bit raster file

    LinkMotion 32 bit printer type machine driver comes with a Control Pad and it uses numeric keypad of the standard PC keyboard to control the laser machine (jogging, Home command, laser and red indicator testing, water cooling, and positive air pressure controls

    Now, prepare a job in one of the above application software, select LinkMotion as the output driver in Windows, click print and send the job to your laser machine.

    You will preset feedrate, power level, PWM frequency, home, and emergency switches in LinkMotion. The power level will generate PWM pulses for the specified feedrate. If the machine is running slower because of a sharp curve or a corner, the power level is modulated and kept is as a function of speed. You can calibrate your laser power output in every 5 percent increment and declare. Also, you can recalibrate every so often to maintain proper power level output.

    You can control and vary power level as a function of ten different colors in the color pallete in LinkMotion applet.

    About the only thing you need to depend on your application is for sorting of a job for output sequencing.

    To summarize:
    1. Very little new things to learn
    2. Vector and raster operations
    3. Continuous power control for cutting
    4. High speed raster operation
    5. PWM frequency control
    6. Color control
    7. Increase or decrease the XY speed on the fly
    8. Tickle pulse to keep the CO2 in the ready state to minimize the firing time
    9. Built-in cylindrical operation, all you need to do is to declare motor gear ratio

    This is not a dream. It has been selling for over a year.

    If any of you are interested, please, let us know. We will be more than happy to help.

    You can contact me directly at
    sales@solustan.com



  18. #18
    Registered
    Join Date
    Oct 2005
    Location
    Malaysia
    Posts
    96
    Downloads
    0
    Uploads
    0

    Default

    Hi,
    The functions as describe above looks good but then:-

    I have seen your advertisment on CNCZONE and read some of the manuals downloaded from your website.

    Afterwhich i read through i have posted the following to your support@solustan on 09 nov06, a copy of the questions asked and no reply yet. ( some of the answer have been answered above)

    Hello,

    1. Can the software accept .flx files from felixcad?

    2. Is it possible to change the laser power on a
    single line, example, low power during start and then
    higher power to the end of line.

    3. Is it possible to do piercing then cutting with
    laser.

    4. The offer price USD 250 is for which version of
    software

    5. Where can i buy the offer software and can i pay by
    credit card or TT?

    Regards
    coleong



  19. #19
    Registered
    Join Date
    Aug 2006
    Location
    USA
    Posts
    33
    Downloads
    0
    Uploads
    0

    Default

    Hello Coleong,

    Here are the answers:

    1. LinkMotion is a driver and accepts information when printed from an application, just like a printer driver. You have two choices - one is to export files as DXF file and import into something like DolphinCAD or Corel Draw, both cost about $300. Alternately, we are willing to test FelixCAD with our driver. If it owrks, you do not need to worry about .flx file structure for compatibility. Simply, save your files in FelixCAD, open them at your convenience and print them to your laser machine using LinkMotion.

    2. First of all, LinkMotion can modulate power as a function of XY speed. For that, the machine needs to accept PWM for laser power control. If you are varying power on a straight line because the machine is slow in the beginning, you do not need to worry about it. If you need to vary power for other reasons, I suggest you design the straight line into three segments, apply different colors to each segments and select desired power output for each of the colors. LinkMotion controls power automatically through PWM.

    3. There are ways to sit on a beging point for a period of time with the laser on and then move XY to cut. Once I understand your application, I can suggest.

    4. As the ad suggests, the special price of $250 is good for generating G codes directly from one of these popular applications.

    5. The list price of CO2 laser sutting and raster software is $1,299. Dicounts for hobbyists and educational institutions is around 40 percent. The actual price is $799 for hobbyists and educational institutions.

    6. Solustan accepts most major credit cards and bank wire transfer. We are planning to set up PayPal soon.

    7. Please, tell us your actual address in order to calculate shipping charges.

    Best regards.



  20. #20
    Registered
    Join Date
    Oct 2005
    Location
    Malaysia
    Posts
    96
    Downloads
    0
    Uploads
    0

    Default

    Thanks for the quick reply .

    I believe you have clear the air on the special/offer price on the software and also the payment method.

    On the application side the question is answered.

    Best regard
    coleong



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

Motor controller development for laser

Motor controller development for laser