Академический Документы
Профессиональный Документы
Культура Документы
EMBEDDED CONTROLLERS
(18EC2205)
LABORATORY MANUAL
2019-2020
Course Coordinator
Dr. N.Prabakaran, Associate Professor
Course Instructors
Mr.Nagesh Mantravadi, Associate Dean
Mr.Venkata Suman, Assistant Professor
Mrs. K.V.Sowmya, Assistant Professor
Mrs.V.Teju, Assistant Professor
Mr. Khanal Madhav Prasad, Assistant Professor
Mr.K.T.P.S.kumar, Assistant Professor
GUIDELINES TO STUDENTS
1. All students should obey the university Rules and Regulation of dress code, as well as other
instruction time to time. If students failing to follow the rules they are not allowed to enter lab.
2. Students must be punctual for the experiment. Students who are unable to attend lab sessions (with
valid reasons) must inform the lab instructors through an official letter.
3. Components will be issued from components rack by lab staff. Every student must produce his
identity card for the purpose and all the components must be returned to lab staff after being used. If
any damage is occurred students must bear as per university norms.
4. Abuse of the laboratory hardware, software, and/or systems will result in dismissal from the lab
and disciplinary action will be taken as per university norms.
5. Do not unplug any electrical connection without prior consent from the lab in-charge.
6. Complete the pre-lab session work well before your regular lab session, without completion of the
pre-lab work the students are not allowed to perform the practical.
7. The marks (pre-lab, in-lab, post-lab and viva) are assigned for each experiment, make sure it is
completed before commencing next lab, fail to complete the work marks will be deducted.
8. Student are allowed to use the lab for practice the project work/ experiments when there is no lab
session in laboratory, prior permission must be obtained from the staff well before.
This lab session has three components: pre-lab session, in-lab session and post lab session.
The pre-lab work should complete at home well before the regular lab session.
The inlab component is performed in the laboratory at specified time slots.
The post-lab is performed outside of regular laboratory hours to complete the lab report.
In lab Session
1. Complete the Pre-lab work evaluation session from your lab instructors.
2. Receive the components and make the connection as per the lab instructors approved design.
3. Upload the compiled codes into the MCU 8051/Arduino/Raspberry pi boards and execute the
codes for the exercises and observe the output/ results.
4. Complete all the tasks given in the exercises and get verification from the lab instructors.
5. Note the results and store the necessary figures and data for the lab report.
6. Answer the viva questions to test your understanding of the lab material.
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE
3 | EMBEDDED CONTROLLERS (18EC2205) LABORATORY MANUAL 2019-2020
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE
4 | EMBEDDED CONTROLLERS (18EC2205) LABORATORY MANUAL 2019-2020
EXPERIMENT NO.3:
OBJECTIVE:-
Design a System to display the continuous Count on seven segments LED Display using
Arduino Microcontroller Board.
ID NO:
Pre Lab Session In Lab Session Post Lab VIVA(5 M) Total Marks
Work(5M) Work (15 M) Session Work (30 M)
(5 M)
Remarks:
Pre-Lab Work:
Seven segment displays are of two types: common anode and common cathode. The Internal
structure of both types is nearly the same. The difference is the polarity of the LEDs and
common terminal. In a common cathode seven-segment display (the one we used in the
experiments), all seven LEDs plus a dot LED have the cathodes connected to common pins of
seven segments. To use this display, we need to connect GROUND to common pins and
connect +5V to the other pins to make the individual segments light up. The following
diagram shows the internal structure of common-cathode seven-segment display:
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE
5 | EMBEDDED CONTROLLERS (18EC2205) LABORATORY MANUAL 2019-2020
Connections:
SPACE FOR U
CIRCUIT DIAGRAM:
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE
6 | EMBEDDED CONTROLLERS (18EC2205) LABORATORY MANUAL 2019-2020
1. Save the screenshot/Pictures of Program and output obtained, and bring printout of the
same in next lab.
Viva Questions:
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE
7 | EMBEDDED CONTROLLERS (18EC2205) LABORATORY MANUAL 2019-2020
EXPERIMENT NO.4:
OBJECTIVE:-
Design Doorbell Music Synthesis with buzzer using Arduino Microcontroller Board.
ID NO:
Pre Lab Session In Lab Session Post Lab VIVA(5 M) Total Marks
Work(5M) Work (15 M) Session Work (30 M)
(5 M)
Remarks:
Pre-Lab Work:
Computer systems often need to interface with devices that have analog outputs. Pulse width
modulation (PWM) is a familiar method for simulating analog signals using digital outputs.
With this technique, the amount of power a system receives depends on the duty cycle of the
PWM signal. By varying the duty cycle, or the ratio of time the signal is high to low, a digital
system is able to continuously vary the output of a given system while maintaining a constant
frequency (Arduino PWM pins produce signals at 490Hz or at 980Hz). The number of
applications PWM works with is vast and includes servo motor positioning, DC motor speed
control, LED brightness, and sound effects. PWM can be applied to make sounds with a
speaker, but the frequency needs to be modified to generate various tones.
Digital Sound Synthesis
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE
8 | EMBEDDED CONTROLLERS (18EC2205) LABORATORY MANUAL 2019-2020
In order to produce a variety of pitches, a digital signal needs to convey the frequency of
sound it is trying to reproduce. The simplest approach is to generate a 50% duty cycle pulse
stream and set the frequency to the desired pitch. In order to generate a specific frequency,
the period of the note needs to be found, which is the amount of time it takes for the signal to
cycle once. This is done by taking the inverse of the frequency (Period=1/Frequency). Once
that value is known, it's a simple matter of keeping the signal high for half the length of the
period, and low for the other half. So in order to produce an A4 note, one would find the
period of that note, 1/440 = 2.2727 milliseconds. From there, hold the signal high for 1.13636
milliseconds, and low for the same
amount of time.
To demonstrate the difference between the built-in tone() function in Arduino and "manually"
generating the same tone via for-loops, the A4 note (440Hz) was synthesized via the
functions individually, and then simultaneously on both pins. In both cases the "manually"
made tone is about 5Hz slower than the tone() function's tone. This is true even when the
tones are played separately, which shows that tone() is neither interfering with the for-loop-
based method, nor is it affected by other processes the Arduino performs. The delay in the
for-loop method is a result of the Arduino needing to perform other processes between calls
to the tone generation function.
PROGRAM:
SPACE FOR U
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE
9 | EMBEDDED CONTROLLERS (18EC2205) LABORATORY MANUAL 2019-2020
CIRCUIT DIAGRAM:
1. Save the screenshot/Pictures of Program and output obtained, and bring printout of the
same in next lab.
Viva Questions:
What is modulation?
A: Modulation is the process of varying characteristics of a periodic waveform, called the
carrier signal, with a modulating signal that typically contains information to be transmitted.
PWM Advantages
1)less noise interference due to constant amplitude
2)Signal can be separated very easily at demodulation and noise can also be separated easily.
3)Synchronization between transmitter and receiver is not required unlike pulse position
modulation.
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE
10 | EMBEDDED CONTROLLERS (18EC2205) LABORATORY MANUAL 2019-2020
Ans: Pulse-width modulation (PWM) of a signal or power source involves the modulation of
its duty cycle, to either convey information over a communication channel or control the
amount of power sent to a load. PWM uses a square wave whose pulse width is modulated
resulting in the variation of the average value of the waveform is directly dependent on the
duty cycle D.
Koneru Lakshmaiah Education Foundation (Deemed to be University), NAAC - “A++”, Guntur, AP | ECE