Difference between revisions of "Electronics"

From ShapeOko
Jump to: navigation, search
(Joining Wires)
(Joining Wires)
Line 104: Line 104:
* [http://www.knowyourparts.com/technical-articles/hand-wire-splicing-technique/ Hand Wire Splicing Technique]
* [http://www.knowyourparts.com/technical-articles/hand-wire-splicing-technique/ Hand Wire Splicing Technique]
* [http://en.wikipedia.org/wiki/Western_Union_splice Western Union splice]
* [http://en.wikipedia.org/wiki/Western_Union_splice Western Union splice]
Note that wire ends which are being inserted into terminal blocks should *not* be tinned[http://www.shapeoko.com/forum/viewtopic.php?f=10&t=2787#p21237]: http://electronics.stackexchange.com/questions/29861/tinning-wires-that-will-be-screwed-in-to-a-chocolate-block-terminal-strip
==Further Alternatives==
==Further Alternatives==
See also [[Advanced Electronics]]
See also [[Advanced Electronics]]

Revision as of 18:35, 21 November 2014

There are a number of components necessary to move the axes of a machine.

Arduino microcontroller gShield Stepper drivers Power supply Stepper motors
E4.JPG Grbl shield.jpg E3.JPG E2.JPG E1.JPG
processor / control board mounts the stepper drivers which control the motors provide appropriate power / signals to the motors (these are integrated into the gShield) provides 24v of DC power, transforming it from whatever AC power your locale uses converts electrical current into mechanical motion


A CNC machine needs to be able to take instructions to move to specific coordinates, and convert them into moment-by-moment, movement-by-movement signals for the Stepper Motors by sending electronic signals through the Stepper Drivers.

The typical choice for the ShapeOko is an Arduino, an inexpensive microcontroller board which provides a very good price for the needed precision.


Stepper Shield

In addition to the microcontroller, the machine needs a system to take in the voltage necessary to move the motors and send it to the Stepper Motors.

Since, the gShield (formerly known as GrblShield) has become the standard choice --- this change was made to reduce the cost of the system and match its specifications with the machine's capabilities.

gShield (Arduino Shield for GRBL from Synthetos.com)

Please see the Advanced Electronics page for details on Alternative Stepper Drivers.

Stepper Drivers

It is necessary to take the signals from the Microcontroller and use it to apply the voltages from the power supply to the Stepper Motors --- the Stepper Drivers accomplish this. They may be soldered directly to the Stepper Shield, or installed into sockets, enabling replacement in the event of one being blown.

Power Supply

Any power supply that can produce 4.2A - 6A at 18-30v. At a very minimum, you need a 90 W power supply for four NEMA17 motors driven from a gShield with three stepper motor drivers (with the two Y motors in parallel on one driver). For example, a 24 V 3.75 A supply will work, but the ideal supply would have a little more headroom -- say, 24 V 4.2 A (100 W). You'll need 100-120 W to make the most of a four-driver board, such as the buildlog.net shield or one of its clones -- for example, a 24 V 5 A supply. If you have NEMA23 motors, how much power you need and how much your gShield can get out of them depends on their impedance and rated current. You need 150-200 W for four small (50 mm) NEMA23 motors rated 1.5 to 2 A. With lower impedance motors (such as the 2.8 A motors sold by Inventables as of July 2014), the gShield won't be able to achieve the rated current, so a smaller supply will do (say, 120-150 W). It may be a good idea to connect the Y motors in series in this case, or to use a four-driver shield.[1]

Note: We have successfully used 18V and 24v power supplies between 3.75A and 6A. Other power supplies may work. If you are unsure about anything related to powering the machine: STOP AND FIND A QUALIFIED PERSON TO ASSIST YOU!

I used an old power cord and connected the Load, Neutral, and Ground to the black, white, and green wires.

The COM connection on the power supply should be connected to the - on the driver shield. The +V connects to the + on the driver shield.

Power supply and arduino.JPG

Stepper Motors

The ShapeOko requires at least three stepper motors, one for each axis (Dual-drive Y-Axis is a popular upgrade and is now standard on the ShapeOko 2). The 58 oz-in motors listed are sufficient to drive the Shapeoko, but larger motors can be used. Forum Discussion. See Stepper Motors for more detail.


Ventilation and Cooling

Two 12 volts DC fans in series can be connected directly to the power supply to cool everything as each one will have a voltage drop of around 12 volts. There has been some discussion in the Forums indicating this should not be done. Please research and consider the electrical aspects before doing this.


Ground Loops

Ground loops are almost always a problem when they arise. The most common type of ground loop encountered is when two pieces of audio equipment are plugged into separate AC outlets and are connected between each other with a signal wire. The ground loop will manifest itself as a hum at 60hz (in the US), or one of the harmonics of that frequency. Ground loops in this case are caused by the fact that the audio equipment is plugged into two separate outlets (that may or may not be on the same circuit). The two outlets will have different paths to earth ground, different either in distance travelled or route taken, and as such will have slightly different potential charges. Because the equipment has different electrical potentials on the ground plane the signal wire will now act as a conductor of the difference in potential (along with the signal). For audio equipment that interprets the difference between the ground and signal conductor an oscillating ground loop signal will alter the interpreted signal and cause hum.

It should be noted that the differences in earth ground potential is one source of ground loops, another source of problems is inductance from electrical fields. In the presence of an electrical field a piece of equipment will induct an electrical charge that can cause the ground plane to have a different potential than another piece of equipment connected via a signal wire, hence a ground loop.

The final source of ground loops is leakage from hot electrical sources to ground. You’ll see this in poorly designed circuits that don’t properly separate high and low voltage traces on a PCB. Also, if there is an outright failure in a device and voltage is sunk to ground, a ground loop will be created. However it should be noted that in the last scenario of an equipment failure, the ground plane is fulfilling its purpose of safely dissipating voltage to earth, and this situation should be immediately resolved.

Shapeoko Applications

Using the audio equipment example as a basis for understanding a ground loop, it becomes easier to understand how a ground loop can be applied to a Shapeoko 2 installation. If the computer ground plane has a different potential than the ground plane of the Arduino then current will flow along the shield of the USB cable and potentially cause damage or undesired operation. In the case of the Shapeoko 2 both ends of the USB connection are attached to devices that are potentially very sensitive to voltage differences.


The way to resolve ground loops depends on the source.

  • If the ground loop is caused by inductance from an electrical field then the source of the field or the inducting equipment should be moved. For instance, if signal wire is running adjacent to a transformer, try moving the signal wire to another location. Also, if at all possible, use shielded twisted pair (STP) as opposed to unshielded twisted pair (UTP) or untwisted wire.
  • Another highly effective way to resolve ground loops is to isolate the ground planes that are connecting through the signal wire. In the case of USB signal wire this is accomplished via a USB Ground Loop Isolator. A device of this type completely isolates the electrical system on either side of the device via the use of components called opto-isolators. Opto-isolators are devices that allow for the transmission of a signal without the conduction of current.[2]

Discussion of this in the forums:

Wire Length

One concern for wiring is resistance. This is especially notable on the Y-axis where having two different lengths can be a concern since the impedance of the motors is very low, compared to the loads, so an extra length of wire makes a significant difference in how the current gets split between the two motors.[3]

Joining Wires

Note that wire ends which are being inserted into terminal blocks should *not* be tinned[4]: http://electronics.stackexchange.com/questions/29861/tinning-wires-that-will-be-screwed-in-to-a-chocolate-block-terminal-strip

Further Alternatives

See also Advanced Electronics