Documente Academic
Documente Profesional
Documente Cultură
Assignment No. 2
Instructions:
Assignment must be hand written. Should be on plain A4 size paper. There is no need of covers.
Try to be precise. Paraphrase the contents used in assignment taken from any reference.
In case of Plagiarized assignment it will be cancelled.
This is Individual assignment. In case of copied from each other assignment will be cancelled straight
away.
Draw schematic diagram for the required tasks and properly mention microcontroller pins
connected with sensor(s) and I/O(s).
You must write sensor(s) and I/O(s) Characteristics and Datasheet Reference.
Deadline for Submission: 07-12-2018 12:00 PM
A gas sensor is to be installed in the Chemistry Lab to detect the concentration of Gases.
Design a system, which can detect the concentration of three gases given in the table-1.
Table-1
Gas Sensor Output Voltage(mV)
LPG 5-15
Butane 25-35
Propane 45-55
Find:
A- Draw schematic diagram of assigned gas sensor system and properly mention
microcontroller pins connected with sensor.
B- Calculate the step size required for Analog to Digital Converter (ADC).
C- Write a program that can detect gases and buzzer alarm with the frequencies given in
the following table-2.
Table-2
Gas Frequencies
LPG 100KHz
Butane 500KHz
Propane 950KHz
As an embedded system designer you have been assigned a task, to design a home
automation system with the following capabilities:
a) Sense the water level in a tank, and ON & OFF motor according to the water level. (Also
write procedure on aside to detect water level)
b) Monitor the lights outside the house; lights will turned off in the daytime. (Also write
procedure on aside to monitor lights)
c) Humidity Sensor (10% humidity - 10mV), to open the vents above 40% humidity. (Also
write procedure on aside to measure humidity)
d) Control the Electric Geyser; according to the received input from two Buttons. Button-1 to
set temperature 10C upwards and Button-2 to set temperature 10C downwards. Adjust
the geyser temperature accordingly (Suppose if user set the value to 300C, it will
maintain the given geyser temperature). (Also write procedure on aside to sense
temperature)
e) First, draw the schematic diagram for the required tasks and properly mention
microcontroller pins connected with sensor(s) and I/O(s).