Sunteți pe pagina 1din 2

Microprocessors & Interfacing Techniques

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

QUESTION NO: 1 (CLO-4 Based Question) [25]

You are assigned a task, to design an automated bottles


filling system. Conveyer belt motor is controlled through +
and - terminals of Motor Control Circuit. Filler takes 2
second to fill each bottle.
Draw schematic diagram of your design, which properly
mention microcontroller pins for sensor outputs, filler input
and motor Control Circuit terminals.
You need to write a code, which will fulfill the following
requirements.
a) Detect bottles by using sensor1 (if sensor output is
ONE, then it means bottle is present otherwise not).
b) If bottle is detected, stop the conveyer belt motor.
c) 'ON' the filler for 2 seconds then stop the filler.
d) Start the conveyor belt motor so that the next bottle can be filled.
e) Use Counter0 (PD7), which is connected to Sensor2 to count the number of bottles. If
counter reaches 60. Buzzer the alarm with 2 seconds pulse.
QUESTION NO: 2 (CLO-4 Based Question) [15]

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

QUESTION NO: 3 (CLO-4 Based Question) [25]

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).

S-ar putea să vă placă și