Lab 3

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

EC1022 – Electrical Systems

Department of Electrical and Electronic Engineering


Faculty of Engineering
B.Sc. Eng. (Hons) / BEng (Hons) – Year 01, Semester 01

Laboratory Experiment 03: Building Prototype of the Plugin Board (Simulation)

L1 Introduction

The laboratory exercise designed to give experience in a simulation environment to the


students. Also to guide to construct a prototype of a simple electronic application to observe
the performance of the circuit. Use Proteus Software to complete the tasks. This laboratory
experiment is not group work. So each student should do the lab separately.

L2 Pre-Laboratory Exercise
(25 Marks)
Write answers for all the following questions. Indicate the section number and the question
number in your answer.

PR1. Fill in the below table by referring datasheet of the Arduino Uno development board.
(05 Marks)

Pin Category Pin Name Description/Purpose of each pin

Power

Reset

Analog Input/Output
Pins

Digital Input/Output
Pins

PR2. Draw a wiring diagram to blink a single LED using Arduino Uno Input/output 13 pins.

(04 Marks)
PR3. Refer to the schematic given in Figure 1. Complete the circuit by connecting the
remaining connection points in Figure 1(b) schematics with the Arduino schematic
given in Figure 1(a). Use the pins from 2 to 9 from the UNO board to connect the
LEDs.

(10 Marks)

PR4. What is the purpose of using LM7809L IC in the circuit in Figure 1? What is the
applicable input voltage range for the operation of the IC and the output voltage of the
IC?
(06 Marks)
PR5. Refer to the video tutorial uploaded.

(a)
Vin Vout VR 1
LM7809L
R
GND +
Vin Vout VR 2 1
+ LM7809L R
Vdc 470 µF 470 µF Regulated
- R
output + 3
GND 2
+ - R R
Vdc 470 µF 470 µF Regulated
-
GND output 4 3
- R
R
5
GND 4
R R
6
5 R
R
(b) 7 6
R R

8 7
R R

8
(c) GND

R
GND
Figure 1: (a) Layout of the Arduino Uno board pinout (b) schematic diagram of the power
supply circuit (c) schematic diagram of the LED connections

L3 Laboratory Work

Resources:
Arduino Portable Console:
https://drive.google.com/file/d/1-EC7SbXZp2sNPSC6vyF-BI7mgXSscTFC/view?usp=sharing
Supporting Video:
Video 01: https://youtu.be/OmUn1kgGWzU
Video 02: https://youtu.be/AqgetlPp8KY

L3. 1 Laboratory Exercise I (15 Marks)

1. Create a new project in Proteus. Select the project name to be “Lab3E1”.


2. Construct the circuit in Figure 1 in Proteus. Select R-value to be 330 Ω.
3. Set one of the channels in the DC source to 5 V
4. Connect the set DC source as the voltage input to the circuit using two connector wires.
5. Observe the output of the circuit. Measure the voltage across and the current through
each LED
1

R
2
R

R
4
R

5
R
6
R

7
R

8
R

+Vdc -
GND

Figure 2
L3. 2 Laboratory Exercise II (20 Marks)

1. Open the Arduino portable console and copy the programme below to the console.
Reference: https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
2. Save the file using your EN number and exercise number. (E.g. EN12345678_E2)
3. Follow the instructions given in the supporting video 2. Compile the programme and
generate the “.hex” file.
4. Create a new project in Proteus. Select the project name to be “Lab3E2”.

Figure 3: Arduino Programme

5. Create the circuit in Figure 3 on the Proteus schematic.


6. Upload the “.hex” (E.g. EN12345678_E2.ino.standard.hex)file to the Arduino UNO.
Hint: refer to the supporting video 1
7. Run the simulation and observe the output.
8. Now modify the circuit by connecting an Oscilloscope to the PD7 pin of the Arduino
UNO.
9. Adjust the volts/division and time/division to observe the waveform.
10. Observe the variation in the output signal, when increasing and decreasing the value
assigned to the “delay” in line 9 of the programme. Observe the behaviour of the LED.
11. Comment on your observations.
12. Compare your observations with the observation of Exercise 3 completed in Lab 2.
330 Ω

Figure 4
L3. 3 Laboratory Exercise III (30 Marks)

1. Create a new project in Proteus. Select the project name to be “Lab3E3”.


2. Now redraw the schematic in Figure 1 without the DC source. Connect the Pins from
1-8 in the circuit with the Arduino UNO board according to the pre-lab activity PR3.
3. Extended the Arduino program in L3.2 to blink the 8 LEDs, all at once.
4. Save the programme using your EN number and exercise number. (E.g.
EN12345678_E3)
5. Simulate your design using the modified programme and observe the output.

L3. 4 Submission

1. Copy the three simulation files, two “.ino” files and the two “.hex” files into one folder.
2. Name the folder using your EN number and zip the file.
3. Submit the file to the link given at the end of the lab session.
4. Complete your logbook including relevant images, comments, calculations, etc.
Upload the logbook to the link given.

You might also like