Home About Me Final Project Fab Academy 2019 Berytech Fab Lab

Week 17: Machine Design

During the seventeen's session dated May 15 2019, the group assignment is to actuate and automate our machine, and document the group project and our individual contribution.


In reference to week 15 "Mechanical Design" our group project is a Sand Plotter that will draw figures with sand in a street, in a floor or any other flat surfaces limited to 40cm in width and unlimited in length.


In order to commend the stepper motor:

  1. I connected the CNC Shield (equipped with X and Y Stepper driver type A4988) to the Arduino Uno board.


  2. I connected the stepper motors Nema 17 to the X and Y drivers and the limit switch for the Y-Axis according to the below wiring.


  3. I downloaded the GRBL zip file and added the grbl folder into to the main library of Arduino, then I tested the example.




  4. The GRBL open source firmware runs on an Arduino Uno and turns G-code commands into stepper signals. The GRBL and the CNC shield are simple and effective ways to control a 2 or 3 Axis machine or any kind of robotics projects.

  5. I downloaded The Universal Gcode Sender which is a Java based GRBL compatible cross platform G-Code sender.


  6. I downloaded The Java software.

  7. I launched the UGS program:


  8. I connected the Arduino Uno, then I pressed the refresh button, the software automatically adapted the Port number. I set the Baud Rate to 115200. Then I clicked on Connect.


    As you can mention in the above picture in the Console Section we have numbers and the X+ X- Y+ Y- Z+ Z- are active now. From now one, I can control the X and Y stepper motors connected to shield board. When I click X+ or X- the stepper motor attached to X terminal will turn in forward or reverse direction.




Actuate and Automate:

After each team members learned and practiced the CNC shield-Arduino connection and how to control and operate a stepper and a servo motor, we worked by group to finalize the control settings and generate a "W17" toolpaths specific gcode. We connected the CNC Shield and started by doing our group assignment.

  1. Connection:
  2. My friends preferred to install and use the Source Rabbit gcode sender. So we connected to the COM3 and selected 115200 as Baud rate in order to connect to Arduino. Then we configured the grbl settings to match our machine gears and dimensions.

    After that, we connected the 2 stepper motors on the X & Y axis and the servo motor on pin 11 (Signal on the Z+ End Stop).


  3. Generating the GCode

  4. We used the fabmodules to generate the gcode with the below settings.


    We modified the below gcode on brackets in order to control the servo.

  5. Sending the GCode

  6. We connected the board through Source Rabbit Gcode Sender, loaded the modified gcode and pressed send.


  7. Final videos








Future development Plans:

As a future development our project can be used to redraw some lines on the football, tennis or any other playground by doing some adjustments like changing the wheels and the container content like clay or other materials.


Downloads

The original gcode,
The modified gcode.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.