Pre-Assembled Arduino Control Instructions

From Zen_Toolworks_Wiki

Jump to: navigation, search

So you have purchased an Arduino control pack and one of our machines! Congratulations! (And thank you!) But they’re all in pieces; what goes where? In this tutorial, we will guide you step-by-step, from opening the package(s) to pressing Go on your computer screen.


NOTE: Typically steps 1-18 are performed by Zen Toolworks and the control pack is tested prior to shipment. If this is the case for you, please start at step 19.

-

Table of Contents:

About this Product:
Control pack contents
Other required parts
The final assembly
Assembling the Control Pack:
Step 1: Attaching the drivers to the base
Step 2: Attaching the power supply unit (PSU) to the driver/base assembly
Step 3: PSU wire labeling convention
Step 4: Attaching the PSU wire to the drivers
Step 5: Arduino and shield
Step 6: Attaching the Arduino to the base
Step 7: Attaching the shield to the Arduino
Step 8: Power cord before stripping
Step 9: Power cord after stripping
Step 10: Attaching the power cord to the base
Step 11: Attaching the power cord to the PSU
Step 12: PSU voltage settings
Step 13: Attaching the drivers to the PSU
Step 14: Finalize attaching the PSU to the base
Step 15: Arduino wiring to the drivers
Step 16: Arduino shield port configuration
Step 17: Attaching the drivers to the correct Arduino shield port
Connecting the Control Pack to the Machine
Step 18: 6-wires and 4-wires
Step 19: Stripping the 4-wires
Step 20: Soldering the 4-wires to the 6-wires
Step 21: Protecting the soldering
Step 22: Motor wiring to the drivers
Step 23: Attaching the drivers to the motors
Step 24: Connecting the Arduino to a computer
Setting up the Arduino:
Steps 25-31: Downloading the appropriate program for the Arduino
Steps 32-37: Extracting the program files
Steps 38-48: Updating the driver software
Steps 49-52: Downloading the GCodeSender program
Steps 53-58: Running the GCodeSender program


-

Control Pack Contents
After you’ve opened your package, this is probably what you’re going to find;

  • 1 clear plastic base
  • 1 power supply unit (PSU)
  • 1 power supply cord
  • 1 emergency stop button
  • 1 Arduino UNO
  • 1 Arduino shield
  • 3 stepper motor drivers
  • 3 lengths of double wire in clear insulation
  • 3 sets of 4-wires/plug (red, blue, green, black)
  • 6 larger white plastic bolts
  • 4 smaller white plastic bolts
  • 10 white plastic spacers
  • 3 white plastic nuts


-

Other Required Parts
These items are required for connecting your control pack to your machine and computer, but are not included with the control pack:

  • 3 sets of 6-wires/plug (red, pink, brown, yellow, white, black)
    • colors are not precisely the standard shades, but we will be referring to them as such
  • 3 long lengths (about 18 feet) of 4-wires (red, green, black, white) in white insulation
  • 3 motors (Shinano)
  • 1 USB cable, A male to B male (usually used for printers)
    • Here is a link to an example/place you can buy one.


-


Arduino Final Setup.jpg

This is what we will be setting up.


-


Arduino final Setup Connected.jpg

And this is an example of how your Arduino assembly will look connected to your machine.


-


Figure III. Arduino Control Diagram
This is what the whole setup looks like in diagram form.




How to Assemble to the Arduino Control Pack


-


Preassembled Arduino 001.jpg

1. Assemble the drivers to the clear plastic base as shown. The bolts come up through the base from the bottom, and the nuts are attached over the protruding lip of the driver. There is a nut and bolt on both sides of each driver (6 total).


-


Preassembled Arduino 002.jpg

2. Attach the three clear double wires to each driver, and thread them through the base as shown. This base can then be attached to PSU using a bolt and spacer between the two center drivers.


-

Preassembled Arduino 003.jpg

3. The double wires are labeled such that the wire with the white stripe is positive and the wire without the stripe is negative.


-


Preassembled Arduino 004.jpg

4. Attach these wires to each driver so that the positive wire is in the outermost port, and the negative wire is connected to the port next to it.


-


Preassembled Arduino 005.jpg

5. We can also attach the Arduino and its shield to the base at this time.


-


Preassembled Arduino 006.jpg

6. Attach the Arduino to the base using two smaller bolts, 2 nuts, and 2 spacers.


-


Preassembled Arduino 007.jpg

7. Insert the shield on top of the Arduino, making sure that you do not bend the pins.


-


Preassembled Arduino 008.jpg

8. The power cord you are given will have a wall plug on one end and two extension ports on the other.


-


Preassembled Arduino 009.jpg

9. Cut the ports off, separate the two wires for a few inches, and strip off about a centimeter of the insulation.


-


Preassembled Arduino 010.jpg

10. Thread the power cord through the clear base as shown.


-

Preassembled Arduino 011.jpg

11. Then attach the two power cord wires to the two AC ports on the power supply unit (PSU).


-


Preassembled Arduino 012.jpg
Preassembled Arduino 013.jpg

12. Check that your PSU is set to 115 V. (Use a small screwdriver to poke through the grate and flip the switch.) If set to 230 V, all green LEDs in the assembly will flicker, and your setup will not function properly.


-


Preassembled Arduino 014.jpg

13. Now connect the clear insulated double wires to the PSU. All the positive wires go to the ports labeled +V, and the negative wires to the ports labeled –V. Which specific port (given four +V and four -V ports) that each driver’s wires go into does not matter. In this photo, we have all positive wires bunched up together in one +V port, and all negative wires bunched up in one –V port.


-


Preassembled Arduino 015.jpg

14. We can then use the last set of smaller bolt/spacer/nut to attach the base firmly to the PSU.


-


Preassembled Arduino 016.jpg

15. Now we can start connecting the stepper signal wires to the Arduino. Given grouped sets of 4 wires, we connect each set of four wires to each driver as shown.


-


Preassembled Arduino 017.jpg

16. Here is a closer look at the Arduino shield we are going to use. As you can see, of the 6 white plug ports, the right column has ports labeled “Z-axis,” “Y-axis,” and “X-axis.”


-


Preassembled Arduino 018.jpg

17. Here are the drivers attached to their respective Arduino ports.

Note: If the drivers do not move the desired motor, simply move the axes that the drivers are plugged into on the Arduino.




How to Connect the Arduino Control Pack to the CNC Machine



-


2wqr96d.jpg

18. Now we will use the included harness to connect the stepper motors to their corresponding driver boards.

Plug the one end of the harness into the stepper motor and then connect the wire ends to the green connector on the driver board as shown.
NOTE: We will not be using the black and white wires. You can cut those back so they are not exposed.


-


Preassembled Arduino 025.jpg

24. Finally, attach the Arduino to a computer using an appropriate USB cable, and plug in the power supply!

NOTE: To prevent damage to your Arduino setup, always unplug the power supply before connecting or disconnecting any other wires.





How to Set Up the Arduino Program


-

ArduinoControl 001.jpg

25. Go to the Arduino website.


-

ArduinoControl 002.jpg

26. Click on the Download tab.


-

ArduinoControl 003.jpg

27. Select the proper download for your machine.




-

ArduinoControl 004.jpg

28. Click Open.


-

ArduinoControl 005.jpg

29. Navigate to where you would like to download your file to.


-

ArduinoControl 006.jpg

30. Wait for the download to complete.


-

ArduinoControl 007.jpg

31. Click Open once the download is complete.


-

ArduinoControl 008.jpg

32. The Arduino software downloads as a .zip file, so you will need to extract the files.


-

ArduinoControl 009.jpg

33. Right click on the folder, and choose Extract All.


-

ArduinoControl 010.jpg

34. Select the destination of where you would like to extract the Arduino folder to and click Extract.


-


ArduinoControl 011.jpg

35. Wait a few moments while the files extract.


-

ArduinoControl 012.jpg

36. Open the folder once it has been extracted.


-

ArduinoControl 013.jpg

37. Double click on the Arduino application.


-

ArduinoControl 014.jpg

38. Navigate to your computer's Device Manager, where you should see your Arduino.


-

ArduinoControl 015.jpg

39. Right click on the Arduino device, and select Update Driver Software.


-

ArduinoControl 016.jpg

40. Select "Browse my computer for driver software".


-

ArduinoControl 017.jpg

41. Click Browse.


-

ArduinoControl 018.jpg

42. Navigate to your recently extracted Arduino folder and click OK.


-

ArduinoControl 019.jpg

43. Click Next.


-

ArduinoControl 020.jpg

44. Your driver will now be updated.


-

ArduinoControl 021.jpg

45. If you see this security alert, select "Install this driver software anyway".


-

ArduinoControl 022.jpg

46. The driver should continue installing.


-

ArduinoControl 023.jpg

47. You should see a window saying that the driver was updated successfully. Click Close.


-

ArduinoControl 024.jpg

48. The device should now be shown in your Device Manager with the coorrect COM port.


-

ArduinoControl 025.jpg

49. Navigate to https://github.com/winder/Universal-G-Code-Sender in your Internet browser. Scroll down to the downloads section and download the latest stable build.

Download the .zip file and the unzip to a saved location. Open the folder and choose the "UniversalGcodeSender.jar" application.
NOTE: This is a Java Application so you must have Java Installed.


-

2h57ifa.jpg

55. Be sure to select your correct COM port and set Baud to 115200. Then click "Open". You should now be connected to GRBL.



ArduinoControl 033.jpg

57. Type "$$", without the quotation marks, into the command bar and hit Enter.


-

ArduinoControl 034.jpg

58. You should get a list of settings that you can alter to fit your application. To change a setting, type $_ = ___ with your appropriate parameters into the command line, and then hit enter.

It would be a good idea to read up about the GRBL Firmware and what all the settings mean on the wiki page here: https://github.com/grbl/grbl/wiki/Configuring-Grbl-v0.9

<center>About EStop (Mushroom button) Installation

We leave the E-Stop button not wired. You will have a few options to use E-Stop in your particular case.

Option One: Use EStop to cut off the main 12V DC power to all stepper driver board. In this case, you will need to add the E-Stop as a switch between the power supply unit 12V positive terminal and all stepper driver power input positive terminals. You will need some extra wires to make the connection easier.

Option Two: You can also use EStop as a button to give Arduino GRBL a reset signal. By default, Arduino A0 pin is for reset, you can connect EStop switch between Arduino Ground and A0.

We will suggest using EStop switch to cut off the 12V DC power to drivers, so that it will for sure to stop any motor movement instantly.

Personal tools