Build Your CNC machine or Laser Engraver at home Using Arduino

Now you can build your own 3D printer/Laser Engraver/CNC machine for home projects by using just a Arduino and pairs of stepper motors.
I used the OLD CD/DVD drive for stepper motors and mini servo 9g to build this project. You can upgrade it using NEMA stepper motor and high torque servo motor. Read upto last after the program to understand the working also to download the programs.
The software I used in this project work is Arduino to control the stepper motors for axial movement, Inkscape to generate the G-code for certain images/text etc. and also I used the Processing to execute the G-code and give commands to stepper motor through arduino interface which helps the machine to achieve directional as well as positional as per geometry defined in G-code.
For those people who dont understand the term G-code and M-code , Basically the G-code is geometrical codes which helps the machine to understand the axial positional movement to reach certain point in space using stepper motors and M-code is just a miscellaneous code to switch on/off the certain feature in machine like the spindle/laser light and some extra attachment machinery required in machine to work.
Inkscape is a free and open-source vector graphics editor; it can be used to create or edit vector graphics such as illustrations, diagrams, line arts, charts, logos and complex paintings. Inkscape's primary vector graphics format is Scalable Vector Graphics (SVG); however, many other formats can be imported and exported.
Arduino is an open source computer hardware and software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices and interactive objects that can sense and control objects in the physical and digital world. The project's products are distributed as open-source hardware and software, which are licensed under the GNU Lesser General Public License (LGPL) or the GNU General Public License (GPL), permitting the manufacture of Arduino boards and software distribution by anyone. Arduino boards are available commercially in preassembled form, or as do-it-yourself (DIY) kits.

Arduino Code for CNC machine Axial control which will later on control through the processing after this program uploading to board of your choice (UNO/MEGA/NANO).
Let me know if you have any questions or querry about this project.
I will love to help!!
www.grabcad.com/sourbh
download link :-
                        
                      1.) "http://www.mediafire.com/file/21f94bvk568cp7t/CNC_Files.rar/file"


Make your machine two axial, one each stepper connected to X, Y axis.
Servo is Z axis to control pen/Laser up/down respectively.
Connection them according to the circuit diagram. If need to change the pin kindly edit the "arduino_CNC.ino" file.
Burn the "arduino_CNC.ino" under "CNC ARDUINO CODES" folder to Arduino connected to servo and stepper.
Open Processing after installation, feed the "GCODE_PROCESSING_SOURCE_CODE" under the folder "PROCESSING PROGRAM AND EXECUTOR", hit run and follow the commands.
p: select serial port
1: set speed to 0.001 inches (1 mil) per jog
2: set speed to 0.010 inches (10 mil) per jog
3: set speed to 0.100 inches (100 mil) per jog
arrow keys: jog in x-y plane
page up & page down: jog in z axis
$: display grbl settings
h: go home
0: zero machine (set home to the current location)
g: stream a g-code file
x: stop streaming g-code (this is NOT immediate)
Another way to control this CNC is to Simply flash your Arduino using the laser engraver.hex file in the benbox folder and upload the image directly to ben box and execute the file to print.




Comments

  1. You always write fabulous. This is third time I am reading any of your blog and again finding it inspirational one. And I am sure this number is going to be increased.
    alumina cnc machining

    ReplyDelete
    Replies
    1. This is really so great to see people like you exploring my works. Let me know if i could help you in any further topics you seek explanation to. Thanks a lot dear, I am so glad by your response.

      Delete
  2. I will recommend your post to my junior researchers who have the similar doubts. I guess your blog has clear the confusion in very simpler way. Thank you on behalf of them.
    Silicon edge polishing

    ReplyDelete
    Replies
    1. Thanks a lot dear, this means so much to me. I love to publish more of my projects and works soon. And please do let me know if you have any doubts or any other topic you seek help for.
      Thanks again!

      Delete
  3. I am happy to find this content very helpful and informative for me, as it contains lot of accurate detailing about the topic, which I was searching for. Thanks a lot and good luck.
    Silicon edge polishing

    ReplyDelete
  4. Interesting in so very much for this great site. Ceramic CNC Machining.

    ReplyDelete
  5. Your blog held my interest right to the very end, which is not always an easy thing to do!! Glass CNC Machining Service.

    ReplyDelete
  6. I’d like to thank you for writing on this topic. The information you provided was very useful. I will visit again in the near future. Custom CNC Micromachining.

    ReplyDelete
  7. The title of your write-up is very eye catchy which holds an individual to read till the very end of your blog. Every new paragraph increases the interest of a reader. Thin Film Coatings.

    ReplyDelete

Post a Comment