Beruflich Dokumente
Kultur Dokumente
BACHELOR OF ENGINEERING
IN
Name USN
ANIL CHOUDARY 4VM15EE005
JAGRUTH S J 4VM15EE032
PREETHAM S P 4VM16EE432
TEJAS M 4VM16EE445
CERTIFICATE
Certified that the project work entitled “3 AXIS ENGRAVING AND PCB MILLING” is a
bonafide work carried out by ANIL CHOUDARY (4VM15EE005), JAGRUTH S J
(4VM15EE032), PREETHAM S P (4VM16EE432), TEJAS M (4VM16EE445), in the
department of Electrical and Electronics from VIDYA VIKAS INSTITUTE OF ENGINEERING
AND TECHNOLOGY submitted in partial fulfillment for the award of Bachelor of Engineering
in Electrical and Electronics Engineering prescribed by the Visveswaraya Technological
University, Belagavi during the year 2018-19.
It is certified that all suggestions recommended for Internal Evaluation have been incorporated in
the report deposited in the departmental library. The project report has been approved as it
satisfies the academic requirements with respect to project work prescribed for the said degree.
External Viva
Name of the examiners Signature with date
1.
2.
ACKNOWLEDGEMENT
The Satisfaction and Euphoria that Accompanies the successful completion of seminar would be
incomplete without the mention of the people who made it possible with their guidance and
blessings, whose constant encouragement crowned my effort with success.
We consider our privilege to have studied in Vidya Vikas Institute of Engineering and
Technology, Mysuru. We are extremely thankful to our respectable Chairman Sri Vasu for his
all-time support and facility provided.
We wish to express our sincere and profound gratitude to our beloved Secretary Sri Kaveesh V
Gowda for his encouragement and continuous support.
We are grateful to our Principal Dr. Ravishankar M for providing constant support and guiding
us to reach the goal.
We owe a great sense of gratitude to our beloved Head of the Department Dr. Surekha Manoj for
providing excellent academic environment which has nurtured our practical skills. We feel to
express our indebtedness and deep sense of gratitude for the valuable guidance and kind
supervision given to us throughout the course which shaped the present work as it shows.
We express our sincere thanks to all the Teaching and Non-teaching staff of Department of
Electrical and Electronics Engineering, for their kind and constant support throughout the
academic Journey.
Last but not the least our parents are also an important inspiration to us. So with due regards, we
express our gratitude to them.
We thank almighty for providing us with everything that we required in completing this work.
i
ABSTRACT
CNC stands for Computer Numeric Control and refers to machine which is controlled by
a computer. By controlling a CNC machine through PC the user is able to convert the CAM
drawing into G-Code which is readable by CNC machine and produce a physical copy of the
designed item. CNC machines are able to produce products which are complex and with high
accuracy. The ability to wirelessly monitor and control the operation of the machine has become
major factor to increase productivity and profitability as it leads to decrease in machine
downtime, service and personnel training costs. The modern trend of manufacturing is
decentralized manufacturing process. Even though PCBs can be manufactured with high
accuracy it was not economical to adopt. Inspired from this, the idea is to develop a low cost
CNC machine which is capable of producing PCB with high precision and also which has the
function to wirelessly monitor and control the operation.
This demonstrates hardware and software which are used to implement PCB CNC
machine which is capable of engraving, drilling and cutting. The system consists of a raspberry
pi which is interfaced with a Atmega328p microcontroller based Arduino board which is loaded
with grbl firmware, three NEMA 17 stepper motors for 3 axis X, Y and Z, three A4988 stepper
motor drivers which are used for driving the stepper motor as per the command received by
Arduino, a DC 775 spindle motor which is capable of engraving, drilling and cutting a PCB, the
raspberry pi acts as HMI which receives G-Code from PC, Tablet or Phone wirelessly and sends
the data to Arduino. The stepper motor driver receives the signals from Arduino to drive stepper
motors as per the G-Code.
ii
CONTENT
Abstract i
Acknowledgement ii
Contents iii
List of Figures iv
CHAPTER 1: INTRODUCTION
1.1 Prelude 1
1.2 Problem statement 2
1.3 Objectives 2
CHAPTER 2: LITERATURE SURVEY
2.1 Review of Previous Work 3
CHAPTER 3: COMPONENTS USED
3.1 Arduino Uno 4
3.11 Introduction 4
3.12 Hardware 6
3.13 Pin Diagram 7
3.14 General Specifications 9
3.15 Applications of Arduino 9
3.2 Arduino Nano CNC Sheild
3.21 Introduction 9
3.22 Pin Layout 10
3.23 Hardware Installation 11
3.24 Software Installation 11
3.3 NEMA 17 Stepper motor
3.31 Introduction 12
3.32 Working 12
3.33 General Specification 13
3.4 Stepper motor driver (A4988)
3.41 Introduction 14
3.42 Pin-Out Information 16
3.43 Features 17
iii
3.5 Spindle
3.51 Introduction
3.52 Low speed spindles 17
3.53 High speed spindles 17
3.54 Routers 17
3.55 Rotary Tools 18
3.56 General specification 18
3.6 SMPS(24V,5A) 20
3.61 Introduction
3.62 Switch Mode power supply working principle 20
3.63 General specification 21
3.7 Software used 25
25
CHAPTER 4: METHODOLOGY
4.1 Structure design 26
4.2 Mechanical Design 27
4.3 Electronic Design 27
4.4 Block Diagram 28
4.5 G-Code 28
4.6 GRBL controller 31
4.7 GRBL settings 33
CHAPTER 5: ADVANTAGES AND APPLICATIONS
5.1 Advantages 36
5.2 Application 36
CHAPTER 6: RESULT AND COMPARISON
6.1 Result 37
6.2 Comparison 37
CHAPTER 7: CONCLUSION AND FUTURE SCOPE
7.1 Conclusion 38
7.2 Future scope 38
REFERENCES
iii
LIST OF FIGURES
Sl No Figures Page No
3.1 Arduino Uno Board 5
3.2 Pin diagram of Arduino Uno Board 7
3.3 Arduino Uno CNC Shield Board 10
3.4 Micro-stepping jumper location before inserting A4988 10
3.5 Stepper motor wiring diagram 13
3.6 Size and Physical dimension of the NEMA 17 Stepper Motor 14
3.7 NEMA 17 Stepper Motor 14
3.8 Stepper Motor Driver(A4988) 15
3.9 A4988 Stepper driver Pin Out 16
3.10 Wecheer WE248 Rotary tool spindle 18
3.11 Proxxon Micromot 5/E Rotary tool spindle 19
3.12 Proxxon Micromot IBS/E Rotary tool spindle 19
3.13 Switch mode power supply 20
3.14 DC to DC converter SMPS 22
3.15 AC to DC converter SMPS 27
3.16 Fly-Back converter SMPS 23
3.17 Forward converting type SMPS 24
4.1 Structure of CNC machine 26
4.2 CNC machine viewed from top left corner 27
4.3 Block diagram of wireless controller system 28
4.4 Universal G-Code sender 31
4.5 GRBL overview 33
4,6 Universal G-Code sender Main screen 33
iv
3Xs ENGRAVING AND MILLING OF PCB
CHAPTER 1
INTRODUCTION
1.1 Prelude
Recent years have seen dramatic progress in the performance of electronic devices such
as mobile phones, notebook personal computers (PCs), and tablet devices. This
technology revolution wouldn’t have happened without the major use of the printed
circuit board (PCB) which provided the ability to achieve higher densities and multi-
layered structures. One of the ways of enhancing this progress is through the
development of the manufacturing methods for PCBs .The PCB used in electronic
components are getting more complex and with thinner tracks. There are many ways to
produce these boards and one of them is through electromechanical corrosion, but it
does not produce good results. A better process is with milling and a Computer
Numerical Control (CNC) machine. The operation of the electronic circuit is based on
the flow of the electrical current through specific paths from the source to the pins of
the electronic components. This path will be milled and the holes for the component
pins will be drilled by CNC machines. There is also another method called
photochemical method which uses ferric chloride compound to etch different layers of
the board in order to clear the paths for the current but the result of recent analysis
indicates that the ferric chloride induces significantly high levels of risk to human
health. The commercially available CNC machine controlling system is very
sophisticated and closed to specific low level machine language which makes it very
expensive.
CNC machines are able to produce products which are complex and with high
accuracy. The ability to wirelessly monitor and control the operation of the machine
1.3 Objective
• To develop a low cost automatic mini CNC machine for PCB drawing and
drilling. This system reduces the cost of machine and increases the
flexibility
• To add wireless connectivity through the use of Raspberry PI
CHAPTER 2
LITERATURE SURVEY
In paper [1] the authors Kajal J. Madekar, Kranti R. Nanaware Pooja R. Phadtare and
Vikas S. Mane proposes a method using microcontroller atmega328 which is interfaced to
PC with the help of FTDI module and interfaces Easy Driver which is used to drive the
stepper motor, using this method the author designs a CNC drawing machine which uses
a sketch pen to draw on the PCB board and the data to draw is given programmatically
i.e. hardcoded in program in binary format.
In paper [2] the authors Rodrigo Basniak, and Márcio Fontana Catapan conducts a market
research to find out the customer requirements and based on this data the author compares
several of existing PCB CNC milling machine and comes to a conclusion that existing
CNC machines are expensive.
In paper [3] Dr.B. Jayachandraiah, O. Vamsi Krishna, P. Abdullah Khan and R. Ananda
Reddy provides the idea to develop the low cost Router system which is capable of 3 axes
simultaneous interpolated. The low cost in prototyping is achieved by using Arduino
board and interfacing it PC to make a microcontroller based CNC machine.
In paper [4] the model ETS-PCBMATE-300 is a PCB prototyping machine which works
on G-Code, the drawback of this machine is that it needs two supporting softwares which
are used for the conversion process and the two softwares by themselves are expensive
which makes the overall cost of the machine even more expensive which limits its access
few people.
CHAPTER 3
COMPONENTS USED
Arduino is an open source, computer hardware and software company, project, and
user community that designs manufactures microcontroller kits for building digital
devices and interactive objects that can sense and control objects in the physical
word. The project’s products are distributed as open source hardware and software,
which are licensed under the GNU Lesser general public license (LGPL) or the GNU
General public license (GPL), permitting the manufacture of arduino boards and
software distribution by anyone. Arduino boards are available commercially in
preassembled form, or as do-it-yourself kits.
Arduino board designs use a variety of microprocessor and controllers. The boards
are equipped with sets of digital and analog I/O pins that may be interfaced to various
expansion boards (shields) and other circuits. The boards feature serial
communication interfaces, including universal serial bus (USB) on some models,
which are also used for loading programs from personal computers. The
microcontrollers are typically programmed using a dialect of features from the
programming languages C and C++. In addition to using traditional compiler tool
chains, the arduino project provides an integrated development environment (IDE)
based on the processing language project.
The arduino project started in 2003 as a program for students at the Interaction
Design Institute Ivrea in Ivrea, Italy, aiming to provide a low-cost and easy way for
novices and professionals to create devices that interact with their environment using
sensors and actuators. Common example of such devices intended for beginner
hobbyists include simple robots, and thermostats, and motion detectors.
The name arduino comes from a bar in Ivrea, Italy, where some of the founders of the
project used to meet. The bar was named after arduino of Ivrea, who was the
margrave of the March of Ivrea and King of Italy from 1002 to 1014.
The origin of the projects started at the Interaction Design Institute Ivrea (IDII) in Ivrea,
Italy. At that time, the students used a BASIC stamp microcontroller at a cost of $100, a
considerable expense for many students. In 2003, Colombian student Hernando
Barragan created the development platform wiring as a master’s thesis project at IDII,
under the supervision of Massimo Banzi and Casey Reas, who are known for work on
the processing language. The project goal was to create simple, low cost tools for
creating digital projects by non-engineers. The wiring platform Consisted of a Printed
Circuit Board (PCB) with an Atmega168 microcontroller, an IDE based on processing
and library functions to easily program the microcontroller.
In 2003, Massimo Banzi, With David Mellis, another IDII student, and David
cuartielles, added support for the cheaper ATmega8 microcontroller to wiring. But
instead of continuing the work on wiring, they copied the wiring source code and
renamed it as a separate project, called Arduino. The initial arduino core team consisted
of Massimo Banzi, David cuartielles, Tom Igoe, Gianluca Martino, and David Millis,
but barragan was not invented to participate.
3.12 Hardware
Arduino is open source hardware. The hardware reference designs are distributed Under a
Creative Common Attribution Share-Alike 2.5 license and are available on the arduino
website. Layout and production file for some versions of the hardware are also available.
The source code for the IDE is released under the GNU General Public License, version
2. Nevertheless, an official Bill of Materials of Arduino boards has never been released
by arduino staff.
Although the hardware and software designs are freely available under copy left
licenses, the developers have requested that the name arduino be exclusive to the
official product and not be used for derived works without permission. The official
policy document on use of the arduino name emphasizes that the project is open to
incorporating work by others into the official product. Several Arduino- compatible
products commercially released have avoided the project name by using various names
ending in –duino.
An early arduino board with an RS-232 serial interface (upper left) and an Atmel
ATmega8 microcontroller chip (black, lower right); the 14 digital I/O pins are at the
top, the 6 analog input pins at the lower right, and the power connector at the lower left.
ATmega168, ATmega328, ATmega1280, ATmega2560) with varying amounts of flash
memory, pins, and features. The 32-bit arduino Due, based on the Atmel SAM3X8E
was introduced in 2012. The boards use single or double-row pins on female headers
that facilitate connections for programming and incorporation into other circuits. These
may connect with add-on modules termed shields. Multiple, and possibly stacked
shields may be individually addressable via an serial bus. Most boards include a 5V
linear regulator and a 16 MHz crystal oscillator or ceramic resonator. Some designs,
such as the Lily Pad, run at 8MHz and dispense with the onboard voltage regulator due
to specific form-factor restrictions.
Power Pins
● Vin: This pin can be used to power the arduino board from the external power
source, like AC mains power supply. You c an supply voltage through this
pin, or, if supplying voltage via the power jack, access it through this pin.
● 5V: The regulated power supply used to power the microcontroller and other
components on the board. This can come either from Vin via an on-board
regulator, or be supplied by USB or another regulated 5v supply.
● GND: There are several ground pins on arduino, any of which can be used to
ground your circuit.
Analog Pins
The arduino UNO board has 6 analog input pins A0 through A5. These pins can
read the signals from an analog sensor like the humidity sensor or temperature sensor
and convert it into a digital value that can be read by the microprocessor.
Digital Pins
The arduino board has 14 digital I/O pins (0 to 13) (of which 6 pins provided for
PWM (pulse width modulation) output. These pins can be configured to work as
input digital pins to read logic values (0 or 1) or as digital output pins to drive
different modules like LEDs, relays, etc. the pins labeled “~” can be used to generate
PWM.
Serial: 0 (RX) and 1(TX): used to receive (RX) and transmit (TX) TTL
serial data. On the arduino diecimilla, these pins are connected to the
corresponding pins of the FTDI USB-to-TTL serial chip. On the arduino BT,
they are connected to the corresponding pins of the WT11 blurtooth module.
On the arduino mini and Lily Pad arduino, they are intended for use with an
external TTL serial module (e.g. the mini-USB adapter).
External Interrupts: 2 and 3: these pins can be configured to differ an
interrupt on a low value, a rising or falling edge, or a change in value.
● PWM: 3, 5, 6,9,10 and 11: provide 8-bit PWM output with the analog write
() function. On board with an ATmega8, PWM output is available only on
pins 9, 10 and 11.
● BT Reset: 7: (arduino BT-only) connected to the reset line of the
Bluetoothmodule.
3.21 Introduction
The Arduino CNC Shield makes it easy to get your CNC projects up and running in a
few hours. It uses open source firmware on Arduino to control 4 stepper motors using
4 pieces of A4988 Stepper Motor driver breakout board, with this shield and Arduino
Uno/Mega; you can build all kinds of robotics, linear motion project or projects
including CNC routers, laser cutters and even pick & place machines.
CNC shield V3.0 can be used as drive expansion board for engraving machine, 3D
printer and other devices. There’re 4 slots in the board for stepper motor drive
modules, can drive 4 stepper motors, and each step stepper motor only need two I/O
port, that is to say, 6 I/O ports can quite well to manage 3 stepper motor
In addition to have all the GRBL function pin, Arduino CNC shield v3.0 also have
some additional pins to achieve more features.
Extra pins:
3.4 Limit switch pins have been doubled up so that each axis has a “Top/+” and
“Bottom/-“. This makes it easier to install two limit switches for each axis. (for use
with a normally open switch)
EStop - These pins can be connected to an emergency stop switch. This does
the same as the RESET button on the Arduino board.
Spindle and coolant control has their own pins.
External GRBL command pins have been broken out allowing you to add
buttons for pause/hold, resume and abort.
Serial pins (D0-1) and (A4-5) have their own break out pins for future expansions.
I2C can later be implemented by software to control things like spindle speed or
heat control.
Version 3.00 of the board added jumpers to configure the 4th axis (clone the
other axis’s or run from pin D12-13), comms header (RX+TX, I2C) and a
stepper control header (all pins needed to run 4 steppers).
Connect the components according to the actual situations, such as motors, limit
switches, lasers, motor drives and so on.
When installing the hardware, please pay attention to the following points:
1) Incorrect connection of +/- may destroy your devices, even cause fire.
2) Please make sure to insert drivers in correct direction, or it may burn the main
board and drivers, specific installation direction please integrating Arduino
CNC shield V3.0, refer to the data sheet of motor drive
3) The input voltage of Arduino CNC shield V3.0 is DC 12V-36V, do not input
more than 36V voltage. Although the input voltage supports power supplies
upto 36V, does not mean that you can use 36 V under any circumstances,
because some motor drivers supply voltage (VMOT) is less than 36V volts
such as A4988, its supply voltage is 8- 34V, if you use 36V power supply, it
will burn the motor driver. So when you select the power supply, please refer
to the corresponding motor driver’s data sheet.
UNO.
2) Install GRBL Controller: Download and install grbl controller, open it, and
interface it. Use the USB cable to connect your PC and Arduino UNO, select
the port and select the baud rate as 9600. Click “open”, if it connected,
“open” will be “Close/Reset”, the background is red. Click “choose file” to
choose the graphy you want to engrave, after selected click “begin” to
engrave
3.32 Working
The motor has six wires, connected to two split windings as is common for unipolar
stepper motors. In use, the centre taps of the windings are typically wired to the
positive supply, and the two ends of each winding are alternately grounded through a
drive circuit to reverse the direction of the field provided by that winding. The motor
wiring diagram also illustrates the order of the stator poles in the motor: A, B, A’, B’.
This is the order in which they must be energized to cause the motor to step in a
specified direction (clockwise or counterclockwise).
The motor is 1.7” square, 1.5” long, with a 5 mm shaft. Mounting holes take 3
mm dia, 0.5 mm pitch metric screws. Four screws are installed in the back side of the
motor. Two diagonally mounted screws are 40 mm long and extended 5.5 mm
through the front side and two are 30 mm long and leave a 4.5 mm deep threaded
socket in the front.
Figure 3.5 Stepper Motor Wiring Diagram Showing Phases and Wire Colors
Figure 3.6 : Size and Physical Dimensions of the NEMA 17 Stepper Motor
3.41 Introduction
A4988 is a complete micro stepping motor driver with built-in translator for easy
operation. The product is available in full, half, 1/4, 1/8, and 1/16 step mode to
operate bipolar stepper motors of an output drive capability of up to 35V and +/-
2A. A4988 includes a fixed off-time current regulator; the regulator can operate in
slow or mixed decay modes. Convertor is easy to implement key for A4988. Just
enter a pulse in the “step” input drives the motor to produce micro-step. Without the
need for phase sequence tables, high frequency control lines, or complex interfaces to
program. A4988 interface is ideal for complex microprocessor is unavailable or
overloaded applications.
In the micro-step operation, the chopper control A4988 automatically selects within
the current decay mode, the device is initially set to a fixed part of the rapid decay in
downtime and slow decay for the remainder of downtime. Mixed decay current
control scheme results in reduced audible motor noise, increased step accuracy, and
reduced power consumption. Internal synchronous rectification control circuitry
provides to improve the pulse - width modulation (PWM) operation power
consumption. Internal circuit protection includes: thermal shutdown with hysteresis,
under voltage lockout (UVLO) and crossover current protection. No need special
power sequencing.
This product is a carrier board or breakout board for Allegro’s A4988 DMOS
Microstepping Driver with Translator and Overcurrent Protection. This stepper motor
driver lets you control one bipolar stepper motor at up to 2 A output current per
coil.This carrier has reverse power protection on the main power input and built-in 5
V and 3.3 V voltage regulator
3.42.2 RESET: To reset the driver work (enable (5V), disable (0V))
3.42.3 STEP: To set how many step motor will turning/ rotate
• MS1, MS2, MS3: This logic gate input to control motor rotations, see the
logic truth table below
• VDD: Driver voltage supply (5V DC)
3.43 Features
• Built-in transverter, easy to operate.
• It can operate the bipolar stepper motor under full, half, 1/4,1/8, and 1/16
stepping mode, output driving performance upto 35V and +/- 2A.
• A4988 stepper motor driver including a fixed turn-off time current voltage
stabilizer, the voltage stabilizer can work under slow or mixed evanescent
mode.
• It can drive the motor to produce micro step only enter a pulse to the stepper.
3.51 Introduction
There are many sizes and shapes of spindles. First, let’s look at low speed and high speed
spindles.
3.52 Low Speed Spindles
Low speed spindles are used primarily machines that need to do milling operation on
metal. They are needed when drolling larger holes may be required or for turning
very large tools.
Some milling machines use a low speed spindle. This spindle will run at an RPM
range of 500- 2500 RPM. Since most motors don’t run slowly enough, a belt or gear
reduction is used to slow down spindle shaft in most cases. Needless to say, we won’t
be using a low speed spindle on the KRedu CNC.
Most CNC machines designed to mill wood, plastic, and sone non-ferrous metals, use
a high speed spindle. While there are several types of high speed spindles, mainly
two types “routers” and “rotary tools”.
3.54 Routers
Routers can be broken down into full size routers and trim routers. In the full size
routers, due to the weight and size of these routers, they are used on larger CNC
machines. These are both 2-1/4 HP routers. They have plenty of power for most
operations, and work well for cutting wood, plastics and aluminium. Full sized
routers can handle tool shanks from 1/4" to 1/2” and with adapters or special collets,
doen to 1/8”.
Most trim routers work just like their larger counter parts, but are smaller and
produce less horse power. These routers are just under 1HP. Trim routers are
common on many small to medium CNC machines. Most can handle tool shanks of
1/4" or 1/8” with and adapter.
There are tools that fall into the rotary tool category but are better suited to CNC use.
Lets talk about three of them.
This is the first rotary tool attached to the KReduCNC that produced results that were
accurate and repeatable. The tool has no slop and very little runout; it’s powered with
This rotary tool is able to cut softer materials, it is found to be under powered. It also
has an auto shutoff if it senses too much load. It also worked very well for PCB work.
The second one is the Proxxon Micromot 50/E shown in figure 3.11. it has much
more power than the wecheer, and it was able to cut deeper and faster. It’s size also
made easy to mount on the KReduCNC.
The 50/E worked much better than the WE248, but it still had the following issues:
3.3.1 It requires a special 12V power source. It does add some complexity to the
build.
3.3.2 The speed control can bog down, as it has no feedback control. It can also
shutdown if pushed too hard.
The third one is the proxxon micromot IBS/E shown in figure 3.12. This is a rotary
tool that costs almost as much as a full-sized router. The IBS/E is boasts a 1/8 HP
motor, which is plenty for the KReduCNC.
It is designed for continuous use and has a full electronicspeed control with feedback.
Its speed range is 5000-20000 RPM. The motor in the IBS/E is the same used on the
proxxon MF70.
3.61Introduction
Power supply is an electronic circuit that is used for providing the electrical power to
appliances or loads suchas computers,machines,and so on. These electrical and
electronic loads require various forms of power at different ranges and with different
characteristics. So, for this reason the power is converted into the required forms
(with desired qualities) by using some power electronic converters or power
converters.
Electrical and electronic loads work with various forms of power supplies, such as
AC power supply, AC-to-DC power supply, High-voltage power supply,
Programmable power supply, Uninterruptable power supply and Switch-mode power
supply.
There are different types of topologies for SMPS, among those, a few are as follows
1 DC to DC converter
2 AC to DC converter
3 Fly back converter
4 Forward converter
each other.
This AC voltage is again fed to the output transformer shown in the figure to step
down or step up the voltage levels. Then, the output of this transformer is rectified
and smoothed by using the output rectifier and filter. A feedback circuit is used to
control the output voltage by comparing it with the reference voltage.
The SMPS circuit with very low output power of less than 100W (watts) is usually of
Fly-back converter type SMPS, and it is very simple and low- cost circuit compared
to other SMPS circuits. Hence, it is frequently used for low-power applications. The
unregulated input voltage with a constant magnitude is converted into a desired
output voltage by fast switching using a MOSFET; the switching frequency is around
100 kHz.
fly-back converter.
Thus, the diode D1 gets forward biased and scaled voltage is passed through the
low-pass filter preceding the load. If the switch S is turned off, then the currents
Department of EEE, VVIET, Mysuru /2018-19 Page 24
3Xs ENGRAVING AND MILLING OF PCB
through the primary and secondary winding reach to zero, but the current through the
inductive filter and load can not be change abruptly, and a path is provided to this
current by the freewheeling diode D2. By using the filter inductor, the required
voltage across the diode D2 and to maintain the EMF required for maintaining the
continuity of the current at inductive filter.Even though the current is diminishing
against the output voltage, approximately the constant output voltage is maintained
with the presence of the large capacitive filter. It is frequently used for switching
applications with a power in the range of 100 W to 200
CHAPTER 4
METHODOLOGY
The structural design of the machine including to wiring connection and the
software adopted to generate codes and C+ language. Finally, but not last is
Development the base of the design that has been achieved.
The machine structure is the vital part of the machining tool. It merges all machine
components into a single complete system. The machine structure is vital to the
efficiency of the machine since it’s directly affecting the total dynamic stiffness
and also affecting the damping response. Perfectly designed structure can afford
high stiffness, which leads to precise operation. Mini scaled machine tool required
more precise stiffness than the regular large-scale machine tool.
The initial design will be drafting or sketching then when the design satisfied. The
next level will be deciding the criteria required which is firstly the length travel.
The length travel is the length of the X, Y and Z axis that travels from one point to
another. The X axis move left & right, Y axis move front & back, Z axis moves Up
and Down. Travel length that is to be designed is X axis 3.5 foot and Y axis 2.5
foot and Z axis will be 0.984 foot. This structure comes with less materials hence
it’s very less expensive to build which it’s designed to cut wood plastic and
aluminum.
Arduino Uno cooler to avoid overheating that could damage component. 48V10A
power supply was used as a voltage source for spindle drill, the voltage that goes
into the spindle drill was set using a motor controller. The 3 stepper motors will
move the spindle drill in the direction of the X, Y and Z axes, so that the object
can be formed according to the design. Display of microcontroller based CNC
machine
The control unit consists of Raspberry Pi which in interfaced with an Atmega328p based
Arduino Uno Board. Arduino Uno controls stepper motor drivers and relay. A4988 is the
stepper motor driver. The communication between personal devices such as Tablets,
Phones or PC and CNC machine is wireless. Power supply of different voltage and
current levels is given to different parts of the system as required. as a safety measure
emergency stop buttons and limit switches are provided
4.5 G-code
G-code is an industry standard for a machine control guideline set, specified in a
few international standards including RS274D and ISO 6983. G-code documents
are ASCII content records, comprising of an arrangement of charge codes. Each
order code is, as a rule, a solitary in sequential order character took after by
numeric parameters.
G Code Example
The program, given below, will draw a 1” diameter circle about the origin.
G01 Z0. F5
G02 X0. Y0.5 I0.5
J0. F2.5
Important to remember that all gCode programs a simple text files save with a “.nc”
extension.
First Step
Steps to run the program:
● Under the “Machine Control” Tab enter “.1” into the “Step Size” box & press
enter.
● Selecting - “inches”.
● To move the machine close to the center of the work table The X+,X-
,Y+ and Y- buttons are used.
● To tell the machine to remember this position as the X zero location,
Press the “Reset X Axis” button.
● To tell the machine to remember this position as the Y zero location,
Press the “Reset Y Axis” button.
● Now we need to slowly use the “Z-“ button to lower the marker tip.
Then, stop when the marker tip gets close to the paper.
● Adjusting the “Step Size” to .01. After entering the value, Press enter.
● Until it touches the paper by tapping the “Z-“ button, let’s continue lowering the
marker.
● To tell the machine to remember this position as the Z zero location,
Press the “Reset Z Axis” button.
● Retracting the marker from the paper using the “Z+” button. Let’s go at
least .1” above the paper. This is equal to 10 clicks of the “Z+” button
when the step size is set to .01
3. Clicking “Open”.
4. The next button press will send the “circle.nc” G-code program to the
machine and it will start to move.
5. This is for all the marbles. Let’s click the “Send” button.
● Now the machine will lower to Z = 0.0. Also, marker should touch the paper
Features
● GRBL has many advanced parameters that many beginners will not
need. However, these functions allow the user to grow into using the full
capabilities of their machine.
Limitation of GRBL
● Stepper Motor Drivers: the Bridge between the Arduino and stepper
motors that move the machine.
● Power supply: connect to the stepper motor drivers and provides the
power to the drivers & stepper motors
Example calculations demonstrating how to find the step/mm value After a few
quick calculations we have the values we need. Let’s update the GRBL settings
by typing the following into the command line.
$100 = 314.961
This will set the X axis steps per mm. Let’s repeat the process for the Y and Z axis
using
Important thing to remember that the Z axis setting is different because of running
a lower micro stepping count of 2x to get a little more power to lift the head of the
mill.
CHAPTER 5
5.1 ADVANTAGES
• The 3Xs CNC machine is low cost as compared to the other CNC machines.
• This machine can be used for both PCB designing and engraving.
• Small in size.
5.2 APPLICATIONS
Mainly for the EEE and ECE students for designing PCBs.
CHAPTER 6
6.1 RESULT
It is possible to design and develop a low cost PCB CNC machine using Arduino.Since
the position of the motors are seen both graphically and visually the process can be
stopped at any instant of time and can be resumed again.due its low cost machine the end
product price gets decreasedthat is the PCB board printing price get low,this CNC
machine is not only ment for PCB desighning but also for engraving the 3D arts on the
wood,acrylic and sunboard
6.2 COMPARISON
Spindle 60000 rpm 12000 rpm 25000 rpm 9000 rpm 7000 rpm
Speed
CHAPTER 7
7.1 CONCLUSION
By using this setup with a combination of Eagle software, G-code Arduino software
for smooth operation and give better accuracy for design PCB. This setup is used to
reduce the process of etching and drilling. G-code makes position from layout design
to move with proper position. Whenever require to start and stop whole process will
depend on you. By using Arduino nano board, the set up is flexible and reduce
workload for make Printed Circuit Board (PCB).
The PCB Drilling Machine can be replaced the high cost CNC and NC
machines in order to reduce the cost for mass production. Thus by using the
path planning the machine drills in a more systematic way. Hence further
development can be made in future in order to achieve more accuracy. In the
future
Current system can be improved to reach higher axis speeds.
Reference