Electronics Workshop Complete Notes
Electronics Workshop Complete Notes
The rain drop sensor module is a smart and low-cost rain sensing device. It has two parts i.e. a
rain sensing pad and a control board. The sensitive sensing pad detects any water present on it
while the control board reads these signals and can also binarize them. The rain drop module
has a major application in the automobile industry. It can be used to monitor the rain and send
closure requests to shutters or windows whenever the rain is detected.
Circuit Diagram
The functional diagram of the Rain Drop Sensor module for conceiving the
knowledge of the internal connections of the module is provided below:
The analog output is used for the detection of rain drops with respect to the extent of rainfall.
Connected to the 5Vpower supply, the LED will turn on when there is no rain drop on the
nickel coated pads, and DO output is high. When dropping a little amount of water, DO output
is low, the switch indicator will turn on. Brush off the water droplets, and when restored to the
initial state, outputs high level. When no rain digital output is 1 and analog output gives 1023
max value. When rain is present digital output is 0 and analog output is much less than 1023.
Using a potentiometer on-chip we can control the turning OFF point of a digital pin at some
value of an analog pin.
Code
void setup()
Serial.begin (9600);
pinMode (2 , INPUT);
void loop()
Serial.println (value);
Serial.println (digital);
delay(2000);
}
6
Unit-3
Classification and Features of PCB
Printed circuit is a conductive pattern attached to the insulating substrate surface to
connect electronic components. The finished boards of printed circuit become printed
circuit boards, namely PCBs. A printed circuit board (PCB) mechanically supports and
electrically connects electronic components or electrical components using conductive
tracks, pads and other features etched from one or more sheet layers of copper laminated
onto and/or between sheet layers of a non-conductive substrate. Components are
generally soldered onto the PCB to both electrically connect and mechanically fasten
them to it. Printed circuit boards are used in all but the simplest electronic products. They
are also used in some electrical products, such as passive switch boxes. Alternatives to
PCBs include wire wrap and point-to-point construction, both once popular but now rarely
used. PCBs require additional design effort to lay out the circuit, but manufacturing and
assembly can be automated. Specialized CAD software is available to do much of the
work of layout. Mass-producing circuits with PCBs is cheaper and faster than with other
wiring methods, as components are mounted and wired in one operation. Large numbers
of PCBs can be fabricated at the same time, and the layout only has to be done
once. PCBs can also be made manually in small quantities, with reduced benefits. PCBs
can be single-sided (one copper layer), double-sided (two copper layers on both sides of
one substrate layer), or multi-layer (outer and inner layers of copper, alternating with
layers of substrate). Multi-layer PCBs allow for much higher component density, because
circuit traces on the inner layers would otherwise take up surface space between
components. The rise in popularity of multilayer PCBs with more than two, and especially
with more than four, copper planes was concurrent with the adoption of surface mount
technology. However, multilayer PCBs make repair, analysis, and field modification of
circuits much more difficult and usually impractical.
Classification of PCB
1. Rigid PCB: The rigid PCB has a certain mechanical strength, and the parts
installed with it have a certain ability of resistance to bending, and it is usually at a
state of flat when used. Generally, the rigid PCBs are always popular with the
electronic devices because of its good flatness and excellent performance of
resistance to bending.
7
2. Flexible PCB: Flexible PCBs are made of soft laminated plastics or other soft
insulating materials. The boards made by the flexible PCBs can easily be bent and
stretched, which means that people can bend optionally them when using the
flexible PCBs according to the installation requirements. Flexible printing plate is
used for special occasions. For example, the display screen of some digital
multimeter can be rotated just because of the popularity and application of the
flexible PCBs.
3. Single-side PCB: Single sided PCB is the basic simple PCB, parts is layouted
on one side and the circuit is on the other side. As there is only layer conductor, it is
called single sided PCB (Single-sided PCB or one layer PCB). Single-side PCB is
usually made of the laminate or the glass cloth and the conductive pattern of it is
relatively simple, so most of them are made by silkscreen printing or wet film
process. In addition, some small amount of various products usually use photoresist
to pattern circuit.
8
5. Multi-layer PCB: A multilayer PCB is a printed circuit board with three or more
layers of conductive graphics. The conductive graphic of the inner layer of the multi-
layer board is superimposed with the insulating bonding sheet, and the outer layers
are covered with foils, which are compressed into a whole multi-layer board. The
holes of multi-layer board must be metallized in order to lead out and connect the
9
printed circuits sandwiched between the insulating substrates, which is also namely
PTH (Plate Through Hole).
6. Zero PCB: Zero PCB is basically a general-purpose printed circuit board (PCB), also known
as perfboard or DOT PCB. It is a thin rigid copper sheet with holes pre-drilled at standard
intervals across a grid with 2.54mm (0.1-inch) spacing between holes. Each hole is encircled
by a round or square copper pad so that component lead can be inserted into the hole and
soldered around the pad without short-circuiting the nearby pads and other leads. For
connecting the lead of component with another lead, solder these together or join these using a
suitable conducting wire.
Features of PCB:
I. General characteristics:
1) Higher density: Over the past 100 years, the high density of PCB can be
developed with the improvement of integrated circuit and the progress of
installation technology.
10
2) Higher reliability: A series of inspections, tests, and aging tests will ensure
that the PCB will work reliably for a long period of time (generally 20 years).
6) Assembly ability: PCB products not only facilitate the standardized assembly
of various components, but also can be automated and mass production. At the
same time, PCB and various components can be assembled into larger
components, systems and even whole machines.
1) Used with integrated circuit can make the whole machine miniaturization,
reducing the weight of the whole machine.
2) It improves the wiring density, reduces the spacing of components and shortens
the signal transmission path.
3) It reduces the component welding points which results in the reduction of the
failure rate.
4) The signal distortion of the circuit is reduced because of the application of the
shielding layer.
1. Board Material:
A flat laminated composite made from non-conductive substrate materials with layers of copper circuitry
buried internally or on the external surfaces.
They can be as simple as one or two layers of copper, or in high density applications they can
have fifty layers or more. The flat composite surface is ideal for supporting the components that
are soldered and attached to the PCB, while the copper conductors connect the components to
one another electronically.
The six basic components of a standard printed circuit board are:
Prepreg: Prepreg is a thin glass fabric that is coated with resin and dried, in special machines called prepreg
treaters.
Laminate
Copper foil
Soldermask
Nomenclature
Final finish
2. Sizing Traces
As we know, copper traces have resistance. Which means that it has a voltage drop, power
dissipation, and a temperature rise when current flows through it.
PCB designers most commonly use length, thickness, and width to control the resistance of a
PCB trace.
Resistance is actually a physical property of the metal that is used to make the trace.
Since it is not possible to change the physical properties of copper, so what we can do ? We can
focus on the trace size, which can be controlled.
12
Having small loops reduces high frequency voltage spikes that are caused by V =L (di/dt)
Small loops also help in reducing the amount of signals that are inductively coupled into the
node from external sources, or are broadcast from the node. This is what you need, unless you
are designing an antenna.
Also in case of op-amp circuits, keeping smaller loops small prevent noise from being coupled
into the circuit.
Multiple vias from the capacitor’s pin to a ground plane reduce inductance.
5. Copper Traces
Keep Digital and Noisy Traces Away from Analog Traces.
A capacitor is formed by using parallel traces or conductors. So, if you place the traces very
close together it will capacitively couples the signals on the traces, especially if the signals are
high frequency.
Hence, you should always keep high frequency and noisy traces away from the traces that you do
not want noise on.
Leaving space between copper traces or fills and mounting holes helps in
preventing shock hazards.
Since, solder mask is not a reliable insulator, you should always take care that
there is distance between copper and any mounting hardware.
Hence, you should take care to route noisy grounds away from signals that need to be quiet.
You can make ground traces large enough to carry the currents that will flow. It’s ideal to place a
ground plane directly under signal traces lowers the impedance of the traces.
So if you are routing a trace from one side of the PCB to the other and need low inductance or
resistance, you should use multiple vias as large vias have lower resistance.
This is especially useful in grounding filter capacitors and high current nodes.
8. Selecting Components:
It should be easily available, low cost, small size, etc.
9. EMI Interference:
Low crosstalk, component placement, layer allocation should be proper to minimize the EMI.
Some component datasheets (especially power diodes and power MOSFETs or voltage
regulators) have guidelines for using PCB surface area as heatsinks.
This is especially useful in case where a PCB is mounted on a heatsink on a chassis which
further dissipate heat.
As we know, large vias transfer heat more efficiently than small vias. Hence it will lower the
operating temperature of components and increase the reliability.
Sources of electromagnetic interference are all around us, and we can categorize them in
several ways:
Source: Human-made EMI arises from electronic circuits. Naturally occurring EMI, on
the other hand, can arise from environmental factors like cosmic noise and lightning.
Duration: Continuous interference is an EMI source that emits a constant signal, which
most often appears as background noise. Impulse interference is intermittent, usually
caused by switching systems, lightning and other non-constant sources.
Bandwidth: Narrowband signals like those used by radio can encounter interference from
oscillators and transmitters, though these sources only affect certain parts of the spectrum
intermittently. Broadband interference affects high-data signals like TV and can come
from many sources, including arc welders and solar noise.
Whether human-made or environmental, EMI can be both costly and dangerous. It can disrupt
communication channels and sensitive devices. EMI is a notable concern in the medical field,
where wireless device usage is on the rise. Unfortunately, EMI can affect the functionality of
medical equipment like ventilators, ECG monitors, cardiac monitors and defibrillators. In other
industries, EMI can disrupt sensors and navigational systems. The result in all cases is a
disturbance of equipment that may be responsible for the health and safety of its users.
However, the most common source of EMI — and the most problematic source for designers —
is internal. Poor PCB design can result in incompatible signals interfering with one another on
the board. This interference can ultimately cause the board to fail. Designers must ensure that
interference is kept to a minimum and any signals let off are compatible so as not to result in
interference.
Human-made EMI
Human-made EMI occurs from another manufactured electronic device. This type of interference
happens when two signals come close to each other or when multiple signals pass through one
device at the same frequencies. A good example is when the radio in the car picks up two
stations simultaneously.
Natural EMI
This type of EMI also affects the devices, but they are not human-made, rather the EMI happens
due to natural phenomena on earth and space like Lightning, Electric Storms, cosmic noise, etc.
2. Duration of EMI
Continuous EMI
When a source continuously emits EMI it is known as continuous EMI. The source can be
human-made or natural. EMI occurs as a long coupling mechanism exists between EMI source
and receiver. This type of EMI arises from sources like a circuit that emits a continuous signal.
Impulse EMI
These types of EMI occur for a very short duration like pulses. So, it is known as Impulse EMI.
The source can be either natural or human-made like the continuous type of EMI. Good
examples to understand are noise heard from switches, lighting, etc which emit signals that could
cause a disturbance in voltage and current.
16
3. Bandwidth of EMI
Narrowband EMI
This type of EMI occurs at a single frequency that gets generated from an oscillator. It can also
occur due to different types of distortion in a transmitter. Usually, in the communication system,
narrowband EMI plays a very minor role and it can be corrected easily. But, the limit of
interference should be controlled in limits.
Broadband EMI
The main difference from that of the narrowband EMI is that this type of EMI does not occur at a
single frequency. When looking at the magnetic spectrum, this type of EMI covers a wide
spectrum and exists in different forms. The source can be either natural or human-made. An
example of a human-made source is an arc welding, in which spark is emitted continuously.
Similarly, an example of a natural source is Sun-outs for a satellite TV system.
1. Filtering
A direct way to get rid of unwanted signals is through filtering them out, and in this instance,
passive filters work well, and they’re used in most new equipment to minimise EMI.
Filtering usually starts with an AC line filter that prevents bad signals from entering the power
supply or powered circuits. It keeps internal signals from being added to the AC line.
Filtering is commonly used with cables and connectors on lines into and out of a circuit, and
some special connectors can have built-in low-pass filters whose main job is to soften digital
waveforms to increase the rise and fall times and reduce harmonic generation, according to
Electronic Design.
2. Earth ground
In industries, the signals and return currents are carried using ground systems. They also form
the references for analog and digital circuits, thereby protecting the human and equipment from
fault and lightning. When current flows in the grounding system, it causes the potential
differences.
When lightning strikes, it causes a potential difference in units of thousand volts. Right from the
beginning of circuit design, the ground system should be considered such that the system works
with required safety requirements. When sketching a ground or troubleshooting a ground
problem, it is first required to ascertain where the current is passing.
17
When various kinds of grounds coincide, the current may not return by the assumed path. Proper
grounding depends on several factors such as the frequencies and impedances, the length of
cabling required, and safety issues.
The most beneficial type of ground for low-frequency applications is the single-point ground as
shown in the figure below. When sensitive circuitry or cabling is used the series connection or
daisy chain, should be avoided because return currents from the three circuits flow through the
common ground impedances linking the circuits.
From the figure-above, it is seen that the ground potential of circuit 1 is not only defined by its
return current through impedance Z1 but also by the return currents from circuits 2 and 3
throughout the same impedance. This influence is called common-impedance coupling and is a
fundamental means of noise coupling.
To avoid this problem, a parallel connection is preferred for grounding. It is usually more complicated and
more expensive to implement because of the amount of wiring required. Most systems utilize a blend of
both topologies.
3. Shielding
Shielding is a method of decreasing and regulating the coupling of radio waves, electromagnetic
fields, and electrostatic fields. Shielding is implemented to confine electrical devices from the
‘outside world’, and to cables to separate wires from the environment through which the cable
runs. The effectiveness of a shield depends on the three factors; reflections, absorption, and
multiple reflections.
Thermal Management
Thermal management is the ability to control the temperature and noise level of a system by
means of technology based on thermodynamics and heat transfer.
Unit-4
Theory of Wet process of PCB Fabrication:
Design the Circuit's Layout
6 Remove a piece of glossy, thin paper from a magazine or catalog -do not use the cover.
Choose a page with a white background and a small amount of printed content, such as a
text-only page.
7 Cut the piece of magazine paper with your scissors to a size suitable for your printer.
8 Set the laser printer to its best quality setting. Do not use economy mode or any mode
that reduces the amount of toner used. Feed the magazine paper to your printer manually
as you print the layout to avoid a paper jam. Alternatively, tape the magazine paper to your
regular printer paper and feed the paper to the printer. Print on the side with the magazine
paper.
9 Cut off the excess paper around one of the printed layout's corners.
10 Clean the copper side of the blank PCB with a kitchen scrubbing pad and water until
shiny. Remove all dirt and oil from the board, and use soap if necessary. Avoid touching
the copper with your fingers, and wear clean gloves if necessary.
11 Empty the water out of your iron, and set the iron to the highest heat setting. Turn off
the steam, and wait for it to heat up.
20
12 Tape the PCB to a hard, flat surface with the copper side up. Do not put any tape on the
copper side.
13 Place the printed paper on top of the PCB with the printed side down. Align the layout
with the board so that it does not go off the board's edges. Tape the paper to the surface
you are working on to keep it in place.
14 Press the iron on the magazine paper and PCB firmly for one minute. Use a lot of
pressure, and do not move the iron.
15 Iron the paper for four more minutes while applying heavy pressure. Move the iron
slowly over the paper and PCB. Do not allow the paper to move. Wait for the board to cool.
16 Trim the excess paper around the PCB, and fill a plastic container with cold water. Place
the PCB in the water, and wait for the paper to soften, which might take up to five minutes.
17 Peel or lightly rub off the wet paper with your hands. When you are done, you should
see the layout on the copper side of the board clearly.
Etch the PCB
19 Put the hydrogen peroxide in a plastic container. Slowly pour in the hydrochloric acid.
Do not use a metal container as the mixture corrodes metal. Use a well-ventilated space.
20 Place the PCB in the mixture carefully with the copper side down, and use plastic tongs.
Wait three to four minutes, then lift the board with the tongs to check if the copper around
the tracks has dissolved. If it has not, place the board back in the mixture and check it every
two to three minutes.
21 Remove the PCB from the mixture with your tongs. Rinse it with water.
22 Lightly soak a paper towel with lacquer thinner. Rub the toner off the copper side of the
board.
23 Install a 3/100-inch high-speed or cobalt steel drill bit in your drill. If your layout uses
a different circle size, use a drill bit that is the same size as the empty part of the circle.
24 Drill holes into each of the circles on the board slowly. Do not apply pressure or the
board might break.
Apply solder mask and silk screen for further safety and application.
21
Milling Process
Milling process will take no more than 30 minutes however it depends on the thickness of the bit and
the size of the PCB and the number components and their alignment it would carry.
PCB milling is the method which involves removing the unwanted copper from the board to create
paths, and signal traces according to the layout design.
It is totally non chemical process which can be achieved in lab environment and involves no hazardous
chemical and gives a quick turnaround if you intend to make number of PCBs.
The quality of PCB depends on the milling accuracy and sharpness of the milling bits you use for
milling.
The rotational speeds of milling bits have little or no effect in the quality and precision of PCB.
You need to practice this process of making PCB using milling machine if you are using milling
machine for the first time.
You will be able to make high quality product with greater precision if you take few precautions prior
to making PCB.
Software used for PCB milling is provided by milling machine manufacturer.
Software can be divided into two categories i.e. Raster and Vector.
Software that utilizes raster calculations comes with lower processing resolution than vector based
category because it is dependent on the raster information.
25
Mechanism
PCB milling machine makes use of advanced CNC milling technology.
The milling machine controller is controlled by software that receives commands and
machine control information through serial and parallel port.
The controller is able to monitor the positioning features that are capable of moving the
milling head and control spindle speed.
Spindle speed depends on the type of system you use and it ranges from 30,000 rpm to
100,000 rpm.
Higher spindle speed comes with higher accuracy and better precision.
The whole positioning system consists of stepper motor for x and y axis and pneumatic
piston for z axis and simple DC motor is used to control the spindle speed.
In order to control higher speed, RF spindle motor control is used.
More advanced drive systems come with monitored stepper motor that provides greater
control during milling and drilling process.
26
Other Processes
After completing the milling process, you can solder required components into the board
based on your needs and requirements.
There are two ways to place and solder the components on the board. One is through
hole process and other is surface mount process.
Through hole process involves inserting the leads into the PCB hole and then connect
to the pins of right components.
This process becomes obsolete as it is an older process and occupies more space.
Surface mount technology is an advanced method in which components are mount on
the board surface and then soldered to the right components.
This process occupies lesser space than through hole process and is an ideal choice for
most of the professionals.
Be sure to take appropriate measure before soldering the components. The solder you
use for soldering the components mostly consists of lead that is considered as a toxic
material.
And the fumes created by the the soldering can be hazardous to health.
27
It is better to clean and extract the fumes before you discharge them into the
environment.
You must take safety measures before you start milling the board. You should wear
safety goggles, use the drill bit carefully and put your hand away from the board when
spindle is active.
Advantages
PCB milling process comes with a lot of benefits because it involves no hazardous
chemical and is an ideal choice for mass production.
Best part is that CNC milling can be used for multiple purpose i.e milling, drilling and
cutting.
You can change the bits based on your needs and requirements.
Some PCB boards that are easy to create using PCB milling process are very difficult to
create using wet etching process that also involves manual drilling afterwards which
costs lot more than regular milling process.
4. Tracks and land patterns can be produced very accurately, such as for microwave and
RF applications
5. A single machine can be used for milling, drilling, and cutting the PCB
7.Suitable for environments where PCBs are sufficient to be used without solder
masking, through-hole plated vias and pads, and surface finishing
4. Minimum PCB tracks width, clearance, via size, annular ring, and minimum hole size are the
design side constraints
5. Separate machining setup is required for vias and through-hole pads insertion
In conclusion, the large quantity of precision PCBs production best suits the wet or etching
method, and minimal scale prototype testing PCBs suit using the CNC fabrication method.
Alternative Methods
Laser etching is a great alternative to both chemical etching and milling process.
This process is an ideal choice for most of the applications because it involves no direct contact with
the board and it removes the material without physically touching it.
When it comes to high precision and greater accuracy, laser etching process is preferable and is mostly
used for advanced microwave and RF designs.
This process involves low power consumption, delivers high accuracy, doesn’t make use of lubricants
and abrasive material and pertains to low wear and tear and needs less maintenance.
However, this process also comes with some limitations and is expensive as compared to other
processes.
29
Unit-5
Voltage Regulator
A voltage regulator is such a device that maintains constant output voltage, instead of any kind of fluctuations
in the input voltage being applied or any variations in current, drawn by the load.
Depending upon the type of regulation, the regulators are mainly divided into two
types namely, line and load regulators.
Line Regulator − The regulator which regulates the output voltage to be constant,
in spite of input line variations, it is called as Line regulator.
Load Regulator − The regulator which regulates the output voltage to be
constant, in spite of the variations in load at the output, it is called as Load
regulator.
Depending upon the type of connection, there are two type of voltage regulators.
They are
The applied input voltage ViVi when increased beyond the Zener voltage Vz, then the
Zener diode operates in the breakdown region and maintains constant voltage across
the load. The series limiting resistor Rs limits the input current.
Case 2 − If the load current IL decreases, then the current through the Zener
diode IZ increases, as the current ISIS through RS series resistor remains constant.
Though the current IZ through Zener diode increases it maintains a constant output
voltage VZ, which maintains the load voltage constant.
31
Case 3 − If the input voltage Vi increases, then the current ISIS through the series
resistor RS increases. This increases the voltage drop across the resistor,
i.e. VS increases. Though the current through Zener diode IZ increases with this, the
voltage across Zener diode VZ remains constant, keeping the output load voltage
constant.
Case 4 − If the input voltage decreases, the current through the series resistor decreases
which makes the current through Zener diode IZ decreases. But the Zener diode
maintains output voltage constant due to its property.
With the input operating conditions, the current through the base of the transistor
changes. This effects the voltage across the base emitter junction of the transistor VBE.
The output voltage is maintained by the Zener voltage VZ which is constant. As both of
them are maintained equal, any change in the input supply is indicated by the change in
emitter base voltage VBE.
Hence the output voltage Vo can be understood as
Vo = Vz - Vbe
VO=VZ+VBE
Working of Transistor Series Voltage Regulator
The working of a series voltage regulator shall be considered for input and load
variations. If the input voltage is increased, the output voltage also increases. But this in
turn makes the voltage across the collector base junction VBE to decrease, as the Zener
voltage VZ remains constant. The conduction decreases as the resistance across
emitter collector region increases. This further increases the voltage across collector
emitter junction VCE thus reducing the output voltage VO. This will be similar when the
input voltage decreases.
When the load changes occur, which means if the resistance of the load decreases,
increasing the load current IL, the output voltage VO decreases, increasing the emitter
base voltage VBE.
With the increase in the emitter base voltage VBEVBE the conduction increases
reducing the emitter collector resistance. This in turn increases the input current which
compensates the decrease in the load resistance. This will be similar when the load
current increases.
If the load resistance decreases, there should be decrease in the output voltage Vo. The
current through the load increases. This makes the base current and collector current of
the transistor to decrease. The voltage across the series resistor becomes low, as the
current flows heavily. The input current will be constant.
The output voltage appears will be the difference between the applied voltage Vi and
the series voltage drop Vs. Hence the output voltage will be increased to compensate
the initial decrease and hence maintained constant. The reverse happens if the load
resistance increases.
34
Shunt voltage regulator has good Series voltage regulator has not so
voltage regulation even at high load good voltage regulation at high load
currents. currents.
In the shunt voltage regulator the In the series voltage regulator the
output DC voltage is constant. output DC voltages is not constant.
Shunt voltages regulator has good It has good efficiency for higher load
efficiency for low load current. currents.
Shunt voltage regulator has poor Series voltages regulator has better
voltage is constant. voltage regulation.
The control element has to bear the The control element has to carry the
load voltage across it. So, it is a high load current. So, it is a high current low
voltage low current device. voltage device.