Académique Documents
Professionnel Documents
Culture Documents
PROJECT
REPORT OF
ONE WEEK
TRAINING IN
CSE
DEPARTMENT
Introduction to C++
C++ is an extended version C. C was developed at Bell Labs. in 1978. The purpose was
to create a simple language (simpler than assembly & machine code...) which can be used
on a variety of platforms. Later in the early 1980's C was extended to C++ to create an
object-oriented language. O(bject) O(riented) P(rogramming) is a style of programming
in which programs are made using Classes. A class id code in a file separate from the
main program - more on classes later. OOP in general & C++ in particular made it
possible to handle the complexity of graphical environments
C++ has been used successfully for every type of programming problem imaginable from
operating system to spreadsheet to expert system-and efficient compilers are available for
machine ranging in power from the Apple Macintosh to the Cray Super Computer.
The largest measure of C++ success seems to be based on purely practical considerations:
- The portability of the compiler.
- The standard library concept.
- Powerful and varied repertoire of operators.
- An elegant syntax.
- Ready access to the hardware when needed.
- And the ease with which applications can be optimized by hand coding isolated
procedures.
C++ is often called a middle level programming language. This is not a reflection on its
lack of programming power but more a reflection on its capability to access the system
low level function. Mot high level languages provide every thing the programmer might
want to do already build into the language. A low level language provides nothing other
than access to the machine basic instruction set.
Output :-
Enter three nos.
52
89
75
Largest of three no. is 89
NO. in ascending order
52
75 89
2.Program to enter any three nos. and generate series upto next three
nos.
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int a,b,c;
int i,n,d,t,r;
cout<<"enter 3 no.\n";
cin>>a>>b>>c;
d=b-a;
if(b-a==c-a)
{
for(i=4;i<=6;i++)
{
t=a+(n-1)*d;
cout<<t;
cout<<",";
}}
r=b/a;
if(b/a==c/a)
{
for(i=4;i<=6;i++)
{
t=pow(r,n)*a;
cout<<t;
cout<<",";
}}
d=sqrt(a);
if(d==sqrt(a)&&(d+1)==sqrt(b))
{
for(i=(d+4);i<=(d+6);i++)
{
t=pow(i,2);
cout<<t;
cout<<" ,";
}}
getch();
}
Output :-
Enter 3 no.
2 ,4,8
2,4,8,,16,32,64
3.Program to find whether the enter string is palindrome or not
6 WEEKS INSTITUTIONAL TRAINING
ECE B3
Amritsar College of Engineering & Technology, Amritsar
#include<iostream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>
void main()
{
clrscr();
char s1[50],s2[50];
cout<<"\n Enter the string";
gets(s1);
strcpy(s2,s1);
strrev(s1);
if(strcmp(s2,s1)==0)
{
cout<<"\n palindrome";
}
else
{
cout<<"\n not palindrome";
}
getch();
}
Output:-
Enter the string
Naman
palindrome
#include<iostream.h>
#include<conio.h>
class prime
{
public:
int num;
void prim()
{
int i,flag=0;
for(i=2;i<=num/2;i++)
{
if(num%i==0)
{
flag=1;
break;
}}
if(flag==0)
{
cout<<num<<",";
}
};
void main()
{
clrscr();
prime obj;
for(i=1;i<=100:i++)
{
obj.prim();
}
getch();
}
Output:-
1,2,3,5,7,11,13,17,19,23---------------------------------------------------,83,87,97
01
101
…………………….n
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,n;
cout<<"\n Enter the no. of lines for the generation of series";
cin>>n;
for(i=0;i<=n;i++)
{
for(j=0;j<=i;j++)
{
if(i%2==0&&j%2==0||i%2!=0&&j%2!=0)
{
cout<<"1";
}
else
{
cout<<"0";
}
}
cout<<"\n";
}
getch();
}
Output:-
Enter the no. of lines for the generation of series
5
1
01
101
0101
10101
#include<conio.h>
class bank
{
public:
int balance;
void deposit()
{
int amt;
cout<<"\n enter the amt";
cin>>amt;
balance=balance+amt;
}
void withdraw()
{
int amt;
cout<<"\n enter the amt";
cin>>amt;
balance=balance-amt;
}
void display()
{
cout<<"\nthe current balance is "<<balance;
}
};
void main()
{
clrscr();
int choice,x=0;
bank obj;
obj.balance=0;
while (x=0)
{
cout<<"\npress 1 for deposit\n";
cout<<"press 2 for withdraw\n";
cout<<"press 3 for display\n";
cout<<"press 4 for exit\n";
cin>>choice;
switch(choice)
{
case1:
obj.deposit();
break;
case2:
obj.withdraw();
break;
case3:
obj.display();
break;
case4:
x=1;
break;
default:
cout<<"wrong choice";
}}
getch();
}
Output:-
press 1 for deposit
press 2 for withdraw
press 3 for display
press 4 for exit
1
Enter the amt
7896
press 1 for deposit
press 2 for withdraw
press 3 for display
press 4 for exit
3
The current balance is
7896
press 1 for deposit
press 2 for withdraw
press 3 for display
press 4 for exit
4
class student
{
private:
int rn;
char name[50];
char add[50];
public:
void readdata()
{
cout<<"\n enter name";
cin>>name;
cout<<"\n enter address";
cin>>add;
}
void displaydata()
{
cout<<"\n name is"<<name;
cout<<"\n address is"<<add;
}
};
class newstudent:public student
{
private:
int marks;
char fathers[50];
public:
void readdata1()
{
readdata();
cout<<"\n enter marks";
cin>>marks;
cout<<"\n enter fathers name";
cin>>fathers;
}
void display()
{
displaydata();
cout<<"\n marks is"<<marks;
cout<<"\n fathers name is"<<fathers;
}
};
void main()
{
clrscr();
newstudent obj;
obj.readdata1();
obj.display();
getch();
}
Output:-
Enter name Shreya aggarwal
Enter address 53-a rani ka bagh
Enter marks 98
Enter father’s name Anil aggarwal
Name is shreya aggarwal
Address is 53-a rani ka bagh
Marks is 98
Father’s name is anil aggarwal
PROJECT
REPORT OF
ONE WEEK
TRAINING IN
MECHANICAL
DEPARTMENT
PROJECT
REPORT OF
FOUR WEEK
TRAINING IN
ECE
DEPARTMENT
INTRODUCTION TO ELECTRONICS
Electronics is the
branch of science and
technology which
makes use of the
controlled motion of
electrons through different media and vacuum. The ability to control electron flow is
usually applied to information handling or device control. Electronics is distinct from
electrical science and technology, which deals with the generation, distribution, control
and application of electrical power. This distinction started around 1906 with the
invention by Lee De Forest of the triode, which made electrical amplification possible
with a non-mechanical device. Until 1950 this field was called "radio technology"
because its principal application was the design and theory of radio transmitters, receivers
and vacuum tubes.
Types of circuits
Circuits and components can be divided into two groups: analog and digital. A particular
device may consist of circuitry that has one or the other or a mix of the two types
1. Analog circuits
Most analog electronic appliances, such as radio receivers, are constructed from
combinations of a few types of basic circuits. Analog circuits use a continuous range of
voltage as opposed to discrete levels as in digital circuits. Analog circuits are sometimes
called linear circuits although many non-linear effects are used in analog circuits such
as mixers, modulators, etc. Good examples of analog circuits include vacuum tube and
transistor amplifiers, operational amplifiers and oscillators. One rarely finds modern
circuits that are entirely analog. These days analog circuitry may use digital or even
microprocessor techniques to improve performance. This type of circuit is usually called
"mixed signal" rather than analog or digital. 46069025.doc
2. Digital circuits
Digital circuits are electric circuits based on a number of discrete voltage levels. To most
engineers, the terms "digital circuit", "digital system" and "logic" are
interchangeable in the context of digital circuits. Most digital circuits use two
voltage levels labeled "Low"(0) and "High"(1). Often "Low" will be near zero
volts and "High" will be at a higher level depending on the supply voltage in use.
An electronic component is any physical entity in an electronic system used to affect the
electrons or their associated fields in a desired manner consistent with the intended
function of the electronic system. Components are generally intended to be connected
together, usually by being soldered to a printed circuit board (PCB), to create an
electronic circuit with a particular function (for example an amplifier, radio receiver, or
oscillator). Components may be packaged singly or in more complex groups as integrated
circuits. Some common electronic components are capacitors, resistors, diodes,
transistors, etc. Components are often categorized as active (e.g. transistors and
thyristors) or passive (e.g. resistors and capacitors).
1. PASSIVE COMPONENTS
1.1 Resistor
A resistor is a two-terminal electronic component that produces a voltage across its
terminals that is proportional to the electric current passing through it in accordance with
Ohm's law:
V = IR
The primary characteristics of a resistor are the resistance, the tolerance, maximum
working voltage and the power rating. Other characteristics include temperature
coefficient, noise, and inductance. Less well-known is critical resistance, the value below
which power dissipation limits the maximum permitted current flow, and above which the
limit is applied voltage. Critical resistance is determined by the design, materials and
dimensions of the resistor.Resistors can be integrated into hybrid and printed circuits, as
well as integrated circuits. Size, and position of leads (or terminals) are relevant to
equipment designers; resistors must be physically large enough not to overheat when
dissipating their power.
As the resistors are connected together in series the same current passes through each
resistor in the chain and the total resistance, RT of the circuit must be equal to the sum of
all the individual resistors added together. That is
RT = R1 + R2 + R3
and by taking the individual values of the resistors in our simple example above, the total
resistance is given as:
Therefore, we can replace all 3 resistors above with just one single resistor with a value
of 9kΩ. Where 4, 5 or even more resistors are all connected together in series, the total
resistance of the series circuit RT would still be the sum of all the individual resistors
connected together. This total resistance is generally known as the Equivalent
Resistance and can be defined as; " a single value of resistance that can replace any
number of resistors without altering the values of the current or the voltage in the
circuit". Then the equation given for calculating total resistance of the circuit when
resistors are connected together in series is given as:
Resistors are said to be connected together in "Parallel" when both of their terminals are
respectively connected to each terminal of the other resistor or resistors. The voltage drop
across all of the resistors in parallel is the same. Then, Resistors in Parallel have a
Common Voltage across them and in our example below the voltage across the resistors
is given as:
In the following circuit the resistors R1, R2 and R3 are all connected together in parallel
between the two points A and B.
In the previous series resistor circuit we saw that the total resistance, RT of the circuit was
equal to the sum of all the individual resistors added together. For resistors in parallel the
equivalent circuit resistance RT is calculated differently.
Resistor Combinations
Resistor circuits that combine series and parallel resistors circuits together are generally
known as Resistor Combination circuits and the method of calculating their combined
resistance is the same as that for any individual series or parallel circuit. For example:
For example, Calculate the total current (I) taken from the 12v supply.
At first glance this may seem a difficult task, but if we look a little closer we can see that
the two resistors, R2 and R3 are both connected together in a "SERIES" combination so
we can add them together and the resultant resistance for this would be,
R2 + R3 = 8 Ω + 4 Ω = 12 Ω
Now we have single resistor RT in "PARALLEL" with the resistor R4, (resistors in
parallel) and again we can reduce this combination to a single resistor value of R (combination)
using the formula for two parallel connected resistors as follows.
The two remaining resistances, R1 and R(comb) are connected together in a "SERIES"
combination and again they can be added together so the total circuit resistance between
points A and B is therefore given as:
The resistance value, tolerance, and watt rating of the resistor are generally printed onto
the body of the resistor as numbers or letters when the resistor is big enough to read the
print, such as large power resistors. When resistors are small such as 1/4W Carbon and
Film types, these specifications must be shown in some other manner as the print would
be too small to read. So to overcome this, small resistors use coloured painted bands to
indicate both their resistive value and their tolerance with the physical size of the resistor
indicating its wattage rating. These coloured painted bands are generally known as a
Resistors Colour Code.An International resistor colour code scheme was developed
many years ago as a simple and quick way of identifying a resistors value. It consists of
coloured rings (in spectral order) whose meanings are illustrated :
Units
The ohm (symbol: Ω) is the SI unit of electrical resistance, named after Georg Simon
Ohm. Commonly used multiples and submultiples in electrical and electronic usage are
the milliohm (1x10−3), kilohm (1x103), and megohm (1x106).
Ohm's law
The behavior of an ideal resistor is dictated by the relationship specified in Ohm's law:
V = IR
Ohm's law states that the voltage (V) across a resistor is proportional to the current (I)
through it where the constant of proportionality is the resistance (R).
CAPACITORS
6 WEEKS INSTITUTIONAL TRAINING
ECE B3
Amritsar College of Engineering & Technology, Amritsar
Types of Capacitors
Ceramic Capacitor
Ceramic Capacitors or Disc Capacitors as they are generally called, are made by coating
two sides of a small porcelain or ceramic disc with silver and are then stacked
together to make a capacitor. For very low capacitance values a single ceramic disc
of about 3-6mm is used. Ceramic capacitors have a high dielectric constant (High-
K) and are available so that relatively high capacitances can be obtained in a small
physical size. They exhibit large non-linear changes in capacitance against
temperature and as a result are used as de-coupling or by-pass capacitors as they
are also non-polarized devices. Ceramic capacitors have values ranging from a few
picofarads to one or two microfarads but their voltage ratings are generally quite
low.
Ceramic types of capacitors generally have a 3-digit code printed onto their body to
identify their capacitance value. For example, 103 would indicate 10 x 103pF which is
equivalent to 10,000 pF or 0.01μF. Likewise, 104 would indicate 10 x 104pF which is
equivalent to 100,000 pF or 0.1μF and so on. Letter codes are sometimes used to indicate
their tolerance value such as: J = 5%, K = 10% or M = 20% etc.
CERAMIC CAPACITOR
Electrolytic capacitor
Electrolytic capacitors are capable of providing the highest capacitance values of any
type of capacitor. However they have drawbacks which limit their use. The voltage
applied to them must be polarized; one specified terminal must always have positive
potential with respect to the other. Therefore they cannot be used with AC signals
without a DC bias. They also have very low breakdown voltage, higher leakage current
and inductance, poorer tolerances and temperature range, and shorter lifetimes compared
to other types of capacitors
ELECTROLYTIC CAPACITOR
Capacitors are said to be "connected in series" when they are effectively "daisy chained"
together in a single line. The charging current (Ic) flowing through the capacitors is THE
SAME for the same amount of time so each capacitor stores the same amount of charge
regardless of its capacitance and:
QT = Q1 = Q2 = Q3 etc.....
In the following circuit, capacitors, C1, C2 and C3 are connected together in series
between points A and B.
(b)Capacitors in Parallel
Capacitors are said to be connected "in parallel" when both of their terminals are
respectively connected to each terminal of the other capacitor or capacitors. The
voltage (Vc) across all the capacitors connected in parallel is THE SAME. Then,
parallel capacitors have a Common Voltage supply across them and:
In the following circuit capacitor, C1 and capacitor, C2 are connected in parallel between
points A and B.
When capacitors are connected in parallel the total capacitance in the circuit is equal to
the sum of all the individual capacitors added together. That is:
Where all the capacitors are given in the same capacitance units, either uF, nF or pF.
Inductor
2.ACTIVE COMPONENTS
Active components are those that have gain or directionality, in contrast to passive
components, which have neither. They include semiconductor devices and vacuum tubes
(valves).
• DIODES
In the previous Signal Diode tutorial we saw that a "reverse biased" diode passes very
little current but will suffer breakdown or damage if the reverse voltage applied across it
is made to high. However, Zener Diodes or "Breakdown Diodes" as they are sometimes
called, are basically the same as the standard junction diode but are specially made to
have a low pre-determined Reverse Breakdown Voltage, called the "Zener Voltage"
(Vz). In the forward direction it behaves just like a normal signal diode passing current,
but when the reverse voltage applied to it exceeds the selected reverse breakdown voltage
a process called Avalanche Breakdown occurs in the depletion layer and the current
through the diode increases to the maximum circuit value, which is usually limited by a
series resistor. The point at which current flows can be very accurately controlled (to less
than 1% tolerance) in the doping stage of the diodes construction giving it a specific
Zener Breakdown voltage (Vz) ranging from a few volts up to a few hundred volts.
Zener Diodes are used in the "REVERSE" bias mode, i.e. the anode connects to the
negative supply, and from its I-V characteristics curve above, we can see that the Zener
diode has a region in its reverse bias characteristics of almost a constant voltage
regardless of the current flowing through the diode. This voltage across the diode (it's
Zener Voltage, Vz) remains nearly constant even with large changes in current through
the diode caused by variations in the supply voltage or load. This ability to control itself
can be used to great effect to regulate or stabilise a voltage source against supply or load
variations. The diode will continue to regulate until the diode current falls below the
minimum Iz value in the reverse breakdown region.
Light Emitting Diodes or LED´s, are among the most widely used of all the types of
diodes available. They are the most visible type of diode, that emits a fairly narrow
bandwidth of either visible coloured light, invisible infra-red or laser type light when a
forward current is passed through them. A "Light Emitting Diode" or LED as it is more
commonly called, is basically just a specialised type of PN-junction diode, made from a
very thin layer of fairly heavily doped semiconductor material. When the diode is
Forward Biased, electrons from the semiconductors conduction band combine with holes
from the valence band, releasing sufficient energy to produce photons of light. Because
of this thin layer a reasonable number of these photons can leave the junction and radiate
away producing a coloured light output.
3.The PN-junction
As the N-type material has lost electrons and the P-type has lost holes, the N-type
material has become positive with respect to the P-type. The external voltage required to
overcome this barrier potential that now exists and allow electrons to move freely across
the junction is very much dependent upon the type of semiconductor material used and its
actual temperature, and for Silicon this is about 0.6 - 0.7 volts and for Germanium it is
about 0.3 - 0.35 volts. This potential barrier will always exist even if the device is not
connected to any external power source.
The significance of this built-in potential is that it opposes both the flow of holes and
electrons across the junction and is why it is called the potential barrier. In practice, a
PN-junction is formed within a single crystal of material rather than just simply joining
or fusing together two separate pieces. Electrical contacts are also fused onto either side
of the crystal to enable an electrical connection to be made to an external circuit.
But before we can use the PN-junction as a practical device or as a rectifying device we
need to firstly "Bias" the junction, ie connect a voltage potential across it. On the voltage
axis above "Reverse Bias" refers to an external voltage potential which increases the
potential barrier. An external voltage which decreases the potential barrier is said to act in
the "Forward Bias" direction.
There are 3 possible "biasing" conditions for the standard Junction Diode and these are:
2. Reverse Bias - The voltage potential is connected negative, (-ve) to the P-type
material and positive, (+ve) to the N-type material across the diode which has the
effect of Increasing the
PN-junction width.
3. Forward Bias - The voltage potential is connected positive, (+ve) to the P-type
material and negative, (-ve) to the N-type material across the diode which has the
effect of Decreasing the PN-junction width.
Reverse Bias.
This condition represents the high resistance direction of a PN-junction and practically
zero current flows through the diode with an increase in bias voltage. However, a very
small leakage current does flow through the junction which can be measured in
microamperes, (μA). One final point, if the reverse bias voltage Vr applied to the junction
is increased to a sufficiently high enough value, it will cause the PN-junction to overheat
and fail due to the avalanche effect around the junction. This may cause the diode to
become shorted and will result in maximum circuit current to flow, Ohm's Law and this
shown in the reverse characteristics curve below.
Sometimes this avalanche effect has practical applications in voltage stabilising circuits
where a series limiting resistor is used with the diode to limit this reverse breakdown
current to a preset maximum value thereby producing a fixed voltage output across the
diode. These types of diodes are commonly known as Zener Diodes and are discussed in
a later tutorial.
2.Forward Bias.
in a characteristics curve of zero current flowing up to this "knee" voltage and high
current flow through the diode with little increase in the external voltage as shown below.
This results in the depletion layer becoming very thin and narrow and which now
represents a low impedance path thereby producing a very small potential barrier and
allowing high currents to flow. The point at which this takes place is represented on the
static I-V characteristics curve above as the "knee" point.
This condition represents the low resistance direction in a PN-junction allowing very
large currents to flow through the diode with only a small increase in bias voltage. The
actual potential difference across the junction or diode is kept constant by the action of
the depletion layer at about 0.3v for Germanium and about 0.7v for Silicon diodes. Since
the diode can conduct "infinite" current above this knee point as it effectively becomes a
short circuit, resistors are used in series with the device to limit its current flow.
Exceeding its maximum forward current specification causes the device to dissipate more
power in the form of heat than it was designed for resulting in failure of the device.
4.Transistor
The construction and circuit symbols for both the NPN and PNP bipolar transistor are
shown above with the arrow in the circuit symbol always showing the direction of
conventional current flow between the base terminal and its emitter terminal, with the
direction of the arrow pointing from the positive P-type region to the negative N-type
region, exactly the same as for the standard diode symbol.
There are basically three possible ways to connect a Bipolar Transistor within an
electronic circuit with each method of connection responding differently to its input
signal as the static characteristics of the transistor vary with each circuit arrangement.
In the previous tutorial we saw that the standard Bipolar Transistor or BJT, comes in
two basic forms. An NPN (Negative-Positive-Negative) type and a PNP (Positive-
Negative-Positive) type, with the most commonly used transistor type being the NPN
Transistor. We also learnt that the transistor junctions can be biased in one of three
different ways - Common Base, Common Emitter and Common Collector. In this
tutorial we will look more closely at the "Common Emitter" configuration using NPN
Transistors and an example of its current flow characteristics is given below.
The most important factor to notice is the effect of Vce upon the collector current Ic
when Vce is greater than about 1.0 volts. You can see that Ic is largely unaffected by
changes in Vce above this value and instead it is almost entirely controlled by the base
current, Ib. When this happens we can say then that the output circuit represents that of a
"Constant Current Source". It can also be seen from the common emitter circuit above
6 WEEKS INSTITUTIONAL TRAINING
ECE B3
Amritsar College of Engineering & Technology, Amritsar
that the emitter current Ie is the sum of the collector current, Ic and the base current, Ib,
added together so we can also say that " Ie = Ic + Ib " for the common emitter
configuration.
The PNP Transistor is the exact opposite to the NPN Transistor device we looked at in
the previous tutorial. Basically, in this type of transistor construction the two diodes are
reversed with respect to the NPN type, with the arrow, which also defines the Emitter
terminal this time pointing inwards in the transistor symbol. Also, all the polarities are
reversed which means that PNP Transistors "sink" current as opposed to the NPN
transistor which "sources" current. Then, PNP Transistors use a small output base current
and a negative base voltage to control a much larger emitter-collector current. The
construction of a PNP transistor consists of two P-type semiconductor materials either
side of the N-type material as shown below.
The Output Characteristics Curves for a PNP transistor look very similar to those for
an equivalent NPN transistor except that they are rotated by 180o to take account of the
reverse polarity voltages and currents, (the currents flowing out of the Base and Collector
in a PNP transistor are negative).
We saw in the first tutorial of this Transistors section, that transistors are basically made
up of two Diodes connected together back-to-back. We can use this analogy to determine
whether a transistor is of the type PNP or NPN by testing its Resistance between the three
different leads, Emitter, Base and Collector. By testing each pair of transistor leads in
both directions will result in six tests in total with the expected resistance values in Ohm's
given below.
The Field Effect Transistor, or simply FET however, use the voltage that is applied to
their input terminal to control the output current, since their operation relies on the
electric field (hence the name field effect) generated by the input voltage. This then
makes the Field Effect Transistor a VOLTAGE operated device.
The Field Effect Transistor is a unipolar device that has very similar properties to those
of the Bipolar Transistor ie, high efficiency, instant operation, robust and cheap, and they
can be used in most circuit applications that use the equivalent Bipolar Junction
Transistors, (BJT). They can be made much smaller than an equivalent BJT transistor and
along with their low power consumption and dissipation make them ideal for use in
integrated circuits such as the CMOS range of chips.
We remember from the previous tutorials that there are two basic types of Bipolar
Transistor construction, NPN and PNP, which basically describes the physical
arrangement of the P-type and N-type semiconductor materials from which they are
made. There are also two basic types of Field Effect Transistor, N-channel and P-channel.
As their name implies, Bipolar Transistors are "Bipolar" devices because they operate
with both types of charge carriers, Holes and Electrons. The Field Effect Transistor on
the other hand is a "Unipolar" device that depends only on the conduction of Electrons
(N-channel) or Holes (P-channel).
The Field Effect Transistor has one major advantage over its standard bipolar transistor
cousins, in that their input impedance is very high, (Thousands of Ohms) making them
very sensitive to input signals, but this high sensitivity also means that they can be easily
damaged by static electricity.
PCBs are inexpensive, and can be highly reliable. They require much more
layout effort and higher initial cost than either wire-wrapped or point-to-
point constructed circuits, but are much cheaper and faster for high-volume
production. Much of the electronics industry's PCB design, assembly, and
quality control needs are set by standards that are published by the IPC
organization
• Integrated circuit
electronic equipment in use today and have revolutionized the world of electronics.
Computers, cellular phones, and other digital appliances are now inextricable parts of the
structure of modern societies, made possible by the low cost of production of integrated
circuits.
Multimeter
A multimeter can be a hand-held device useful for basic fault finding and field service
work or a bench instrument which can measure to a very high degree of accuracy. They
can be used to troubleshoot electrical problems in a wide array of industrial and
household devices such as electronic equipment, motor controls, domestic
DISCRIPTION
The Multi Melody Generator circuit is powered by a 3V battery. A switch (S2) is the
main input-select switch for producing different tones in the loudspeaker. Various modes
of operation can be selected through DIP switches S3, S4 and S5 connected to pins 3, 5
and 7 of UM3481A (IC1), respectively. Pin 7 is the envelope circuit terminal through
which instrumental effects are produced. The preamplifier outputs are available at pins 10
and 11, which are fed to loudspeaker, driver transistors T1 (SK100) and T2 (SL100),
respectively.
When the circuit is switched on by closing switch S1, LED1 glows. When DIP switches
S3 and S5 are closed and S4 is open; and switch S2 is pressed, a melody is generated
through the loudspeaker. (The potentiometer VR1 is provided for volume control in the
circuit). Pressing the switch S2 again generates a new melodious tone. If switches S3 and
S4 are opened while S5 is closed, the same tone keeps repeating for every press of switch
S2. When switch S5 is open, an instrumental effect is generated from the loudspeaker.
This effect is produced by the enveloping circuit consisting of capacitor C1 and resistor
R2 connected to pin 7 of IC1. Only C1 or R2 or its parallel combination can be used to
generate a distinct instrument effect. To select any of these options, two jumper terminals
J1 and J2 are provided in the circuit at C1 and R2, respectively. For example, if you want
to use only C1, you can join J1 terminals using hookup wire or jumper cap and keep J2
open. The repetition of the musical effect depends on the status of switches S3 and S4.
The oscillation frequency is produced by the resistor and capacitor connected at pins 14
and 13 of IC1. This frequency is used as a time base for the tone, rhythm and tempo
generators. The quality of the melody tones depends on this frequency. Resistor R6 (100-
kilo-ohm) connected to pin 15 makes the circuit insensitive to variations in the power
supply.