# Low-Cost Open-Source Voltage and Current Monitor for Gas Metal Arc Weld 3D Printing

Authors: A. Pinar; B. Wijnen; G. C. Anzalone; T. C. Havens; P. G. Sanders; J. M. Pearce
Journal: Journal of Sensors
 (2015)

---

## Abstract

Arduino open-source microcontrollers are well known in sensor applications for scientific equipment and for controlling RepRap 3D printers. Recently low-cost open-source gas metal arc weld (GMAW) RepRap 3D printers have been developed. The entry-level welders used have minimal controls and therefore lack any real-time measurement of welder voltage or current. The preliminary work on process optimization of GMAW 3D printers requires a low-cost sensor and data logger system to measure welder current and voltage. This paper reports on the development of a low-cost open-source power measurement sensor system based on Arduino architecture. The sensor system was designed, built, and tested with two entry-level MIG welders. The full bill of materials and open source designs are provided. Voltage and current were measured while making stepwise adjustments to the manual voltage setting on the welder. Three conditions were tested while welding with steel and aluminum wire on steel substrates to assess the role of electrode material, shield gas, and welding velocity. The results showed that the open source sensor circuit performed as designed and could be constructed for <$100 in components representing a significant potential value through lateral scaling and replication in the 3D printing community.


---

## Body

## 1. Introduction

The development of low-cost self-replicating rapid prototypers has evolved from early 3D printers that could fabricate approximately half of their components from polymers to tools now capable of printing in a wide variety of materials [1–4]. Of widespread industrial interest is a low-cost metal 3D printer capable of printing both steel [5] and aluminum parts [6]. These open-source metal 3D printers can be fabricated for less than $1,200 [5] using a conventional metal inert gas (MIG) welder and controlled with open-source electronic boards (normally Arduino compatible); they reduce the costs of metal 3D printing by two orders of magnitude and make the technology far more accessible for small and medium sized enterprises. In order to minimize costs, the consumer-grade MIG welders used for RepRap 3D metal printing contain minimal controls and therefore lack any real-time measurement of welder voltage or current. The preliminary work on process optimization of these printers requires a low-cost sensor and data logger system to measure current and voltage of the gas metal arc welders (GMAW).Arduino microcontrollers are already established for use in low-cost high-quality scientific and engineering equipment [7–12]. For example, they have been used for oceanographic research [13], mass spectrometry [14, 15], microscopy [16], vision research [17], Skinner boxes [18], mechatronics [19], optics [10, 20], electrophoresis [21], and imaging [22, 23]. Most importantly for this sensor application, Arduinos have applied to systems for sensors for open hardware [24] including colorimetry [25], nephelometry [26], pressure monitoring [27], smart plugs [28], and in vivo optimal imaging [29]. In addition, Arduinos have been demonstrated for field sensing operations like soil moisture [30], developing a wireless sensor node to monitor poultry farms [31] and an ambient sensor cloud system using OpenFS (open field server) for high-throughput phenotyping [32]. Arduinos are also an established technology for controls [33], used as controllers on numerous challenging projects such as for aerial vehicles [34], robots [35, 36], and microfluidics [37].As this track record has been established and Arduino microcontrollers are already used for controlling the 3D printer, this paper reports on the development of a low-cost open-source power measurement sensor system based on the Arduino architecture. The current/voltage sensing system was designed and built and used to collect measurements of welder voltage and current in real-time while welding beads with the RepRap 3D printers. The full bill of materials and electrical schematics are provided. The system was tested on two entry-level MIG welders: a Millermatic 140 and a Millermatic 190, both from Miller Electric. Voltage and current were measured while making stepwise adjustments to the manual voltage setting on the welder. Three conditions were tested while welding with steel and aluminum wire on steel substrates to assess the role of electrode material, shield gas, and welding velocity. The results are discussed and future work is outlined to improve low-cost GMAW 3D printing using the open-source sensor system.


## 2. Methods and Materials

### 2.1. Design

The electric schematics for the current-voltage sensor measurement system are shown in Figure1 and the circuits for input power protection, indication, and conditioning are shown in Figure 2. The complete bill of materials is shown in Appendix A ( in Supplementary Material available online at http://dx.doi.org/10.1155/2015/876714). As discussed below, both the current and voltage sensing circuitry are based on integrated circuits (IC) amplifiers. Since the current transducer used for current sensing already produces a small output voltage, the amplifier used for the current sensing circuitry is the well-established and low-cost LM741 [38] in a unity gain configuration [39] for use as a pre-ADC buffer. The voltage sensing circuitry is based on the more specific AD629 differential amplifier [40] since the welder’s output voltage cannot be assumed to be referenced to the ground on the current-voltage sensor measurement system. This differential amplifier is another inexpensive IC with a default gain of one and high common-mode voltage limits. This allows the welder ground to float well above the ground of the current-voltage sensor measurement system without damaging the IC. The rest of the system simply comprises Zener diodes for protection [39], voltage dividers, and smoothing/decoupling capacitors [41].Figure 1
Current and voltage sensing circuitry.Figure 2
Input power protection, indication, and conditioning.As can be seen in Figures1 and 2, the circuitry to measure the welder’s voltage and current is straightforward and fits on a circuit board area of approximately 8 sq. as shown in Figure 3.Figure 3
Completed circuit.As shown in Figure3, all components used are through hole; thus, if miniaturization is desired a new board can be designed with surface mount components to reduce the total board area. Three mounting holes (for size 4 screws) have been placed on the board; however, these were not used during testing since the board was held securely due to the welding cable running through the current transducer and the positioning of the board in the welder chassis. It should be noted that if these holes are used, nylon (or any other nonconductive material) washers should be used to prevent shorting any circuitry. These holes can be seen on the circuit board artwork given in Appendix D.The board requires a ±12 V supply for operation, which is attached to the circuitry through a 3-position (+12 V, ground, −12 V) screw terminal on the board. These terminals are labeled on the board itself for reference. The board is protected using 15 V Zener diodes on both rails in an attempt to make the board more robust to any large transients or user error. LED indicators are also present for visual verification that the voltage has been applied to the board.The current sensing circuitry relies on the use of an off-the-shelf current transducer, which outputs a small current proportional to the relatively large current running through its center; the welder cable inside the chassis was routed through the current transducer’s center. A 15 Ω resistor shunts this current to ground, creating a voltage, which can be directly measured. This voltage is buffered with a unity gain op-amp and is routed to an analog input on the Arduino via a screw terminal connector on the board as shown in Figure3.The welder voltage is connected to the board via a two-position screw terminal as shown in Figure3. The voltage sensing circuitry’s first stage is a simple voltage divider, reducing the welder’s relatively high output voltage down to a range the electronics and Arduino can tolerate. The scaled voltage from the voltage divider is buffered with a differential amplifier, from which it is routed to an analog input on the Arduino via a screw terminal connector on the board. Note that outputs of both the current sensing circuitry and voltage sensing circuitry are both clamped at 5.1 V using a Zener diode so that Arduino’s inputs are protected from large transients from the welder or sensing circuitry. Both signals are also smoothed with capacitors to eliminate high frequency noise.It should be noted that there are two separate ground terminals on the circuit board. During testing, it was found that connecting the ground of the Arduino to the second ground terminal on the board caused a ground loop and erratic behavior; thus, it is advised that only the ground from the ±12 V power supply is connected to the board.


### 2.2. Testing

The source code runs on an Arduino Uno, which was used as the data acquisition device, which is shown in AppendixB.The power measurement circuit was installed in the Millermatic 140 welder for this initial test. G-code producing a simple zig-zag weld bead with five-second pauses to permit adjustment of the manual welder voltage setting was written for these tests (g-code is provided in AppendixC). Aluminum wire, alloy 4043, 0.035 inches (0.899 mm) in diameter from Blue Demon (heat 34–2879, lot 43909), was used for the aluminum tests. Steel wire from Forney, ER70S-6 mild steel, 0.024 inches (0.61 mm) in diameter from heat number Y12060609, was used for the steel test. Mild steel 1/4-inch (6.35 mm) thick substrates that had been used previously for other tests were cleaned and reused for these tests. Wire speed for all the tests was set at position 70 on the welder’s manual wire speed adjustment for all tests. The distance between the substrate and the tip of the welding gun nozzle was fixed at 8 mm.The location of the sensors and 3D printing welder is shown in Figure4.Figure 4
Circuit installed in welder.One test was performed at a welding velocity of 70 mm/s without shield gas. Two more tests were performed with shield/cover gas, one at a velocity of 70 mm/s and one at 90 mm/s. The “instantaneous” voltage and current reported are the average of 250 individual samples collected once every few milliseconds, determined by the analog sample time of the microcontroller, or approximately 60 ms.The program performs ADC measurements in a loop. Because the execution path does not branch and the timing of every ADC measurement is equal, the sample number is directly proportional to the time. However, computing the exact time between samples is complex and it changes with every change to the code. It is therefore better to include a timestamp with every measurement, which will be incorporated in future versions of the firmware.Welder voltage was initially set at a level of two and was increased in single unit steps during each pause to a maximum level indicated by the arc becoming unstable. This was done to minimize the risk of damaging the welding gun.


## 2.1. Design

The electric schematics for the current-voltage sensor measurement system are shown in Figure1 and the circuits for input power protection, indication, and conditioning are shown in Figure 2. The complete bill of materials is shown in Appendix A ( in Supplementary Material available online at http://dx.doi.org/10.1155/2015/876714). As discussed below, both the current and voltage sensing circuitry are based on integrated circuits (IC) amplifiers. Since the current transducer used for current sensing already produces a small output voltage, the amplifier used for the current sensing circuitry is the well-established and low-cost LM741 [38] in a unity gain configuration [39] for use as a pre-ADC buffer. The voltage sensing circuitry is based on the more specific AD629 differential amplifier [40] since the welder’s output voltage cannot be assumed to be referenced to the ground on the current-voltage sensor measurement system. This differential amplifier is another inexpensive IC with a default gain of one and high common-mode voltage limits. This allows the welder ground to float well above the ground of the current-voltage sensor measurement system without damaging the IC. The rest of the system simply comprises Zener diodes for protection [39], voltage dividers, and smoothing/decoupling capacitors [41].Figure 1
Current and voltage sensing circuitry.Figure 2
Input power protection, indication, and conditioning.As can be seen in Figures1 and 2, the circuitry to measure the welder’s voltage and current is straightforward and fits on a circuit board area of approximately 8 sq. as shown in Figure 3.Figure 3
Completed circuit.As shown in Figure3, all components used are through hole; thus, if miniaturization is desired a new board can be designed with surface mount components to reduce the total board area. Three mounting holes (for size 4 screws) have been placed on the board; however, these were not used during testing since the board was held securely due to the welding cable running through the current transducer and the positioning of the board in the welder chassis. It should be noted that if these holes are used, nylon (or any other nonconductive material) washers should be used to prevent shorting any circuitry. These holes can be seen on the circuit board artwork given in Appendix D.The board requires a ±12 V supply for operation, which is attached to the circuitry through a 3-position (+12 V, ground, −12 V) screw terminal on the board. These terminals are labeled on the board itself for reference. The board is protected using 15 V Zener diodes on both rails in an attempt to make the board more robust to any large transients or user error. LED indicators are also present for visual verification that the voltage has been applied to the board.The current sensing circuitry relies on the use of an off-the-shelf current transducer, which outputs a small current proportional to the relatively large current running through its center; the welder cable inside the chassis was routed through the current transducer’s center. A 15 Ω resistor shunts this current to ground, creating a voltage, which can be directly measured. This voltage is buffered with a unity gain op-amp and is routed to an analog input on the Arduino via a screw terminal connector on the board as shown in Figure3.The welder voltage is connected to the board via a two-position screw terminal as shown in Figure3. The voltage sensing circuitry’s first stage is a simple voltage divider, reducing the welder’s relatively high output voltage down to a range the electronics and Arduino can tolerate. The scaled voltage from the voltage divider is buffered with a differential amplifier, from which it is routed to an analog input on the Arduino via a screw terminal connector on the board. Note that outputs of both the current sensing circuitry and voltage sensing circuitry are both clamped at 5.1 V using a Zener diode so that Arduino’s inputs are protected from large transients from the welder or sensing circuitry. Both signals are also smoothed with capacitors to eliminate high frequency noise.It should be noted that there are two separate ground terminals on the circuit board. During testing, it was found that connecting the ground of the Arduino to the second ground terminal on the board caused a ground loop and erratic behavior; thus, it is advised that only the ground from the ±12 V power supply is connected to the board.


## 2.2. Testing

The source code runs on an Arduino Uno, which was used as the data acquisition device, which is shown in AppendixB.The power measurement circuit was installed in the Millermatic 140 welder for this initial test. G-code producing a simple zig-zag weld bead with five-second pauses to permit adjustment of the manual welder voltage setting was written for these tests (g-code is provided in AppendixC). Aluminum wire, alloy 4043, 0.035 inches (0.899 mm) in diameter from Blue Demon (heat 34–2879, lot 43909), was used for the aluminum tests. Steel wire from Forney, ER70S-6 mild steel, 0.024 inches (0.61 mm) in diameter from heat number Y12060609, was used for the steel test. Mild steel 1/4-inch (6.35 mm) thick substrates that had been used previously for other tests were cleaned and reused for these tests. Wire speed for all the tests was set at position 70 on the welder’s manual wire speed adjustment for all tests. The distance between the substrate and the tip of the welding gun nozzle was fixed at 8 mm.The location of the sensors and 3D printing welder is shown in Figure4.Figure 4
Circuit installed in welder.One test was performed at a welding velocity of 70 mm/s without shield gas. Two more tests were performed with shield/cover gas, one at a velocity of 70 mm/s and one at 90 mm/s. The “instantaneous” voltage and current reported are the average of 250 individual samples collected once every few milliseconds, determined by the analog sample time of the microcontroller, or approximately 60 ms.The program performs ADC measurements in a loop. Because the execution path does not branch and the timing of every ADC measurement is equal, the sample number is directly proportional to the time. However, computing the exact time between samples is complex and it changes with every change to the code. It is therefore better to include a timestamp with every measurement, which will be incorporated in future versions of the firmware.Welder voltage was initially set at a level of two and was increased in single unit steps during each pause to a maximum level indicated by the arc becoming unstable. This was done to minimize the risk of damaging the welding gun.


## 3. Results and Discussion

The instantaneous voltage and current for the entire duration of each of the three tests are shown in Figures5, 6, and 7, respectively. Each plateau in the plots indicates a different voltage setting on the welder. At low voltage settings, significant noise is apparent, likely indicating that the welding velocity was too high for those settings, making it impossible to maintain a stable arc. In many cases, the voltage and current decay at the end of a bead segment rather than going directly to zero. This is likely due to the condition of the wire when the welder was shut off at the end of a segment. If the wire was in contact with the substrate, energy rapidly dissipated through a short circuit. If the wire was not in contact with the substrate, energy dissipated more slowly through the welder’s internal circuitry.Figure 5
Instantaneous voltage (a) and current (b) measured while welding with steel wire without shield gas at a welding velocity of 70 mm/s.
(a)
(b)Figure 6
Instantaneous voltage (a) and current (b) measured while welding with aluminum wire and 100% argon shield gas at a welding velocity of 70 mm/s.
(a)
(b)Figure 7
Instantaneous voltage (a) and current (b) measured while welding with aluminum wire and 100% argon shield gas at a welding velocity of 90 mm/s.
(a)
(b)Composite average voltage and current for each voltage setting and all tests are shown in Figure8. In all cases, the relationship between measured values and the voltage setting are approximately linear except at the higher voltage settings, when the slope starts to decrease. A comparison of the lines from the test with no gas, which could be conducted at higher voltage settings, to those with cover gas demonstrates that this change in slope is either a product of the process or a control strategy.Figure 8
Average voltage (a) and current (b) as a function of voltage setting for each of the tests performed.
(a)
(b)The average voltage is plotted against average current and is shown in Figure9. Figure 9 demonstrates that the relationship is linear as expected, further confirming proper operation of the power monitoring circuit. Welder voltage and current were found to be directly proportional to the welder voltage setting until high currents are reached, at which point the slope decreases. This is most likely due to the limitations of the welder at high currents as shown in Figure 8.Figure 9
Average voltage versus average current for the three tests.Finally, the GMAW 3D printing welder power monitoring circuit and software were refined to capture the instantaneous current and the voltage at a high welding current as a function of time as shown in Figure10.Figure 10
Instantaneous voltage (a) and current (b) measured as a function of time with a high current setting.
(a)
(b)The GMAW 3D printing welder power monitoring circuit performed as designed and represents significant savings from even the lowest cost commercial alternative. Commercial alternatives to the power monitoring circuit range in price from $3,500 to $7,000. These commercial versions offer higher sampling frequencies, up to 10 kHz, and custom analysis software. The open-source sensor circuit discussed in this paper costs $89 in components, including the milled printed circuit board, and required at most two hours to assemble. This results in savings of a factor of 39 to almost 70 if only the parts are considered and roughly a factor of at least 12 even if $100/hour labor for the assembly is included in the cost estimation. Such savings would be expected from free and open-source hardware developed for a scientific and engineering application [11]. This creates significant value [42] through the lateral scaling and replication of the sensor device. Finally, it should also be pointed out that these cost estimates are conservative as Arduino clones are available for as little as $3.00 and if two analog channels are converted a sample frequency of 4 kHz is possible. If it is later found to be important for this application, using one Arduino for each analog channel increases sample frequency to 16 kHz to outperform off-the-solutions for GMAW monitoring. The design could be used by any processing platform that has the ability to read two analog channels in the range of 0–5 V.Although the open-source sensor platform performed adequately for its intended purpose, the design offers several opportunities for future improvement. First, the board itself can be fabricated with a new functionality of RepRap systems that include PCB milling. Secondly, the data acquisition code lacked a time stamp making it hard to display a time scale with the samples. Future work with the monitor should include a time stamp with every measurement. The Arduino code could be moved into 3D printer control firmware, so it can use the measurements in a closed loop system to get better print quality, for example, arc length control. Future improvements on the current-voltage sensor measurement system include an electrical isolator to completely isolate the Arduino from the relatively noisy welding circuitry and ferrite clamps on long cable runs to attenuate electromagnetic interference from the welder arcs. These upgrades will make the circuitry more robust to noise and any ground bounce or ground loops within the circuitry.


## 4. Conclusions

The welder power sensor monitoring circuit performed as designed and enables in situ current, voltage, and power monitoring of a GMAW 3D printer. Welder voltage and current were found to be directly proportional to the welder voltage setting until high currents are reached, at which point the slope decreases. There is no significant difference in voltage setting versus power output when comparing a steel electrode to an aluminum electrode and welding velocity or whether shield gas is used or not. It is therefore possible to interpolate approximate voltage and current from a given setting without direct measurement. The open-source sensor circuit costs $89 in components, including the milled printed circuit board, and required at most two hours to assemble. This results in substantial savings compared to proprietary equipment. This creates significant potential value through the lateral scaling and replication of the sensor device in the 3D printing community. Since the hardware and software are open-source, both can be modified by end users to maximize their value for that user’s particular application. Likewise, capabilities to match or surpass any similar sensor system for GMAW can be added as needed with relative ease.



---

*Source: 876714-2015-08-30.xml*