Sei sulla pagina 1di 6

Development of 3D Printer with Integrated

Temperature Control System


N. Mir-Nasiri1, Md. Hazrat Ali1*, Syuhei Kurokawa2
1
School of Engineering, Nazarbayev University, Astana, Kazakhstan
2
School of Engineering, Kyushu University, Fukuoka, Japan
*Email: md.ali@nu.edu.kz

Abstract—This paper presents the conceptual design and stepper motor control. The microcontroller then convert the
implementation of a cost effective 3D prototyping machine which pulses into travelled distance by using equation (1).
encompasses the design of mechanical, electrical & electronics
systems as well as integrated Software in order to create a
workable prototype. The objective of this research is to design
and develop a machine which is controlled by a computer and
capable of producing 3D solid representation of a CAD model in
plastic via plastic extruder. A XYZ axes system is developed in
order to enable the machine to carry out the prototyping process
efficiently and effectively. A control system for the stepper
motors and heating actuator are also developed to satisfy the
precision requirement of this machine. The total system covers
the conceptual design, the development process and the
integration of the mechanical system and electrical and electronic
systems of 3D prototyping machine. Main focusing point of this
paper is to design and develop the suitable temperature control
Fig. 1. R2C2 Controller's Allegro A4988 stepper driver
system of 3D Rapid Prototyping Machine (RPM).

Keywords—ABS; RPM; extruder; filament; temperature


Figure 1 shows motor driver with other integrated circuits.
I. INTRODUCTION The R2C2 RepRap controller board is designed using an
LPC1752 ARM 32 bit microcontroller as shown in Figure 1
3D prototyping machines are widely used in order to which has the capabilities to operate at 100 MHz thus
develop a model before it is being manufactured. These types allowing the microcontroller to process information at a higher
of machines are usually controlled by Numerical Control rate compared to that of microcontrollers with 8 or 16 bit
(NC). Numerical Control is defined as an operation of architecture [2].
machine tools by means of specifically coded instructions or
Computer Numerical Control (CNC) programming language
to the machine control system [1]. Notable CNC
programming language such as G-code and M-code is widely
used to computerize an entire machining process or
automation process. These programming languages can be
used to define the position of the machine tools to move to, the
translation speed of the machine tools, the change of
machining tools and the dispensing of coolant and so on.
Fig. 2. EndStop switches for RepRap.
There are various types of rapid prototyping machines that are
available in the market. The technical points of some existing The R2C2 RepRap controller board allows the usage of micro-
systems are discussed below. switches as a work area boundary sensor as shown in Fig.2 .

A. R2C2 RepRap Controller Board B. MakerBot Replicator


R2C2 RepRap controller board is widely used in 3D Another type of 3D prototyping machine is MakerBot
prototyping machine. This controller drives the filament by Replicator. Figure 3 shows block diagram of PID controller
rotating the shaft of the motor. If the lead screw has a 1 mm used by the MakerBot Replicator’s controller board. From the
lead and the stepper motor requires 200 voltage pulses to MakerBot, the recommended settings for the Replicator’s PID
complete a single revolution. Thus, in order to achieve a travel controller is as stated in Table I. These parameters are
distance of 100 mm, 20000 voltage pulses is applied to the determined using Ziegler-Nichols tuning method [3].

The authors would like to express their gratitude to Nazarabyev University for
funding them to develop this system as a requirement of the capstone project.
During the frame design, the railing systems and XYZ
motion drivers are to put in consideration throughout the
design. A fully supported rail is chosen as the XY axes
supporting railing system. While on the Z axis, rod rail is
preferable for vertical supporting structures due to its simplify
installation and high efficiency during Z axis movement. High
precision in the alignment is needed for the rail during the
Fig. 3. Closed loop block diagram for temperature control. installation and lubrication of the railing system that will
eventually smoothen and ensure the printing precision. A fully
Table I. PID controller parameters for 3D printer (Replicator)
supported rod railing system is used for the railing system for
smooth and sturdy XY axes movements which will
compromise both printing precision and quality

C. Hewlett-Packard Design Jet 3D Printer


The HP Design Jet 3D printer is a 3D prototyping machine
developed by Hewlett-Packard for professional designers,
engineers or academic staff who requires shorter development
time of their prototype. This machine is based on similar
electronic system used in normal printer due to the similar
nature of the task accomplished in the both types of printer.
This type of 3D prototyping machines usually requires an
external system such a computer server to manage all the
machining programs and post-processing of CAD models via
Ethernet interface or the more common RS232 serial interface.
Computer Aided Design (CAM) software such as
INVENTORCAM or SOLIDCAM is used to do post
processing of the design model which encompasses the
process of simulating the machining process, optimizing the
tools used, and generation of the optimized tool path. The tool
path generated is then exported into G-code format and
uploaded into the corresponding machine’s controller to
Fig. 4. Conceptual design of 3D prototyping machine.
perform the actual prototyping process. The HP Design Jet 3D
printer uses a closed loop position control system to ensure the Figure 4 shows the overall conceptual design of the 3D
required precision is obtained, by coupling a high resolution prototyping machine with acceptable tolerances and sizes of
encoder onto the DC motor to provide the necessary position the parts.
feedback [4]. Using the closed loop dc motor configuration,
the machine can be designed to work with larger loads and III. SOFTWARE AND LOGIC DESIGN
higher operating speed without incurring higher machine cost.
Currently, the most common DC motor used in high precision A. Extruder Heater
positioning is the permanent magnet synchronous motor.

II. CONCEPTULA DESIGN OF THE SYSTEM


After referring to the information from the similar and
commercialized products which had been discussed in the
literature review, around 280 mm length, 280 mm width and
250mm height building envelope will be a fair working space
for the 3D prototyping machine which will be built in this
project. Thus, in order to develop a 3D printer with 280 x 280
x 250 mm building envelope, the frame or the whole
supporting body will have to reach an overall 800 mm to 1000
mm length and width of 500 mm to 600 mm height
considering the tolerance from others factors (HBP and Z-axis
moving area). Thus, from the estimated machine size, it is
possible to predict that the frame will be sturdy and stable
enough since the base is wide and the height is fairly stable for Fig. 5. Extruder heater.
the frame design.
The extruder heating block comprises of an aluminium
mounting block and a 40W heating element which is rated at
12V. Similar to the heat bed, the power dissipated by this
heating element is controlled by varying the duty cycle of the
PWM applied by the microcontroller. Since a 12VDC is
applied to this heating element, the control system for this
system uses an N-channel enhancement mode MOSFET to
control the power delivered as shown in Fig. 5. The IRF540
MOSFET will be used together with a 4N25S optical isolator
Fig. 6. Electrical analogy for the heat distribution component.
which will provide a gate voltage of 12V to the MOSFET
whenever a trigger signal is received from the microcontroller.
Based on Fig. 6, the heat distribution in an electronic
B. Electronics Heat Dissipation component is analogous to Ohm’s Law in which current
Heat dissipation of the electronic components is an represents heat dissipation, resistance represents thermal
essential aspect of this project to ensure the robustness of the resistance and potential difference represents temperature
system and prevent catastrophic failure of its subsystem. Heat difference. The following calculations assumes that the system
dissipation of the stepper motor drivers and the power operates under stagnant airflow conditions, the junction to
MOSFETs must be taken into consideration due to the long case thermal resistance, (RθJC) is 1.15 °C/W and the case to
operation period of a rapid prototyping machine by installing sink thermal resistance, (RθCS) is 0.5 °C/W. These estimations
properly sized heat sink as passive dissipater. can be obtained via the datasheet and should give a fairly
realistic prediction of the heat dissipation characteristics. The
C. Power MOSFETs Heat Dissipation heat sink used for this application has a thermal resistance of
Power MOSFETs dissipates a significant amount of heat 1.1 °C/W. However, 1.54 /W will be used to account for the
when switching or controlling a sizable current source due to spreading thermal resistance (40% raise due to point thermal
switching losses and internal resistance of the device. To heat source). Since the junction temperature is within the
prevent thermal damages, heat sinks are used to reduce the reasonable operating range, the heat sink used is appropriate
junction temperature to a manageable level as shown in Figure for this application.
6. Besides that, excessive heat alters the characteristics of
D. Heated Bed Platform
power MOSFETs which usually reduces the maximum current
output, the overall efficiency and the reliability. Figure 7 shows the heated bed platform of the 3D
The heat dissipation of a MOSFET is generally caused by prototyping machine. The heated bed platform is redesigned
two components as shown in equation (2): using a simple printed circuit board design. The copper
surface produces heat when current flow through the PCB.
However, the problem arises when the melted ABS does not
adhere to the copper surface causing the whole model to be
dragged along with the extruder leading to a prototype failure.
Several proposals were presented as a solution to the problem.
Placing an aluminium plate or other metallic materials on the
heated bed platform surface, the ABS adhering issue is still
present and does not solve the problem. Further testing
confirms our hypothesis that the ABS does not adhere
Equation (3) determines the overall power dissipation of properly to metallic surfaces. Initially, the aluminum plate was
the switching MOSFET at maximum load and accounts for the finally replaced by a piece of wood which did not solve the
switching losses where TJ hot is the maximum permitted die issue. Finally, an acrylic is used for the testing. The melted
junction temperature, Tspec is the temperature at which in on ABS is able to adhere firmly on the surface of the acrylic.
resistance is specified, CRSS is the reverse-transfer capacitance Unfortunately, the acrylic sheet deforms due to the high
and fSW is the switching frequency [5]. To determine the temperature of 90°C from the heated bed platform. There were
maximum heat dissipation, the assumed maximum current made several others attempts, such as using a thicker acrylic (1
cm thickness) sheet, a compact disc surface, and several other
load was selected 10A, the input voltage was selected 12V and
plastic elements. In addition, all of them failed to produce the
a switching frequency of 2 kHz. Other parameters of the
desirable effect. However, our finding shows that the ABS
equation are based on the IRF540 datasheet specifications. plastic adheres on surfaces which are of plastic elements.
Using the new findings, it was decided to tape a cheap vinyl
sticker, which is a type of plastic, on the heat bed surface. As a
result, the ABS plastic adheres fairly well to the vinyl layer
and increases the chances of a success. Unfortunately, after
several prototypes, the vinyl layer needs to be replac ed due to
its poor durability which results in tears on the vinyl sticker.
programs. During the design phase, meticulous attention has
been given in this aspect to reduce the likelihood of the
complete redesign of the entire software’s architecture.
Suitable programming language is incorporated to this
software design in order to realize the following features:

¾ Real time temperature monitoring


¾ Prototyping completion rate display
¾ Motion control
A. Temperature Control System
Based on the temperature profile of both extruder and heat
bed as shown in Figs. 8 and 9, ground noise induced by the
switching circuit of this system greatly affects the overall
Fig. 7. Heated bed platform.
performance of the temperature sensor. The ground noise of
the system is probably caused by the resistance of the ground
E. Extruder Mounting and Positiong
wire which carries more than 10 amperes of current which are
The extruder is mounted on two pieces of L-profile drawn by the heating systems and the 4 stepper motor drivers.
aluminium bar. The L-provides aluminium bar is tough and Besides that, the poor common rejection mode ratio of the
does not bend when exposed to heat or humidity over a long type-K thermocouple amplification circuit failed to isolate the
period of time. Since the 3D prototyping machine uses fused ground noise and the signal voltage. From Fig. 8, ground noise
deposition method, the material is melted and extruded out to leads to an increase of 15 °C from the steady state temperature
form the model layer by layer, thus no external forces were of 200 °C. A calibrated multimeter with thermocouple support
introduced that may cause bending on the Z axis structures as is used as an external measurement method to validate the
compared those found on CNC milling machine. Hence, the temperature readings.
two L-profile aluminium bar is sufficient enough to support
the extruder’s weight during the prototyping process. The tip
of the nozzle is required to be suspended at least 0.8mm from
the heat bed. This is to ensure the extruded ABS plastic is able
to adhere on the surface of the heated bed platform. Thus, an
infrared (IR) sensor is located on the Z axis to act as a position
sensor or boundary limit switch in this case. Whenever the IR
sensor received a signal, the Z axis will stop moving
indicating that it has reached the required height above the
surface of the heated bed platform. Any further movement
towards the heat bed platform will potentially damage the
heating surface and also the extrusion nozzle forces were
introduced that may cause bending on the Z axis structures as
compared those found on CNC milling machine. Hence, the
two L-profile aluminium bar is sufficient enough to support Fig. 8. Extruder temperature profile.
the extruder’s weight during the prototyping process.
F. Safety Considerations
A safety cage has been constructed to cover the 3D
prototyping machine in order to distance the users from the
heating elements during the prototyping process. This is to
ensure that users do not disrupt the machine when it is in the
prototyping process which could harm the users. Even though
the heat bed platform have a constant temperature of 90°C, it
is still relatively safe to touch the platform. However, the
extrusion nozzle which is maintained at a temperature of more
than 200°C is unsafe for the user to touch it. Hence, it is
appropriate to build a safety cage in order to promote safety
prototyping procedure.
Fig. 9. Heat bed temperature profile.
IV. DESIGN OF EXTRUDER CONTROL SYSTEM In order to measure the ground noise of the system, we have
Concurrent object-oriented programs are slightly more setup the oscilloscope as shown in Fig. 10 where the signal
difficult to design, implement and maintain than sequential probe is connected to the ground of the system and the probe
ground is connected to the ground of the power supply. This shown in Fig.12. From Fig. 13, ground noise induced by the
setup allows us to determine the overall signal noise induced heating control system has been ruled out. The 1-2 KHz
in the ground wires. control signal of the heating system does not introduce
significant noise to the system based on the FFT signal
analysis.

Fig. 10. Oscilloscope setup.

Figure 11 shows a peak signal noise of 40 mVRMS at


approximately 375 kHz on the thermocouple signal amplifier Fig. 13. Control signal waveform of the heating system.
circuit. This will severely affects the accuracy of the
temperature reading as the noise signal will be amplified From equations (7) and (8), the conclusion can be drawn
together with the thermocouple signal. that the stepper motor driver IC contributes to a significant
portion of the ground noise which has been affecting the
overall performance of the type K thermocouple amplifier
circuit. Fortunately, the effects of the ground noise are rather
consistent and predictable over the course of time. To
compensate for this problem the set point temperature has
been lowered by approximately 15 °C to achieve the required
temperature of 200 °C.
B. Heat Bed and Extruder Heater Control System
Set temperature Output temperature
Microcontroller PWM Heating
Heat Plate
Element

Fig. 11. Ground noise on thermocouple signal amplifier and the FFT analysis
of the sampled signal. ADC Amplifier Thermostat

Based on the Allegro A4985 datasheet which is also Fig. 14. Block diagram of the thermal control system.
shown in Fig. 12, the stepper driver IC’s internal chopper
circuit which is used to regulate the current drawn from the Closed loop control of the thermal system is required in
stepper motor. order maintain the optimum extrusion temperature of about
200ºC and a heat bed temperature of 100ºC. Figure 14 shows
the block diagram of the control system of this 3D rapid
prototyping machine. By utilizing equation (6) and the NIST
numerical model for thermocouples, a PID controller has been
developed to provide the best control for this system.

Fig. 12. Allegro A4985 switching characteristic and timing chart.

The internal PWM current control circuitry uses a one-shot


circuit (mono-stable multi-vibrator circuit configuration) to
control the duration of time that the DMOS FETs remain off.
The off-time, tOFF is determined by the RO SC terminal as
C. Linear Motion System commence prototyping their product in the shortest possible
This section will discuss on the mathematical aspects used time frame.
in developing the linear motion system. For the following
Table II. PID tuning parameters for Extruder Heater
equations (9) to (12), the linear distances are represented in
number of pulses and the linear speeds are represented in the
pulse rate.

VI. CONCLUSION

In conclusion, the development phase for the electronics


and control system for the 3D prototyping machine is
completed. In general, the electronics and software system in
this application have achieved the project objectives and goals.
The linear motion control system is an essential part of the
Based on various tests conducted on the developed rapid
system which allows the system to position the extruder at the prototyping machine, the mechanical system and the electrical
correct position and adjust the movement speed of each system worked as expected with respect to the CAD drawings
individual axis corresponding to the angle of motion and the and design. However, it is believed that the quality of
average movement speed. The pulse rate and number pulses to prototype created by the machine can be further improved by
reach a specific position at a suitable velocity can be using a material with a lower glass transition temperature.
calculated using axes finding formula. In addition, cumulative
errors caused by precision loss during the conversion from a VII. FUTURE WORK
floating point number to an integer should be tracked and
factored into the actual position. Precision loss is significant as To improve the functional requirement aspect, several
the system is highly repetitive which will lead to large major microcontroller firmware changes are required. The
deviation. current firmware varies the speed on each individual axis by
changing the timer compare to register of the built-in pulse
V. PERFORMANCE EVALUATION OF THE CONTROL PARAMETERS width modulation module in the PIC microcontroller. In order
to provide better control over each of this axis, the proposed
By simulating the block and apply PID optimization using new firmware should use time division based method in which
MATLAB’s SIMULINK toolbox as shown in Table II, we the microcontroller centralized all the controls of the axis
obtained the response as below. Integral windup issues due to using a single timer instead of decentralizing the control over
the saturation limits of the heat transfer function is also to the PWM module. For the non-functional requirement
included in the optimization by disabling the integral function aspect, a SD card module and a LCD module can be added to
until the process variable reaches the controllable region. the controller to create a standalone system without the need
for a PC or laptop connection. This will improve the usability
aspect of the developed system.

REFERENCES
[1] Smid, P., 2003. CNC Programming Handbook. 2nd ed. s.l.:Industrial
Press Inc.
[2] Team, R., 2010. CAM Toolchains. [Online],Available at:
http://reprap.org/wiki/Comparison_of_RepRap_Toolchains [Accessed
23 2 2012].
Fig.15. Temperature and thermocouple output voltage against time for
[3] Industries, M., 2012. MakerBot Thing-O-Matic 3D Printer Kit -
extruder heater.
MakerBot Industries.
Referring to Fig. 15, the thermal system has a settling [4] Suh, S.-H., Kang, S.-K., Chung, D.-H. & Stroud, I., 2008. Theory and
Design of CNC.
time of about 71 seconds or approximately 1.2 minutes with
[5] Design, E., 2002. Calculate Dissipation For MOSFETs In High-Power
an overshoot of 6.5%. For this application, overshoot of the Supplies. [Online] Available at:
control system is the least important aspect in comparison to http://electronicdesign.com/content/topic/calculate-dissipation-for-
the settling time due to the usability criteria. The system mosfets-in-high-power-su/catpath/power [Accessed 2 October 2012].
should heat up as fast as possible in order for users to

Potrebbero piacerti anche