Basic Electronic Components Overview
Basic Electronic Components Overview
1.1 REISITOR
Components and wires are coded with colors to identify their value and function.
The colors brown, red, green, blue, and violet are used as tolerance codes on 5-
band resistors only. All 5-band resistors use a colored tolerance band. The blank (20%)
“band” is only used with the “4-band” code (3 colored bands + a blank “band”).
1.2 CAPACITOR
1.3 INDUCTOR
When the current flowing through an inductor changes, the time-varying magnetic
field induces an electromotive force (e.m.f.) (voltage) in the conductor, described
by Faraday's law of induction. According to Lenz's law, the induced voltage has a
polarity (direction) which opposes the change in current that created it. As a result,
inductors oppose any changes in current through them.
1.4 DIODE
Although in the real world, diodes can not achieve zero or infinite resistance.
Instead, a diode will have negligible resistance in one direction (to allow current flow),
and a very high resistance in the reverse direction (to prevent current flow). A diode is
effectively like a valve for an electrical circuit.
Semiconductor diodes are the most common type of diode. These diodes begin
conducting electricity only if a certain threshold voltage is present in the forward
direction (i.e. the “low resistance” direction). The diode is said to be “forward biased”
when conducting current in this direction. When connected within a circuit in the reverse
direction (i.e. the “high resistance” direction), the diode is said to be “reverse biased”.
A diode only blocks current in the reverse direction (i.e. when it is reverse biased)
while the reverse voltage is within a specified range. Above this range, the reverse barrier
breaks. The voltage at which this breakdown occurs is called the “reverse breakdown
voltage”. When the voltage of the circuit is higher than the reverse breakdown voltage,
the diode is able to conduct electricity in the reverse direction (i.e. the “high resistance”
direction). This is why in practice we say diodes have a high resistance in the reverse
direction – not an infinite resistance.
Early LEDs were often used as indicator lamps, replacing small incandescent
bulbs, and in seven-segment displays. Recent developments have produced high-output
white light LEDs suitable for room and outdoor area lighting. LEDs have led to new
displays and sensors, while their high switching rates are useful in advanced
communications technology.
INTRODUCTION TO ARDUINO
Power Vin, 3.3V, 5V, Vin: Input voltage to Arduino when using an
GND external power source.
Serial 0(Rx), 1(Tx) Used to receive and transmit TTL serial data.
2.3 Applications
CHAPTER 3
INTRODUCTION TO LCD (IQUID CRYSTAL DISPLAY)
3.1 WHAT IS LCD?
3.2 SPECIFICATIONS
Resolution
Spatial performance
Temporal performance
Color performance
Brightness and contrast ratio
3.3 PIN OUT DIAGRAM
2 Vdd (+5 Volt) Powers the LCD with +5V (4.7V – 5.3V)
7 Data Pin 0
These LCD’s can also operate on 4-bit mode in such case Data pin
4,5,6 and 7 will be left free.
8 Data Pin 1
9 Data Pin 2
11 Data Pin 4
12 Data Pin 5
13 Data Pin 6
14 Data Pin 7
#include <LiquidCrystal.h>
int rs=6,en=7,d4=2,d5=3,d6=4,d7=5;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup()
[Link](16,2);
pinMode(13,OUTPUT);
[Link](3,0);
[Link]("WELCOME TO");
[Link](0,1);
[Link]("PHYSITECH ELECTRONICS");
delay(1000);
[Link]();
void loop()
digitalWrite(13,HIGH);
[Link]("WEL");
delay(1000);[Link]();
digitalWrite(13,LOW);
[Link]("HEL");
delay(1000);[Link]();
#include <LiquidCrystal.h>
int rs=6,en=7,d4=2,d5=3,d6=4,d7=5;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup()
[Link](16,2);
void loop()
{
digitalWrite(13,HIGH);
[Link](0,0);
[Link](“LED ON”);
CHAPTER 4
A gas sensor is a device which detects the presence or concentration of gases in the
atmosphere. Based on the concentration of the gas the sensor produces a corresponding
potential difference by changing the resistance of the material inside the sensor, which
can be measured as output voltage. Based on this voltage value the type and
concentration of the gas can be estimated.
The type of gas the sensor could detect depends on the sensing material present inside the
sensor. Normally these sensors are available as modules with comparators as shown
above. These comparators can be set for a particular threshold value of gas concentration.
When the concentration of the gas exceeds this threshold the digital pin goes high. The
analog pin can be used to measure the concentration of the gas.
void setup()
[Link](9600);
pinMode(A0,INPUT);
pinMode(12,OUTPUT);
pinMode(13,OUTPUT);
void loop()
int value=analogRead(A0);
[Link]("value:");
delay(500);
if(value>=34)
{
digitalWrite(12,HIGH);
[Link]("LED ON");
else
digitalWrite(12,LOW);
digitalWrite(13,LOW);
The relation between the measured property and soil moisture must be calibrated
and may vary depending on environmental factors such as soil type, temperature,
or electric conductivity. Reflected microwave radiation is affected by the soil moisture
and is used for remote sensing in hydrology and agriculture. Portable probe instruments
can be used by farmers or gardeners.
Soil moisture sensors typically refer to sensors that estimate volumetric water
content. Another class of sensors measure another property of moisture in soils
called water potential; these sensors are usually referred to as soil water potential sensors
and include tensiometers and gypsum blocks.
4.2.2 Specifications
void setup()
{
pinMode(A0,INPUT);
pinMode(13,OUTPUT);
pinMode(12,OUTPUT);
[Link](9600);
}
void loop()
{
int Soilmoisture=analogRead(A0);
[Link]("Soilmoisture ");
[Link](Soilmoisture);
delay(500);
if(value>=300)
digitalWrite(13,HIGH);
digitalWrite(12,HIGH);
delay(500);
digitalWrite(13,LOW);
digitalWrite(12,LOW);
}
It is used for many applications like wireless headset, game controllers, wireless
mouse, wireless keyboard and many more consumer applications.
It has range up to <100m which depends upon transmitter and receiver,
atmosphere, geographic & urban conditions.
It is IEEE 802.15.1 standardized protocol, through which one can build wireless
Personal Area Network (PAN). It uses frequency-hopping spread spectrum
(FHSS) radio technology to send data over air.
It uses serial communication to communicate with devices. It communicates with
microcontroller using serial port (USART).
Anti-Collision Detection
People Detection
Contouring or Profiling
Presence Detection
Box Sorting using a Multi-Transducer System
Easy Control of Trash Collection Vehicles
Pallet Detection with Forklifts
Bottle Counting on Drink Filling Machines
Fig: [Link] Ultrasonic sensor
Cost Efficiency
Prototyping
Adaptability
#define sensor 2
void setup()
pinMode(sensor,INPUT);
[Link](9600);
void loop() {
bool detection=digitalRead(sensor);
if(detection==HIGH)
if(detection==LOW)
#define sensor 2
#define LED 3
void setup()
pinMode(sensor,INPUT);
pinMode(LED,OUTPUT);
[Link](9600);
}
void loop() {
bool detection=digitalRead(sensor);
if(detection==HIGH)
digitalWrite(LED,HIGH);
if(detection==LOW)
digital Write(LED,LOW);
}
RFID (radio frequency identification) is a form of wireless communication that
incorporates the use of electromagnetic or electrostatic coupling in the radio frequency
portion of the electromagnetic spectrum to uniquely identify an object, animal or person.
Use cases for RFID technology include healthcare, manufacturing, inventory
management, shipping, retail sales and home use.
RFID and barcode technology are used in similar ways to track inventory, but three
important differences make each one a better choice in certain situations:
Data stored in an RFID tag can be updated in real-time. In contrast, bar code data
is read-only and cannot be changed.
RFID tags require a power source. In contrast, bar codes only require the
technology reading the bar code to have a power source.
Race Timing.
Attendee Tracking.
Materials Management.
Access Control.
IT Asset Tracking.
Tool Tracking.
CHAPTER 6
XILINX ISE 14.7
6.1 INSTALLATION PROCEDURE OF XILINX ISE 14.7
Step-1: Double click on the setup file we will see the following window on screen
Click next
Step-2: click on accept and agree terms and condition
Click on i also accept and agree to the following terms and conditions
Click next
Step-3: select accept and agree to the terms and conditions above click next
Step-4: select ISE web pack. Click next
Step-5: click next
Step-6: click next
Step-7: click install
Step-8: wait for install completed click finish
Step-9: Xilinx license configuration. Manager window opens go to manage license select
load license box. The select lice file from directory and close the window now ready to
use
CHAPTER 7
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.
PCBs have copper tracks to connect the holes where the various components are
located they are specially designed for each and every circuit and build construction very
easy. Though, making the PCB necessitates special tools. The different types of printed
circuit boards mainly include the following
Single-Sided PCBs
Double-Sided PCBs
Multilayer PCBs
Rigid PCBs
Flex PCBs
Rigid-Flex PCBs.
7.3 PCB DESIGING USING EAGLE SOFTWARE
Click on File and select New Project. Rename the Project to an appropriate name
(I will be designing the PCB for Fire Alarm Project). Right click on the project and create
new schematic.
A new schematic window will open with a blank work space. This is called the
Schematic Editor, where you can draw schematics of your design. Save the schematic file
with extension .sch.
After this, we have to add the necessary components which we are going to use in
our schematic. But, before that, we need to adjust the grid size of the schematic. Select
the Grid option and set the size to 1mm. Also set the alternate grid to a smaller value.
You can turn on the grid by selecting display on option.
NOTE: Setting Grid is optional and set the values you are comfortable with.
Now, we have to add components to our schematic. For this, select Add Option
from the side tool bar. A new window opens with a list of all the components available in
the libraries.
The first component is the Op – Amp, which is an 8 – pin DIP. So, instead of
adding the IC directly, we will add an 8 – pin DIP Socket. So, go to the library ic-
package and select DIL8 component. Alternatively, you can use the search option at the
bottom, if you know the name of the component.
After selecting the component, in our case an 8 – pin DIP Socket, click on OK
and then you can place the component on the schematic sheet. Click on the sheet once to
place the component and if you want to rotate the component, right click. After placing
the component on the schematic, press Esc to return to the component selection window.
Similarly, add the rest of the components required to complete the circuit. The
components are: a square type POT, quarter watt resistor, small buzzer, a thermistor and
a two pin screw terminal. Additionally, add the +5V and GND symbols from the supply
library. After placing all the components, rename the components to something
understandable. Also, mention the values like 10KΩ Resistor etc.
Next step is to connect these components. You have to use the net option from the
side tool bar and start making the connections.
After making all the connections, the final schematic will look something like the
circuit in the following image. Save the schematic file.
After completing the schematic, we have to proceed with the design of the PCB
layout. Select the switch to board option from the top tool bar. You can create the board
fie from the schematic.
A new window opens which is the PCB layout editor. The black space is the
board area and all the components are at the outside bottom left of the board area. Now,
we need to place the components in to the editor. You can adjust the grid size of the PCB
Layout editor, if you want.
Now, using the group option from the side tool bar, select all the components and using
move option move all the components and populate the board area.
Using the move option, place the components on the board as per the position you
want the component to be on the board. You can see thin yellow wires running between
the components. These wires are called air wires and are representation of connections
between components.
When we route the path between components, these air wires will disappear as an
indication of successful connection.
Now, it is time to make the connections or traces for the Printed Circuit Board.
For this, we are going to use the Route tool from the side tool bar. Also set the width of
the trace to be routed as your requirement. Here, I’ve set the trace width to approximately
1mm. Then, select the signal layer i.e. bottom layer, as our PCB is a single sided board.
Start routing the traces from pin to pin. As you progress with routing, the air wires
will start disappearing.
Complete all the connections and make sure that one trace do not interact with
other (as this is considered as a short circuit).
Adjust the size of the board as per the required dimensions and save the file. The
board file will be save with .brd extension. Before proceeding with how to make your
own PCB at home, I’ll show you one more important step: the Ground Pour.
Select the polygon option from the side tool bar and start drawing the polygon
along the edges of the board. Make sure that the signal layer is bottom. The starting and
ending points of the polygon must meet.
You will get a dotted line along the edges of the board. Select name option and
rename the polygon to GND. Hit ratsnest option from the side tool bar to see the ground
pour.
The layout for the PCB is ready. The next step is to check for errors and generate
the necessary gerber files for sending them to PCB Manufacturers.
7.6 PCB Manufacturing Process
Printed circuit boards are typically made with copper. Depending on the
requirements, the copper is plated to a substrate and carved away to expose the design of
the board. Since there are multiple layers, they must be lined up and bonded together for
a secure fit.
Before you begin manufacturing the PCB, you need to have a design of the board.
These blueprints will be what you base the process off of. The design process is generally
completed through computer software. Using a trace width calculator will help with a
majority of the details needed for inner and external layers.
A special printer called a plotted printer is used to print the design of the PCB. It
produces a film that shows the details and layers of the board. When printed, there will be
two ink colors used on the inside layer of the board:
Now is when the PCB will start to form. The substrate, which is the insulating
material (epoxy resin and glass fiber) that holds the components on the structure, begins
forming by passing the materials through an oven to be semicured. Copp3er is pre-
bonded to both sides of the layer and then etched away to show the design from the
printed films.
Once aligned, the resist and laminate go under ultraviolet lights to harden the
photo resist. The light reveals the pathways of copper. The black ink from before
prevents hardening in areas that will be removed later on. The board is then washed in an
alkaline solution to remove the excess photoresist.
Now, it is time to remove any unwanted copper that remained on the board. A
chemical solution, similar to the alkaline solution, eats away at the unwanted copper. The
hardened photoresist remains intact.
Step 7 – Inspection
The newly-cleaned layers will need to be inspected for alignment. The holes
drilled earlier help align the inner and outer layers. An optical punch machine drills a pin
through the holes to keep the layers lined up. After the optical punch, another machine
will inspect the board to ensure there are no defects. From here on out, you will not be
able to correct any missed errors.
Step 8 – Laminating the Layers
Now, you will see the board take shape as the layers are fused together. Metal
clamps hold the layers together as the laminating process begins. A prepreg (epoxy resin)
layer goes on the alignment basin. Then, a layer of substrate goes over the prepreg
followed by a copper foil layer and more prepreg resin. Lastly, there is on more copper
layer applied, which is the press plate.
A mechanical press is then used to press the layers together. Pins are punch
through the layers to keep them properly aligned and secured, these pins can be removed
depending on the technology. If correct, the PCB will go to the laminating press, which
applies heat and pressure to the layers. The epoxy melts inside of the prepreg that, along
with the pressure, fuses the layers together.
Step 10 – Drilling
Holes are drilled into the layers by a computer-guided drill to expose the substrate
and inner panels. Any remaining copper after this step is removed.
Step 11 – Plating
The board is now ready to be plated. A chemical solution fuses all of the layers
together. The board is then thoroughly cleaned by another series of chemicals. These
chemicals also coat the panel with a thin copper layer, which will seep into the drilled
holes.
Step 12 – Outer Layer Imaging
Next, a layer of photoresist, similar to Step 3, is applied to the outside layer before
being sent for imaging. Ultraviolet light hardens the photoresist. Any undesired
photoresist is removed.
Step 13 – Plating
Just like in Step 11, the panel is plated with a thin copper layer. After this, a thin
tin guard is layered to the board. The tin is there to protect the copper of the outside layer
from being etched off.
Step 14 – Etching
The same chemical solution from before removes any unwanted copper under the
resist layer. The tin guard layer protects the needed copper. This step established the
PCB’s connections.
All of the panels should be cleaned before the solder mask is applied. An epoxy is
applied with the solder mask film. The solder mask applies the green color you typically
see on a PCB. Any unwanted solder mask is removed with ultraviolet light, while the
wanted solder mask is baked on to the board.
Silk screening is a vital step since this process is what prints critical information
onto the board. Once applied, the PCB passes through one last coating and curing
process.
Step 17 – Surface Finish
The PCB is plated with either a solderable finish, depending on the requirements,
which will increase the quality/bond of the solder.
Step 18 – Testing
8.1 SOLDERING
Soldering is a process in which two or more items are joined together by melting
and putting a filler metal (solder) into the joint, the filler metal having a lower melting
point than the adjoining metal. Unlike welding, soldering does not involve melting the
work pieces. In brazing, the work piece metal also does not melt, but the filler metal is
one that melts at a higher temperature than in soldering. In the past, nearly all solders
contained lead, but environmental and health concerns have increasingly dictated use
of lead-free alloys for electronics and plumbing
Soldering Irons
Wand - The wand is the part of the iron that holds the tip. This is also the part that is
handled by the user. Wands are usually made of a variety of insulating materials (such as
rubber) to prevent the heat of the tip from transferring to the outside of the wand, but they
also house wires and metal contacts that transfer heat from the base or outlet to the tip.
This dual role of heating and preventing burns makes a high quality wand much
appreciated.
Solder Wick - is the eraser to soldering pencil. When dealing with issues such as jumpers
or the removal of parts (desoldering), solder wick comes in very handy. Solder wick –
aka desoldering braid – is comprised of thin copper wire braided together. Solder is
soaked (wicked) up by the copper allowing you to “erase” extra globs of solder.
Solder Vacuum (Solder Sucker) - is a great tool for removing solder left behind in
through-holes when desoldering components.
Before use, a new soldering tip, or one that is very dirty, must be tinned. "Tinning" is the
process of coating a soldering tip with a thin coat of solder. This aids in heat transfer
between the tip and the component you are soldering, and also gives the solder a base
from which to flow from.
Step 1: Warm Up The Iron:
Warm up the soldering iron or gun thoroughly. Make sure that it has fully come to
temperature because you are about to melt a lot of solder on it. This is especially
important if the iron is new because it may have been packed with some kind of coating
to prevent corrosion.
While the soldering iron is warming up, prepare a little space to work. Moisten a little
sponge and place it in the base of your soldering iron stand or in a dish close by. Lay
down a piece of cardboard in case you drip solder (you probably will) and make sure you
have room to work comfortably.
Thoroughly coat the soldering tip in solder. It is very important to cover the entire tip.
You will use a considerable amount of solder during this process and it will drip, so be
ready. If you leave any part of the tip uncovered it will tend to collect flux residue and
will not conduct heat very well, so run the solder up and down the tip and completely
around it to totally cover it in molten solder.
After you are certain that the tip is totally coated in solder, wipe the tip off on the wet
sponge to remove all the flux residue. Do this immediately so there is no time for the flux
to dry out and solidify.