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

EPE3016 (EC303)

QUIZ
Trimester 1 2020/21

Name: Group: ID:Major:

INSTRUCTIONS: Answer all questions in 20 Minutes, please write your answer on the question
sheet itself. Total = 24 marks.

1. What is the microcontroller used in the Arduino Uno board? What is the clock frequency of this
microcontroller? [1+1 marks]
Microcontroller Part Number = ATmega328
Clock frequency = 16 MHz

2. List the size in kilobytes, of the Flash and SRAM memory available on the microcontroller used in
Arduino Uno or Nano board. [1+1 marks]
Flash memory = 32 Kbytes.
SRAM memory = 2 Kbytes.

3. Define the significance of the term RoHS and list ONE example of substance banned in the
RoHS directive. [2+1 marks]
Significance of RoHS: RoHS helps to reduce the environmental and health impacts of electronics.
Moreover, it determines the collection, recycling and recovery targets of electrical goods.
Substance banned: Mercury

4. Figure Q4 shows the top view of the ESP-01 module. Name the components indicated by the
1
labels ‘1’ and ‘2’. Also explain the function of the pin 4. CH_EN on header. [1+1+2 marks] 2

Figure Q4.

Component labeled ‘1’ is: Monopole Antenna (2.4GHz)


Component labeled ‘2’ is: Piezoelectric Crystal (20MHz)
Pin 4. CH_EN is used to: Chips enable and it’s active high
1
EPE3016 (EC303)

5. The Arduino Uno or Nano boards contains 6 analog pins (A0-A5), which is
connected to the internal ADC (analog-to-digital converter) module within the
microcontroller. By default, the ADC module is referenced to +5V supply of the
microcontroller. Suppose a voltage of 1.2 Volts is applied to pin A1 by the liquid
level sensor. Determine the value of variable nLevel after executing the command
nLevel = analogRead(1) in your Arduino Sketch IDE. Show the details of your
calculations. Hint: the ADC module has a precision of 10 bits.
[4 marks]
Answer (show your calculation details):

6. The schematic of the pump driver used in our project is shown in Figure Q6. Briefly
explain the function of components D1, R1 and C1. [2+2+2 marks]

Figure Q6.

Function of D1is: Diode is to provide a safe path for inductive kickback of the motor
Function of R1is: Resistor helps to limit current the digital output
Function of C1is: Capacitor will reduce speed of fast voltage.
7. The following codes to send a byte of data using UART function are executed in
Arduino Uno. When an oscilloscope is used to observe the voltage at pin 11 of
Arduino Uno, the waveform in Figure Q7 is obtained. [1+2 marks]

2
EPE3016 (EC303)

State the baud rate of the UART port: 9600

Work out the value being transmitted on pin 11:

Figure
Q7.
3

You might also like