UIU Lab Report
UIU Lab Report
UNIVERSITY (UIU)
CSE 14: Electronics Laboratory
Laboratory Manual
Program: B.Sc. CSE
Trimester: Summer
Table of Contents
UNITED INTERNATIONAL
UNIVERSITY
Aim:
To understand:
• Basic electrical components and equipment
• Simple measurements
• Basic voltage and current laws
• Linear and non-linear components
Equipment
• Trainer Board
• Multimeters
• Ammeters
• Wires
• Resistors: 100 ohms, 120, 1K
• LED (Light Emitting Diode) – any colour
Multimeter
Prototyping board
Procedure:
Vary the power supply so as to measure the voltage, V1, for the
values of current given in the table.
Plot V1 versus I1.
You should get a straight line through the origin as this is a Linear
component.
The slope of the line should be the resistance.
Voltage
0V 2V 4V 6V 8V 10 V 12 V 14 V 16 V
V1
Current
Vs
Procedure:
Vary the power supply so as to measure the voltage, V1, for the
values of current given in the table.
Plot V1 versus I1.
This is a Non-Linear component.
The slope of the line should be the resistance.
The shorter LED lead is the cathode, which is connected to the negative
supply.
Report:
▪ Objectives
▪ Apparatus
▪ Part A: Linear Components
o Circuit Diagram
o Data Table
o I~V curve of resistor (use graph paper)
▪ Part B: Non-linear Components
o Circuit Diagram
o Data Table
o I~V curve of diode (use graph paper)
▪ Q/A:
o Why does the resistivity of semiconductor
decrease with increasing temperature?
o Explain color code of resistors.
o Why is ammeter connected in series whereas
voltmeter connected in parallel?
UNITED INTERNATIONAL
UNIVERSITY
Part-1:
Part- 2:
Report:
▪ Objectives
▪ Apparatus
▪ Part 1: I~V curve of Diode
o Circuit Diagram
o I~V curve of diode
▪ Part 1: Rectifier Circuit
o Circuit Diagram
o V R ~t & V IN ~t curve
o V D ~t & V IN ~t curve
▪ Q/A:
o Explain different biasing of a diode
o What is zener diode. Write a short note on it.
o What is LED? Explain its working mechanism.
o Mention some differences between a normal
diode and a light emitting diode.
UNITED INTERNATIONAL
UNIVERSITY
PREVIEW
In electrical systems AC to DC conversion is one of the most essential
factors. In any electronic device, generally all the electronic components and
IC operate on DC power supply. Even in large industrial systems, where
high voltage is used, the AC to DC conversion is an important factor.
The component that is widely used as a rectifier is the diode. Diode is a two
terminal device that permits the flow of current in only one direction. (The
detail of the study of diode is discussed in the previous experiment). The
process of converting an AC voltage to DC voltage is called rectification.
AC VOLTAGE DC VOLTAGE
RECTIFIER
There are two types of rectifiers,
Fig. 1.1
5. Add a capacitor across the load. (Connect 1f capacitor across the
load resistor).
6. Observe the input voltage (Vi) and the output (Vo) simultaneously
on the oscilloscope in dual mode.
7. Draw them in the Observation Sheet in their allotted space.
8. Replace the capacitor across the load. (Connect 10f capacitor
across the load resistor).
9. Observe the input voltage (Vi) and the output (Vo) simultaneously
on the oscilloscope in dual mode.
10. Draw them in the Observation Sheet in their allotted space.
Fig. 2.1
5. Add a capacitor across the load. (Connect 1f capacitor across the
load resistor).
6. Observe the output (Vo) on the oscilloscope and draw them in the
Observation sheet
7. Replace the capacitor by 10uf across the load resistor
8. Observe the output (Vo) on the oscilloscope and draw them in the
Observation sheet
Report:
▪ Objectives
▪ Apparatus
▪ Part A: Half wave rectifier
o Circuit Diagram
o Output Graph (Attach page 15 of lab sheet)
▪ Part B: Full wave rectifier
o Circuit Diagram
o Output Graph (Attach page 16 of lab sheet)
▪ Q/A:
o Write a short note on rectifier circuit and its use
in electronics?
o Why is Full wave rectifier better than half wave
rectifier? Explain in detail.
o Discuss various types of full wave rectifier
circuit.
UNITED INTERNATIONAL
UNIVERSITY
PREVIEW
LIMITER/CLIPPER
Limiter or clippers are used to cut-off or eliminate a portion of an ac signal.
A limiter can be realized by using diode, resistor and a DC source.
LIMITER/
CLIPPER
INPUT SIGNAL OUTPUT SIGNAL
FIG. 1
CLAMPER
The clamper circuit is one that will clamp a signal to a different dc level. A
clamping circuit can realized using a diode, resistor and a capacitor.
CLAMPER
Fig. 3
6. Construct circuit shown in Fig.3. Reverse the polarity of the
diode.
7. Apply 10V p-p voltage as the AC signal and set the frequency to
500Hz.
8. Observe the input voltage (Vi) and the output (Vo) simultaneously on
the oscilloscope in DUAL MODE.
9. Sketch input and output waveforms in the Observation Sheet in
their allotted space.
10. Observe and sketch the waveforms in XY MODE in the Observation
Sheet in their allotted space.
Fig. 4
Fig. 5
7. Apply 10V p-p SINE WAVE to the input and set the frequency to
500Hz.
8. Sketch input and output waveforms in the Observation Sheet in
their allotted space.
Report:
▪ Objectives
▪ Apparatus
▪ Part 1: Clipping circuit
o Circuit Diagram
o V in ~t & V out ~t curve
▪ Part 2: Clipping circuit with Zener diode
o Circuit Diagram
o V in ~t & V out ~t curve
▪ Part 3: Clamping circuit
o Circuit Diagram
o V in ~t & V out ~t curve
▪ Q/A:
o Write a short note on clipping circuit and its use
in electronics?
o Write a short note on clamping circuit and its
use in electronics?
o How is energy stored in a capacitor? Explain in
detail.
o Prove that half-wave rectifier is a clipping
circuit.
UNITED INTERNATIONAL
UNIVERSITY
EQUIPMENTS:
Preview
Arduino Products:
• ENTRY LEVEL :
o Uno
o Leonardo
o Micro
o Nano
• ENHANCED FEATURES:
o Mega
o Zero
o Due
o Motor Shield
• INTERNET OF THINGS
o Yun
o Ethernet
o GSM Shield
Arduion Uno : The UNO is the best board to get started with electronics
and coding. If this is your first experience tinkering with the platform, the
UNO is the most robust board you can start playing with. The UNO is the
most used and documented board of the whole Arduino family.
Specifications:
Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage
7-12V
(recommended)
Input Voltage (limit) 6-20V
Digital I/O Pins 14 (of which 6 provide PWM output)
PWM Digital I/O Pins 6
Analog Input Pins 6
DC Current per I/O Pin 20 mA
DC Current for 3.3V Pin 50 mA
32 KB (ATmega328P) of which 0.5 KB used by
Flash Memory
bootloader
SRAM 2 KB (ATmega328P)
EEPROM 1 KB (ATmega328P)
Clock Speed 16 MHz
LED_BUILTIN 13
Hardware :
UNO has 14 digital input – output (I/O) pins which can be used as either
input or output by connecting them with different external devices and
components. Out of these 14 pins, 6 pins are capable of producing PWM
signal. All the digital pins operate at 5V and can output a current of 20mA.
Some of the digital I/O pins have special functions which are describe below.
• Pins 0 and 1 are used for serial communication. They are used to
receive and transmit serial data which can be used in several ways
like programming the Arduino board and communicating with the
user through serial monitor.
• Pins 2 and 3 are used for external interrupts. An external event can
be triggered using these pins by detecting low value, change in value
or falling or rising edge on a signal.
• As mentioned earlier, 6 of the 14 digital I/O Pins i.e. 3, 5, 6, 9, 10, and
11 can provide 8-bit PWM output.
• Pins 10, 11, 12 and 13 (SS, MOSI, MISO AND SCK respectively) are
used for SPI communication.
Pin 13 has a built-in LED connected to it. When the pin is HIGH, the LED
is turned on and when the pin is LOW, it is turned off.
The UNO board has on-board voltage regulators for 5V and 3.3V, which can
be used as power supply for small external devices like LEDs.
Writing Code :
Setup : Set pin’s I/O operation, and other initializations. The setup
function runs once when you press reset or power the board
Example:
//set pin 5 as input :
pinMode(5, INPUT);
//set pin 6 as output :
pinMode(6, OUTPUT);
//use the serial port :
Serial.begin(9600);
loop :
works as infinite loop , working logic and other code and written here . The
loop function runs over and over again forever
Example :
loop(){
// print hello world
Serial.println("Hello World");
Experiment : A (Blink)
Problem : Turns on an LED on for one second, then off for one second,
repeatedly.
Circuit Diagram:
Task : Connect a LED’s positive leg to pin 13 with a resistor and connect the
other leg to ground pin. Provide HIGH voltage to pin 13 and wait for some
milliseconds and then provide LOW voltage to pin 13 thus the led will blink
Code Snippets
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
void loop() {
// turn the LED on (HIGH is the voltage level)
digitalWrite(13, HIGH);
// wait for a second
delay(1000);
// turn the LED off by making the voltage LOW
digitalWrite(13, LOW);
// wait for a second
delay(1000);
}
Experiment : B (Button)
Problem : Turns on and off a light emitting diode(LED) connected to digital
pin 13, when pressing a pushbutton attached to pin 2.
Circuit Diagram:
Task:
Attached LED from pin 13 to ground. Attached pushbutton attached to pin
2 from +5V. Attached 10K resistor attached to pin 2 from ground.
Code Snippets :
int buttonState = 0;
void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
}
void loop() {
// read the state of the pushbutton value:
Experiment : C (PWM)
Problem: This example shows how to fade an LED on pin 9 using the
analogWrite() function.
[ Note: The analogWrite() function uses PWM, so if you want to change the
pin you're using, be sure to use another PWM capable pin. On most
Arduino, the PWM pins are identified with a "~" sign, like ~3, ~5, ~6, ~9,
~10 and ~11]
Circuit Diagram:
Task : Connect the anode (the longer, positive leg) of your LED to digital
output pin 9 on your board through a 220 ohm resistor. Connect
the cathode (the shorter, negative leg) directly to ground.
Code Snippets:
Circuit Diagram:
Writing Report
Problem: Control a motor speed with a potentiometer draw circuit and
write code.
UNITED INTERNATIONAL
UNIVERSITY
OBJECTIVE :
EQUIPMENTS:
Output:
Check the output for various combinations of input voltages (00, 01,
10, 11), where 0 represents Ground and 1 represents +5v.
Fill up the Truth Table in the observation sheet.
Output:
Check the output for various combinations of input voltages (00, 01,
10, 11), where 0 represents Ground and 1 represents +5v.
Fill up the Truth Table in the observation sheet.
Group:
EXP 7
ID: