Full Text 01
Full Text 01
KLAS BIRKESTÅL
SIMON SPÅNG
TRITA-ITM-EX- 2022:92
© 2022 Klas Birkestål and Simon Spång
Abstract | i
Abstract
One of the most fundamental manufacturing processes is the simple bending
of rods and wire. Although a simple process, when performed manually
it can become a burdensome and repetitive workload with scattered results.
Automation today has allowed these kind of processes to be automated,
although the machines can be complicated to program.
This report contains the construction and result of a machine capable of
feeding, bending in three dimensions and cutting steel wires with diameters
up to 1 mm. Furthermore the functions of the machine are managed with a
handheld controller where the operator has the ability to control and record
objects to be produced. The projects resulted in a wire bender that fulfills the
goals of the project. It was noticed that some large error in angles occurred
between the original model and the copies of it. Therefore the repeatability is
quite poor while the precision in the copies is considerably better.
Keywords
Cold processing, 3D shaping, bending, mechatronics
ii | Sammanfattning
Sammanfattning
En av de mest fundamentala tillverkningsmetoderna är bockning av stänger
och tråd. Även om det är en simpel process blir det ett betungande och repetitivt
arbete om det utförs manuellt med spridda resultat. Automation idag tillåter
dessa typer av processer att blir automatiserade, dock kan maskinerna vara
komplicerade att programmera.
Denna rapport behandlar konstruktion och resultat av en maskin kapabel
till att mata fram, bocka i tre dimensioner samt kapa ståltråd med en diameter
upp till 1 mm. Maskinens funktioner styrs med en handkontroll. Med den
kan operatören även spela in former för att sedan ha möjligheten tillåta
maskinen reproducera dessa. Projektet resulterade i en trådbockare som
uppfyller de mål som satts upp för projektet. Det noterades att det existerade
fel i bockningsvinklarna mellan orginalmodellen och dess kopior. Därav kan
repeterbarheten sägas vara dålig medan precisionen i kopiorna var betydligt
bättre.
Nyckelord
Kallbearbetning, 3D formning, bockning, mekatronik
Acknowledgments | iii
Acknowledgments
We would like to thank our supervisor Andreas Cronhjort for his continuous
support throughout the project. We would also like to thank the lab assistants
Algot Lindestam and Tore Malmström. Finally we want to extend our
gratidude to our fellow MF133X students for their feedback and inspiring
work.
Contents
1 Introduction 1
1.1 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.3 Goals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Research Methodology . . . . . . . . . . . . . . . . . . . . . 2
1.5 Delimitations . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Background 5
2.1 Actuators and control systems . . . . . . . . . . . . . . . . . 5
2.1.1 Servo motor . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.2 Stepper motor . . . . . . . . . . . . . . . . . . . . . . 5
2.1.3 Microcontroller . . . . . . . . . . . . . . . . . . . . . 6
2.2 Shaping Process . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.1 Bending . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.2 Springback . . . . . . . . . . . . . . . . . . . . . . . 7
2.2.3 Effects of bending on metal . . . . . . . . . . . . . . 7
2.3 Related work . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3.1 Bending machine from YouTube . . . . . . . . . . . . 8
2.3.2 Process-oriented Approach to an efficient Off-line
Programming of Industrial Robots . . . . . . . . . . . 8
3 Implementation 9
3.1 Usage of related work . . . . . . . . . . . . . . . . . . . . . . 9
3.2 Testing and measurement . . . . . . . . . . . . . . . . . . . . 9
3.3 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.3.1 Fastening of wire bobbin . . . . . . . . . . . . . . . . 11
3.3.2 Feeder . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3.3 Bender . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.3.4 Cutter . . . . . . . . . . . . . . . . . . . . . . . . . . 12
vi | Contents
3.3.5 Rotation . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.4 Electronics . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.4.1 Control module . . . . . . . . . . . . . . . . . . . . . 13
3.4.2 Stepper motor module . . . . . . . . . . . . . . . . . 14
3.4.3 DC motor module . . . . . . . . . . . . . . . . . . . 14
3.4.4 Power supply module . . . . . . . . . . . . . . . . . . 14
3.4.5 Handheld controller . . . . . . . . . . . . . . . . . . 14
3.5 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4 Results 17
4.1 Machinery . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.2 Bending test . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.3 Programming test . . . . . . . . . . . . . . . . . . . . . . . . 19
5 Discussion 21
5.1 Bending test analysis . . . . . . . . . . . . . . . . . . . . . . 21
5.2 Programming method . . . . . . . . . . . . . . . . . . . . . . 22
5.3 Reliability of the prototype . . . . . . . . . . . . . . . . . . . 22
References 25
I Measurements data 42
Contents | vii
J Code 44
viii | Contents
List of Figures | ix
List of Figures
List of Tables
DC Direct Current
I/O Input/Output
Chapter 1
Introduction
1.1 Background
Lots of automated manufacturing processes can be improved upon, both
related to the efficiency of the process and the simplicity of programming
the machine. The latter would, for instance, allow less specialized personnel
to operate the machinery and reduce the time it takes to change the machine
according to demands.
1.2 Problem
This project aims to achieve a machine with high repeatability as well as being
simple to program. Thus answering the following questions:
1.3 Goals
To achieve the desired functionality of the machine the following goals has
been defined:
1.5 Delimitations
The diameter of the wire the machine can handle has been limited to 1 mm
due to availability of motors that can handle high torque within the budget and
safety concerns. The budget had a limit of 500 SEK. The process time of the
machine will not be evaluated.
The machine aims to have a high level of automation but there are some
constraints in place. Replacing empty spools of wire or any jam needs to be
dealt with manually.
4 | Introduction
Background | 5
Chapter 2
Background
The following sections will present relevant information about electronics and
underlying theory.
5°, 2.5° and 1.8°. Stepper motors also have a holding torque which is the
maximum torque it can exert to maintain its position. Depending on how
the wires are connected to the motors windings a stepper motor can either be
bipolar or unipolar. Generally speaking, unipolar stepper motors are easier to
control but only half of the electromagnet is used when the motor is powered.
Therefore is a unipolar stepper motor not as efficient as a bipolar stepper motor.
[1]
2.1.3 Microcontroller
A Microcontroller Unit (MCU) is a system consisting of several interconnected
devices. These devices generally include a Central Processing Unit (CPU)
with associated memory devices, Input/Output (I/O) ports and several other
peripheral devices all integrated in a single semiconductor chip. This allows
the MCU to be programmed by an external device to perform a specific task.
[2]
2.2.1 Bending
The principle of bending is to apply a force perpendicular to the surface of an
element. When bending the element it will stretch on its outside while it will
be compressed on its inside. Therefore there is a limitation in bending radius
which is dependent on material and thickness of the material. [3] Today there
exists several methods for the bending process. Many of their purposes are to
bend sheet metal but some methods can also be used to bend rods and wires.
The most common machine type for bending of rods and wires is called folder
or bending brake which working principle is shown in the figure 2.1.[4]
A folder consists of three important components. The upper beam, the
lower beam and the bending beam. These are displayed as 2, 3 and 4 in figure
2.1. The upper and lower beams are holding the workpiece, displayed as 1,
while the bending beam has a circular motion around the center displayed as
5. This motion accomplishes the bending.[4]
Background | 7
2.2.2 Springback
When bending metals, springback occurs due to the plastic-elastic behavior
of the material itself. The elastic affect arises when unloading after shaping
and will make the finished shape different from the desired if no springback
compensation is used.
There are several factors that affect the springback. For example,
increasing tension of the material that will be bent or having a higher tool-
to-material thickness ratio will reduce the springback effect.[5]
Another factor that affect the springback is the radius of the bends. Bends
with larger radiuses will be more affected by springback compared to bends
with smaller bending radiuses. [6]
Chapter 3
Implementation
This chapter describes the ideas and components that were used to build and
test the wire bender.
program the same test model as in figure 3.1 with a handheld controller. For
information about the controller see section 3.4.5.
Implementation | 11
3.3 Hardware
The main construction idea was to create subsystems that fills the requirements
of a specific task and then join these subsystems together on a frame. The
general design idea can be seen in figure 3.2. 1 in the figure is the feeding
device which feeds wire along the x-axis. 2 in the figure is the device which
allows rotation of the tool device around the x-axis, as indicated by the red
arrows. The tool device consists of 3.1, 3.2 and 3.3 in the figure. 3.1 is a servo
which allows linear movement of the Direct Current (DC)-motor 3.2 into the
centre. This allows cutting of the wire. Finally 3.3 is the bending motor which
rotates around the Z-axle, as shown by the blue arrow. This allows bending of
the wire. The coming chapters describes how each subsystem were built and
implemented in the model.
3.3.2 Feeder
The feeder’s main purpose was to transfer the wire from the bobbin forward
to the bender. It consisted of a stepper motor with a drive wheel and a spring-
loaded ball bearing that made sure the wire were put in the desired position.
The mountings were 3D-printed.
3.3.3 Bender
The bender consisted of a stepper motor mounted close to the end of the nozzle.
On the stepper motor’s axis a tool was mounted to be able to deform the steel
wire in the desired direction. The tool consisted of a steel rod attached to an
3D-printed holder connected to the stepper motor.
3.3.4 Cutter
To accomplish the cutting of the steel wire a DC-motor equipped with a cutting
disc was used. The disc was mounted on a modified M3 screw and was held
in place with two nuts, one for keeping the disc in position and the other one
to lock the first nut. The M3 screw was consecutively mounted on the motor’s
axis.
The motor required the possibility to move to avoid colliding with the
wire or the bender. Therefore it was placed on a rack and slide rail which
made it possible to transfer it sideways. The motion sideways was created
by implementing a servo motor with a gear mounted to it. Together with the
bender these form the tool device.
3.3.5 Rotation
As described under goals the possibility to shape the wire in three dimensions
was desired. This was performed by mounting the tool device on a brass tube.
The tube was placed in two ball bearings. By implementing a stepper motor
and a gearbox with primary gear on the stepper motor and the secondary
gear mounted on the brass tube the rotation of the tool device was achieved
and therefore the possibility to bend horizontal, vertical and all the angles in
between. When using the feeder as a complement there is a possibility to shape
the wire in three dimensions.
Implementation | 13
3.4 Electronics
In the following chapter the electronics implemented will be presented.
Generally, electronics have been made in modules and then interconnected to
achieve the desired function. Every module have been soldered by hand and
designed in the program KiCad. Relevant circuit diagrams for each module
can be found in appendix A through D. An overview how the modules are
connected can be seen in figure 3.3
subsystems and then reproduce several copies of it. The controller consists
of two levers and three buttons. The levers controls the rotations of the tool
device and the bender itself in both directions. The three buttons controls
the feeding, cutting and recording of the processes. To minimize the required
wires between the controller and control module the controller has an 8 to 3
encoder inside of it. This results in 2 power supply wires and 3 signal wires
instead of 7 signal wires that would have been required otherwise. Simply, the
controller outputs a binary number between 000 and 111 depending on what
button is being pressed. Although the 8 to 3 encoder requires an inverted input,
thus two hex inverters were used. Datasheet for the encoder can be found in
appendix H and a complete circuit diagram of the controller can be found in
appendix E.
3.5 Software
To be able to regulate the bender, the Arduino Uno was programmed through
Arduino IDE. With the controller as an input, the function of the machinery can
be described as the flowchart in figure 3.4 and the source code can be found
in appendix J . The program begins with a reset of the position for the tool
device. This is done by reading the signals of several micro switches mounted
on the gear and tool device. When done, the machine will wait for a signal
from the controller.
If the record button has not been activated, the actions will be performed
without being recorded. When the record button is activated, the actions will
be executed and recorded. The recording is accomplished by saving the value
of the specific action in a list, and if needed, the duration of it, in another list.
When the recording is finished and the button to stop the recording is
activated the position will be restored and the replay of the sequence will
begin. The replay is a loop between reading the saved values in the lists and
executing them. If the stop button is pressed during replay it will finish the
initiated sequence and then wait for a new input from the controller.
16 | Implementation
Chapter 4
Results
In this chapter, the results from the construction and the tests will be presented.
For an analysis and evaluation of the results, see chapter 5.
4.1 Machinery
The work presented in chapter 3 resulted in a machine able to bend a steel wire
of 1 mm in 3 dimensions. The machine is also able to cut the wire and can be
programmed using a handheld controller. Thus achieving the goals presented
in 1.3. The final assembly of the machinery can be seen in figure 4.1
In figure 4.2 a scatter plot of the measured angles can be seen. The dots
represents the measured angles of the copies and the dot with a red circle
around it represents the measured angles of the original model.
Results | 19
Two of the test subjects had a technical background while one had no
technical background. All three were able to produce the test piece by
themselves after a brief instruction.
Discussion | 21
Chapter 5
Discussion
In this chapter the results of the project will be discussed and analysed.
Chapter 6
6.1 Conclusions
Concluding the project described in this report, the following conclusions can
be drawn:
References
[1] Scarpino, Motors for Makers: A Guide to Steppers, Servos, and Other
Electrical Machines. Indianapolis, USA: Que, 2015. ISBN 978-0-134-
03283-2 [Pages 5 and 6.]
Appendix A
Appendix B
Appendix C
Appendix D
Appendix E
Appendix F
ATmega48PA/88PA/168PA/328P
28.2 DC Characteristics
313
8161C–AVR–05/09
36 | L7805 Data sheet
L7805 Data sheet | 37
Appendix G
L78xx - L78xxC
L78xxAB - L78xxAC
Features
■ Output current up to 1.5 A
■ Output voltages of 5; 6; 8; 8.5; 9; 12; 15; 18; 24
V
■ Thermal overload protection
■ Short circuit protection
■ Output transition SOA protection TO-220 TO-220FP
■ 2 % output voltage tolerance (A version)
■ Guaranteed in extended temperature range (A
version)
Description
The L78xx series of three-terminal positive TO-3 DPAK D²PAK
regulators is available in TO-220, TO-220FP, TO-
3, D²PAK and DPAK packages and several fixed
output voltages, making it useful in a wide range
of applications. These regulators can provide
local on-card regulation, eliminating the
distribution problems associated with single point
regulation. Each type employs internal current
limiting, thermal shut-down and safe area
protection, making it essentially indestructible. If
adequate heat sinking is provided, they can
deliver over 1 A output current. Although designed
primarily as fixed voltage regulators, these
devices can be used with external components to
obtain adjustable voltage and currents.
3 Maximum ratings
for VO= 5 to 18 V 35
VI DC input voltage V
for VO= 20, 24 V 40
IO Output current Internally limited
PD Power dissipation Internally limited
TSTG Storage temperature range -65 to 150 °C
for L78xx -55 to 150
TOP Operating junction temperature range for L78xxC, L78xxAC 0 to 125 °C
for L78xxAB -40 to 125
Note: Absolute maximum ratings are those values beyond which damage to the device may occur.
Functional operation under these condition is not implied.
Appendix H
SCLS109G − MARCH 1984 − REVISED APRIL 2004
EO
5
4
A0
0
GND
NC
NC − No internal connection
ORDERING INFORMATION
ORDERABLE TOP-SIDE
TA PACKAGE†
PART NUMBER MARKING
PDIP − N Tube of 25 SN74HC148N SN74HC148N
Tube of 40 SN74HC148D
SOIC − D Reel of 2500 SN74HC148DR HC148
−40°C to 85°C
Reel of 250 SN74HC148DT
SOIC − DW Reel of 2000 SN74HC148DWR HC148
SOP − NS Reel of 2000 SN74HC148NSR HC148
CDIP − J Tube of 25 SNJ54HC148J SNJ54HC148J
−55°C
−55 125°C
C to 125 C CFP − W Tube of 150 SNJ54HC148W SNJ54HC148W
LCCC − FK Tube of 55 SNJ54HC148FK SNJ54HC148FK
† Package drawings, standard packing quantities, thermal data, symbolization, and PCB design guidelines are
available at www.ti.com/sc/package.
Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of
Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.
! "#$ ! %#&'" ($) Copyright 2004, Texas Instruments Incorporated
(#"! " !%$""! %$ *$ $! $+! !#$! %(#"! "%' / 0 '' %$$! $ $!$(
!(( ,-) (#" %"$!!. ($! $"$!!'- "'#($ #'$!! *$,!$ $() '' *$ %(#"! %(#"
$!. '' %$$!) %"$!!. ($! $"$!!'- "'#($ $!. '' %$$!)
SCLS109G − MARCH 1984 − REVISED APRIL 2004
FUNCTION TABLE
INPUTS OUTPUTS
EI 0 1 2 3 4 5 6 7 A2 A1 A0 GS EO
H X X X X X X X X H H H H H
L H H H H H H H H H H H H L
L X X X X X X X L L L L L H
L X X X X X X L H L L H L H
L X X X X X L H H L H L L H
L X X X X L H H H L H H L H
L X X X L H H H H H L L L H
L X X L H H H H H H L H L H
L X L H H H H H H H H L L H
L L H H H H H H H H H H L H
Appendix I
Measurements data
Appendix J
Code
46 | Code
Code | 47
48 | Code
Code | 49
50 | Code
Code | 51
52 | Code
Code | 53
54 | Code
Code | 55
56 | Code
TRITA-ITM-EX- 2022:92
www.kth.se