Lab 3
Lab 3
Lab 3
L1 Introduction
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)
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
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 4
L3. 3 Laboratory Exercise III (30 Marks)
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.