Welcome to Our Community

Some features disabled for guests. Register Today.

Laser Engraver Control Board

Discussion in 'Laser Cutters' started by oni305, Feb 9, 2014.

  1. Tamas

    Tamas New
    Builder

    Joined:
    Aug 19, 2014
    Messages:
    5
    Likes Received:
    0
  2. Jae-Ho Song

    Builder

    Joined:
    Oct 2, 2014
    Messages:
    2
    Likes Received:
    2
    oni305, thanks for your work in designing an open control board and Inkscape extension.

    I was able to modify your extension for use with my RepRap/RAMPS setup by using the fan control PWM output to drive the laser. Additionally, I did some experimentation with your plugin to generate grayscale raster graphics. I initially tried modulating the laser intensity, but was not getting very good results. I ended up modulating the feed rate with constant laser intensity to generate different shades of gray. The issue with this is that the feedrate/darkness is not linear, however, there is a range where it is linear enough to show good results.

    I was able to generate a calibration script to test different feed rates to determine the optimum max/min values for the feed rate. It turns out that this is also a function of resolution as a higher resolution results in slight overlap of the layers and everything turns out darker.

    I have attached several images (each has a date/timestamp) so you can see the progression. The final two images were generated after calibration, all prior images used arbitrary values that I tried to tweak to improve quality.

    The zip file raster2laser_gcode_gray.zip contains:
    raster2laser_gcode_gray.inx -- this goes into inkscape extensions
    raster2laser_gcode_gray.py -- this goes into inkscape extensions
    calibrationgen.py -- Python3 script that generates calibration gcode

    I'm currently not at home at the moment and do not have access to good pictures of the calibration, but I needed to post this and I'll probably have motivation to complete this now that this is posted.

    Caveat:
    My machine is running Marlin and I'm abusing the fan control to drive the laser. There may be some delay in processing the buffer moves (very short travel) and the calibration emulates this delay by producing gcode in the same manner as the plugin

    Since I am using the fan control, I use the following command to engage/disengage the laser: M106 SXX where XX is the duty cycle (0-255). I am unable to test that this will work fine for a machine that uses M03/M05. I've modified the plugin attached to use M03/M05.

    Calibration Usage (note, this requires python 3 although I could make a python2 script if there is demand):
    python calibration.py -n <MIN FEED> -x <MAX FEED> -r <RESOLUTION> -o <OUTPUTFILE>

    There are other options, look at the first 12 lines to see all parameters.

    Please note that this is not "production ready" and all of this is experimental!
     

    Attached Files:

    Mark Carew and oni305 like this.
  3. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    Thanks, for your support!

    in the future i plan to make the new version of the control board (already started) and after that i'll work again on the extension to extend with new features !
     
    AK-Creation and Mark Carew like this.
  4. Tamas

    Tamas New
    Builder

    Joined:
    Aug 19, 2014
    Messages:
    5
    Likes Received:
    0
    Sounds good ! :)
     
  5. Jae-Ho Song

    Builder

    Joined:
    Oct 2, 2014
    Messages:
    2
    Likes Received:
    2
    I'm looking forward to your new version. I'm currently working on a laser PCB exposer so your board would be a good example to work with and I'll have a new control board if it all works out!
     
  6. Tweakie

    Tweakie OpenBuilds Team
    Moderator

    Joined:
    Jan 18, 2014
    Messages:
    784
    Likes Received:
    326

    Excellent work with the shades. :thumbsup:

    Tweakie.
     
  7. Tamas

    Tamas New
    Builder

    Joined:
    Aug 19, 2014
    Messages:
    5
    Likes Received:
    0
    HI any news about that software.. what sent you ?
    Regards : Tom
     
  8. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    PM
     
  9. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    I'm working on a new version of the plugin with the option to output a grayscale image!

    The Gcode format will be this: M03 S255 (S from 0 to 255)
     
  10. Quy

    Quy New
    Builder

    Joined:
    Aug 26, 2014
    Messages:
    3
    Likes Received:
    1
  11. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    I don't know but: if you can run Corexy on an Arduino UNO you can run in on my board.


    I've also planned a new version of the board, with an integrated PWM control (thanks to the version 0.9 of GRBL !!!)
     
  12. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    the new version is here!!!
    V7 with grayscale !!!

    :D
     

    Attached Files:

    Robert Hummel likes this.
  13. Robert Hummel

    Robert Hummel Custom Builder
    Moderator

    Joined:
    Nov 14, 2013
    Messages:
    978
    Likes Received:
    714
    You the man ONI305
     
  14. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    i don't know why in the build the file of the V7 does not appear .....:confused:
     
  15. ymilord

    ymilord Journeyman
    Staff Member Builder Resident Builder

    Joined:
    Oct 2, 2014
    Messages:
    77
    Likes Received:
    159
    Awesome Work! One question on the M03 Power levels. The PWM values for my board are 0 - 1000. Would that be fairly easy for me to change the scale with-in the plug in? And as a side note, It would be nice to set the min/max values and have the greyscale raster the image with those values vs. 0 to max.

    i.e. M03 S3 does not put a dent in balsa.

    Thanks again for such an awesome plug-in/extension!
     
  16. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    Yes, you can modify the S scale.
    You have to modify the lines 460 / 477 / 485 / 502 scaling the S value

    example
    1000/255 = 3.921....

    (original 460) file_gcode.write('M03 '+ ' S' + str(255 - matrice_BN[y][x]) +' ; Laser ON\n')
    (edited 460) file_gcode.write('M03 '+ ' S' + str( int ( 3.92 * (255 - matrice_BN[y][x]) ) ) +' ; Laser ON\n')


    For the min/max i don't need it and i don't like it, i won't implement this function.
    You can already change the grayscale resolution & the feed rate to change the effect of the laser on the object
     
  17. sissyfuss

    sissyfuss New
    Builder

    Joined:
    Dec 26, 2014
    Messages:
    1
    Likes Received:
    3
    I would just like to add my thanks to all of you for switching the light at the end of the tunnel back on again. Awesome work and great community spirit. Thanks again.
     
    oni305, GrayUK and Robert Hummel like this.
  18. Krishnakumar

    Builder

    Joined:
    Nov 25, 2014
    Messages:
    27
    Likes Received:
    13
    Hi Oni305,
    Great looking board and extension. I am planning to build a laser cutter for foam and 3mm plywood cutting purposes. I really like the OX-CNC design and I may build that one. Can you please tell me if this controller board is suitable for what I intend to do? Also, is this board going to be available in parts store? If not, how can I get one?

    Thanks!
     
  19. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    Hi.
    I don't know if a laser diode is capable to cut 3 mm of wood.
    My board can andle up to 3A (changing a resistor) laser diode.
    for this board i have some unpopulated PCB that i can ship
     
  20. Krishnakumar

    Builder

    Joined:
    Nov 25, 2014
    Messages:
    27
    Likes Received:
    13
    I am new to this and would not know how to solder all the components, Sorry. Do you have any "ready to go" boards? Also, I am planning to build the OX-CNC which uses both nema 23 and nema 17 motors. Do you think it will work with this board?
     
    #80 Krishnakumar, Jan 9, 2015
    Last edited: Jan 9, 2015
  21. Waiata

    Waiata New
    Builder

    Joined:
    Nov 28, 2014
    Messages:
    2
    Likes Received:
    0
    Hi oni305
    If we take a standard Grbl Gcode sequence as generated by your “Raster 2 laser gcode generator" For example G00 X0.0 Y0.0 - M03 - G01 X102.5 Y0.0 F4000 - M05 - G00 X102.5 Y0.1 - M03 - G01 X0.0 Y0.1 F4000. Now between each G code the machine accelerates to maximum speed then decelerates then turns the laser either on or off as required, then repeats the procedure over and over. Is there a way of keeping the speed constant and just simply turning the laser on and off without having to slow down? Obviously at each end of each line, this would need to be done. What are your thoughts on this?
     
  22. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    Set the acceleration parameter of GRBL !
     
  23. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    I've started to design the new version of the board!
     
    Nick W likes this.
  24. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    The new features will be:
    -Full support for GRBL 0.9 (Full PWM support)
    -Interchangeable "tool expansion board" ( Laser / Spindle / Plasma / Voice coil motor / ecc... )
    -Possible expansion board for standalone working (or wireless)
    -Can be powered up to 24V
     
    JustinTime, Hytech2k and Krishnakumar like this.
  25. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    Work in progress...

    work.png
     
    Krishnakumar and Pawlenko M like this.
  26. Derek Ainsworth

    Builder

    Joined:
    Jan 2, 2015
    Messages:
    2
    Likes Received:
    1
    Oni, I appreciate all of your hard work on your plugin. It works better and is simpler to use than anything else I have found!
     
    oni305 likes this.
  27. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    Thanks ;)
     
  28. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    A little update of the base board

    gr.png
     
    Krishnakumar likes this.
  29. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    Krishnakumar and JustinTime like this.
  30. oni305

    oni305 Well-Known
    Builder

    Joined:
    Jan 16, 2014
    Messages:
    106
    Likes Received:
    85
    The new laser driver based on the STCS2A


    laser_driver.png
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice