PIC Development Board With Programmer
PIC Development Board With Programmer
i|Page
ADDIS ABABA SCIENCE AND TECHNOLOGY UNIVERSITY
COLLEGE OF ELECTRICAL AND MECHANICAL ENGINEERING
DEPARTMENT OF COMPUTER ENGINEERING
Certificate
This is to certify that the thesis entitled “PIC Development board with programmer”
is submitted by TARIKU WORKINEH, MATHEWOS BUDUSA, PETROS
TARIKU, and BRIHANU TESHALE for the award of the degree of Bachelor of Science
in Computer Engineering, Addis Ababa Science and Technology University is a record of original
work carried out under my supervision and they fulfills the requirements of the regulations laid
down by the University and meets the accepted standards concerning originality and quality.
The results of the thesis have neither partially nor fully been submitted to any other University
or Institute for the award of any Degree or Diploma.
ii | P a g e
Declaration
Name ID Signature
Tariku Workineh ETS1035/08 _______________
Mathewos Budusa ETS0735/08 ________________
Petros Tariku ETS0923/08 ________________
Brihanu Teshale ETS0242/08 ________________
This project has been submitted for examination with our approval as university
advisor.
iii | P a g e
ACKNOWLEDGEMENT
First and foremost, we are extremely grateful to our almighty God for giving us the strength and
initiation to accomplish this undergraduate final project. Next, we would like to express our
deepest and sincere gratitude to our project advisor Mr. Yonas Tesfaye for his guidance,
encouragement, motivational thoughts, and support throughout the project. And also, we would
like to extend our gratitude to all staff members of the computer engineering department. Last,
but not least we want to thanks our parents for their encouragement, motivation, and support
throughout our study.
Project associates
1. Tariku Workineh
2. Mathewos Budusa
3. Petros Tariku
4. Birhanu Teshale
iv | P a g e
ABSTRACT
Many researchers and project builders use pic and programmers separately. However, buying
separately costs a lot. So, to solve that problem we have developed a PIC development board
with an inbuilt pic kit programmer and training area of the board. The PIC development board is
flexible and cost-effective for the users. It gets power from PC via USB cable then LED shows
blink. Load Firmware uses to program the desired PIC microcontroller by the programmer then
puts the desired PIC on the socket and its programs by loading the .hex file. After that, we can
put the desired PIC microcontroller in the training area and do what we want. Finally, this project
solves the problem of dependency on the library inbuilt device like Arduino.
v|Page
List of Abbreviations
PIC Peripheral Interface Controller
PCB Printed circuit board
CAD Computer-aided design
18F 18 family
SMD Surface-mounted device
SMT Surface-mounted technology
WWII World war second
3D Three dimensions
USB Universal serial bus
DIP Dual inline packages
IC Integrated circuit
DMM Digital multimeter
DRC Design rule checker
PC Personal computer
C Capacitor
R Resistor
D Diode
L Inductor
Q Transistor
MCLR Master clear
VPP Peak-to-peak Voltage
DC Direct current
X Crystal oscillator
LED Light-emitting diode
PGD Program data
PGC Program clock
J Jumper
nF Nano-farad
uF Micro-farad
MHz Megahertz
SW Switch
BOM Bill of materials
IDE Integrated development environment
MPLab Mansfield Public Library Advisory Board
dsPIC Digital signal controller PIC
USART Universal Serial Asynchronous Receiver Transmitter
I2C Inter-Integrated Circuit
B Button
vi | P a g e
List of Figures
vii | P a g e
List of Table
viii | P a g e
Table of Contents
CHAPTER ONE ..............................................................................................................................1
1.0.Introduction ..........................................................................................................................1
1.1. Background ..........................................................................................................................2
1.2.Statement of problem ...........................................................................................................3
1.3.Objective ...............................................................................................................................3
1.3.1. General objective ..........................................................................................................3
1.3.2. Specific objective .........................................................................................................3
1.4.Scope and limitation ..............................................................................................................4
1.4.1. Scope of project ............................................................................................................4
1.4.2. Limitation of the project ...............................................................................................4
CHAPTER TWO .............................................................................................................................5
2.0. Literature Review..........................................................................................................5
CHAPTER THREE .........................................................................................................................6
3.0. Materials & methodology .....................................................................................................6
3.1.Materials ..............................................................................................................................6
3.1.1. PIC18f2550 .................................................................................................................6
3.1.2. PIC18f4550 .................................................................................................................7
3.1.3. USB type-B connector ................................................................................................7
3.1.4. Crystal oscillator .........................................................................................................8
3.1.5. Other passive and active components .........................................................................8
3.1.6. 40 pin DIP narrow socket ...........................................................................................9
3.1.7. 28-pin DIP narrow socket ...........................................................................................9
3.1.8. Digital multimeter, soldering Iron, Lead ..................................................................10
3.2.Methodology ......................................................................................................................11
3.2.1. Block diagram ...........................................................................................................12
3.2.2. Software requirement ...............................................................................................13
CHAPTER Four .............................................................................................................................14
4.0.Result and discussion .........................................................................................................14
4.1.Discussion .........................................................................................................................14
4.1.1. Circuit diagram of PIC development board with programmer .................................14
4.1.2. Simulation PCB layout .............................................................................................16
ix | P a g e
4.2.Result ...............................................................................................................................18
4.2.1. Result of PIC development board with programmer ...............................................18
4.2.2. Working principle .............................................................................................................. 19
Appendix .................................................................................................................................................... 21
x|Page
CHAPTER ONE
1.0. INTRODUCTION
1|Page
1.1. Background
Components on a printed circuit board are electrically connected to the circuits by two different
methods: the older “through-hole technology” and the newer “surface mount technology.” With
through-hole technology, each component has thin wires, or leads, which are pushed through
small holes in the substrate and soldered to connection pads in the circuits on the opposite side.
Gravity and friction between the leads and the sides of the holes keep the components in place
until they are soldered. With surface mount technology, stubby J-shaped or L-shaped legs on
each component contact the printed circuits directly. A solder paste consisting of glue, flux, and
solder is applied at the point of contact to hold the components in place until the solder is melted,
or “reflowed,” in an oven to make the final connection. Although surface mount technology
requires greater care in the placement of the components, it eliminates the time-consuming
2|Page
drilling process and the space-consuming connection pads inherent with through-hole
technology. Both technologies are used today.
Two other types of circuit assemblies are related to the printed circuit board. An integrated
circuit, sometimes called an IC or microchip, performs similar functions to a printed circuit
board except the IC contains many more circuits and components that are electrochemically
“grown” in place on the surface of a very small chip of silicon. A hybrid circuit, as the name
implies, looks like a printed circuit board, but contains some components that are grown onto the
surface of the substrate rather than being placed on the surface and soldered.[4]
1.3. Objective
1.3.1. General objective
To build a PIC development board with an inbuilt programmer that is flexible and cost-
effective for the users. It makes easy to interfaces other modules and to program
different PIC microcontroller.
3|Page
1.4. Scope and limitation of the project
1.4.1. Scope of the project
The scope of this project is to develop PIC 18F microcontroller training board with an inbuilt
programmer, that program different microcontroller and to build prototype easily. Moreover; this
project helps to design multipurpose educational machines in a different aspect.
4|Page
CHAPTER TWO
The first printed circuit boards (PCBs) can be traced all the back to the early 1900s and a patent
for the path directly on an insulated surface. It was a revolutionary idea because it could
eliminate complex wiring and provide consistent results. Still, they didn’t catch on until after
WWII, when Dr. Paul Eisler in Austria began making the first real operational printed circuit
boards in 1943. The early PCB material could be almost anything, from Bakelite and Masonite to
plain old thin pieces of wood. Holes could be drilled into the material and flat brass wires would
be riveted onto it. It may not have been pretty, but the concept was there, and it worked. It was
often used in radios and gramophones at the time. In 1947, the first double-sided PCBs with
plated through holes were produced. In 1950, the types of materials used for the board were
shifting to different resins and other materials, but they could still only be printed on a single
side. The wiring would be printed on one side and the electrical components would be on the
other. Still, it was a much more efficient option than bulky wiring, so it was starting to see wider
adoption. One of the biggest steps forward came in 1956 when the U.S. Patent Office granted a
patent to a small group of users to create a printing plate for an offset printing press. This is
what was used to print the wire in acid-resistant production. [5]
5|Page
CHAPTER THREE
3.0. Material and methodology
Methods
The following methods are needed to accomplish our project.
Detailed system requirements both on the hardware system and software.
Detail study about the circuit and electric components
Designing the circuit and the PCB layout as well as a 3D view.
Generating the Gerber file.
Fabrication of PCB and test it.
Installing firmware file(bootloader)
Test the functionality of the PCB board
3.1. Materials
3.1.1. PIC18f2550
Fig 1: PIC18f2550
6|Page
3.1.2. PIC18F4550
Fig 2: PIC18f4550
It is one of the popular Microcontrollers from the microchip technology, comes with a High-
Performance, Enhanced flash, USB Microcontroller with nano-Watt-Technology. This is an
8-bit microcontroller popular among makers and engineers due to its features and easy
applications. PIC18F4550 comes in various packages like DIP and can be selected according
to the project requirement. It is a 40 pin microcontroller. All its feature found under the
link:[2]
Why did we use it? To make exercise and interface with the external module.
USB Type B connectors officially referred to as Standard-B connectors, are square with either a
slight rounding or large square protrusion on the top, depending on the USB version. It is easy to
sell on the PCB board. It has four pins
7|Page
Pin Name Wire Color Description
1 Vbus Red/orange +5V
2 D- White/gold Data-
3 D+ green Data+
4 GND Black/blue Ground
Crystal Oscillators have two leads, there is no polarity for crystals and hence can be connected in
both directions. It will create an electrical signal with a given frequency & external clock to the
system or PIC microcontroller. All feature of the crystal oscillator found under the link: [3]
We use many passive and active components to design this PCB board. Some of them are listed
below
Resistor Transistor
Diode Ceramic Capacitor
Electrolytic capacitor Inductor
Jumper Sockets
Switch
8|Page
Why we use active and passive components?
Even though they need an external source for their operation, active components supply the
energy to the circuit, whereas the passive components are can only receive energy. Active
components can control the flow of current, but the passive components cannot control the flow
of the current. The passive component doesn’t need an external source for its operation.
Why did we use it? It holds 40-pin PIC18f4550 on the board and controls the pin damage.
Why did we use it? To hold PIC18f2550 on the board and control pin damage.
9|Page
3.1.8. Multimeter, soldering iron, lead
Why did we use it? To measure the voltage, current and, resistance, and other electrical
components. To test and troubleshoot the circuit and PCB.
Soldering iron:
Why did we use it? To sign up for the two objects collectively so they can be a part of together
permanently with the solder.
10 | P a g e
Lead:
Fig 9: lead
Lead is a fusible metal alloy used to create a permanent bond between metal workpieces. Lead is
melted to adhere to and connect the pieces after cooling, which requires that an alloy suitable for
use as solder has a lower melting point than the pieces being joined.
Why did we use it? To attach components onto the circuit boards.
11 | P a g e
3.2. Methodology
3.2.1. Block diagram
12 | P a g e
3.3. Software requirement
13 | P a g e
CHAPTER FOUR
4.1. Discussion
Circuit explanation:
All circuits are made based on the PIC18f PIC microcontroller datasheet.
During all stages of the layout, keep the design error-free by using the design rule
checker (DRC) that found under EasyEDA. Design rule checking should cover package-to-
14 | P a g e
package spacing, unconnected nets, shorted nets, air-gap violations if vias are too close to solder
pads if vias are too close to each other, and vertical clearance violations.
Firstly, we would like to explain the programmer PIC part of the circuit.
A programmer is a USB-powered device, that is it gets power from a PC USB +5V power
supply. USB microcontroller PIC18F2550 is the breath of the programmer. The USB Data+ and
Data- from the PC are connected to the D+ and D- pins of the PIC182550. The built-in-clock
generator of PIC uses external crystal oscillator X1, C2, and C3 to ensure the correct system
clock rate. The inductor L1, transistor Q3, diode D1, capacitors C6, and C8 form a DC-
DC converter (Buck Converter) which converts 5V from PC to 12V, which to be applied to the
MCLR/VPP pin of a microcontroller at the time of programming. This is controlled by the PIC
firmware.
The resistors R12 and R18 forms a voltage sensing feedback network, which is given to the
analog pin AN0 of the PIC. Transistor Q4, Q1, R15 & R20 are used for switching Vpp to
MCLR/Vpp output. The Vdd sensing feedback is given to the analog pin AN1 of the PIC via
resistor R4. The LED3 with current limiting resistor R6 is controlled by the PIC firmware,
normally glows during reading and write operations indicating busy states. The LED2 with
current limiting resistor R5 indicates that the circuit is powered from USB. The transistor Q2 and
resistor R3 are for switching Vdd to output whenever required. LED1 along with current limiting
resistor R7 indicates that Vdd is switched to output. The resistors R4, R8, and R17 are current
limiting resistors in series with output lines PGD, PGC. B1 Button with current limiting resistors
R9 uses to reset the system. There are 6 jumper wire: J1, J2, J3, J4, J5 & J6. We use one of them
during the programming based on the programmed PIC. They are connected to the socket. socket
hold PIC during the programming. Lock J1when we program 40 pin PICs. The rest are for other
IC, like 28 pins, 24 pins, 16 pins, 8 pins.
Secondly, we explain the training PIC part
The PIC18F4550 will be ‘bus-powered’; this means that the device will draw its power from the
USB host (our PC) so no power regulation is required. The 470nF capacitor (C13) is required so
the PIC can operate the internal USB circuitry (it helps with regulating the USB voltages
required by the on-board USB interface in the PIC). X2, C54, and C15 are generated and correct
system clock. C13 can be any value between 220nF and 470nF but the datasheet recommends us
15 | P a g e
220nF. However, we had 470nF available, it doesn’t make any error to the functioning of the
circuit. We use an 8MHz external oscillator with two 22pF ceramic capacitors to generate the
system clock. B2 is the reset button & C10, R21 are reduced noise for a button. SW1 is a power
switch for the training PIC.
16 | P a g e
• Paste mask top and bottom
• Component map (X-Y coordinates)
• Assembly drawing top and bottom
• Drill file
• Drill legend
• Netlist file
Feature of our PIC development board with programmer
Layer: 2
Length: 117 mm
Width: 77 mm
Pad Diameter:1.35mm
Vias: 0.75mm
We use both Thru-hole and SMD/SMT to reduce the component density on the board.
Pad: a small surface of copper where the component will be soldered to the board.
Via: a plated hole that allows the current to pass thru the board.
Track (trace): conductive path connecting 2 points (pads, vias)
Solder mask: a layer of insulating lacquer covering both surfaces of the board to prevent the
solder from short circuit two tracks from different nets.
Silkscreen (overlay): letters printed on the final board.
Footprint: Is refers to the actual physical size of a given component.
17 | P a g e
4.2. Result
18 | P a g e
4.3. Work principle
As with other electronics, our PCB development board needs power, so we will give power from
PC via USB cable after that the power is LED shows blink. Then Load Firmware to the
programmer to program the desired PIC microcontroller after that put the desired PIC on the
holder socket and program it by loading the .hex file. Finally, put the desired PIC microcontroller
in the training area and do what you want.
CHAPTER FIVE
5.1. Recommendation
This work could be improved by increasing some features like LCD holder, power adapter, and
battery holder. If someone adds these features, our project may be more important for users. We
provided to, anyone those who add other new feature and that makes more functional for users.
5.2. Conclusion
The main of this project is to build a PIC development board with an inbuilt programmer. This
PIC development board is a 2-layer PCB board that has three parts: -the first part contains the
programmer part; the second part contains the programming part of the desired microcontroller
and the last part contains the training area. We develop this PIC development board to overcome
the dependence of students on the inbuilt library devices like Arduino. We have solved the problem
of microcontroller users by developing a board that contains a PIC kit programmer and a training
area on it. This board reduces the complexity of the circuit.
19 | P a g e
REFERENCE
[1] https://components101.com/microcontrollers/pic18f2550-pin-diagram-features-
datasheet
[2] https://components101.com/microcontrollers/pic18f4550-pin-diagram-features-
datasheet
[3] https://components101.com/misc/crystal-oscillator
[4] David Souza. “printed circuit board.” Internet: www.prototypepcb.com/the-
background-of-printed-circuit-boards/, January 24th, 2011[Feb 2020]
[5] DZone. “An Overview of Printed Circuit Boards.” Internet:
www.dzone.com/articles/advances-in-printed-circuit-boards, Dec. 06, 16[Feb
2020]
20 | P a g e
APPENDIX
Gerber file
21 | P a g e