Assignment 2
Assignment 2
ECE/Exam Cell/002
Regular
VTU R 2015
ASSIGNMENT – II
B.Tech. – ECE
Course
Q.Set Assignment Questions Marks POs
Outcome
Create a square wave of 50% duty cycle with equal portions of high and low
2 CO3 1, 2
pulse on the bit P1.5.use timer 0 to generate delay of 200 microseconds.
1. Design a microcontroller system for Bidirectional Visitor Counter using
CO4, 1, 2,
8051: This Bidirectional Visitor Counter Circuit is helpful to count the 3
CO5 9
number of persons entering or leaving a room and to display it on a screen.
With the frequency of 22MHz, generate a frequency of 100KHz on the pin
2 CO3 1, 2
P2.3 using timer1 in mode 1.
Design a microcontroller system for RF Based Speed Control System for
Vehicles: Road safety at important places like schools, hill areas,
2. highways and express ways is very important. In this project, a speed
CO4, 1, 2,
control system for vehicles is proposed at places like mentioned above. It is a 3
CO5 9
microcontroller-based system with RF based communication. This is a
simple, low cost and a durable project for safety of drivers as well as the
public.
Generate a square wave with ON time of 3ms and OFF time of 10ms on all
2 CO3 1, 2
the pins of port 0. Assume the crystal frequency is 22Mhz
Design a microcontroller system for Automatic Railway Gate Controller
3.
with High-Speed Alerting System: The main aim of this project is to operate CO4, 1, 2,
3
and control the unmanned railway gate in the proper manner in order to avoid CO5 9
the accidents in the unmanned railway crossing.
Assuming XTAL=22Mhz, write a program to generate a pulse train of 2
2 CO3 1, 2
seconds period on pin P2.4. Use timer1in mode1.
4.
Design a microcontroller system for Bidirectional Visitor Counter using CO4, 1, 2,
3
8051: This Bidirectional Visitor Counter Circuit is helpful to count the CO5 9
VTU No. ECE/Exam Cell/002
Regular
VTU R 2015
VTU R 2015
VTU R 2015
and P2 respectively.
VTU R 2015
plaza will detect the users RFID tag and automatically deducts the required
amount and the GSM module sends a notification to the user.
Write a program to receive the data which has been sent serial form and send
2 CO3 1, 2
it out to port 0 in parallel form. Also save the data at RAM location 60H.
Design a microcontroller system for Real time Car Battery Monitoring
and Low Voltage Alert System: Battery is an important device in
25. automotive. The aim of this project is to design a real time battery monitoring
CO4, 1, 2,
system with low voltage alert system. It uses a microcontroller and has 3
CO5 9
voltage measurement circuit and temperature measurement circuit integrated
to it. This system can be used in UPS, hybrid vehicles, regular electric
vehicles etc.
With a frequency of 22MHZ, generate a frequency of 100KHz on pin P2.#.
2 CO3 1, 2
Use Timer 1 in mode 1.
Design a microcontroller system for Real Time Burglar Alarm System
Using PIR Sensor: Passive Infrared sensors (PIR sensors) can be used in
26.
security systems and can prevent burglary. A microcontroller-based burglar CO4, 1, 2,
3
alarm system is designed here. PIR sensor is the main module along with CO5 9
some other sensors like acoustic and magnetic sensors. The communication
is through RF link and an alarm system is installed at the receiving end.
Write an ALP to generate a square wave with an ON time of 3 ms and an OFF
2 CO3 1, 2
time of 10ms on all pins of port 0. Assume an XTAL of 22MHz.
Design a microcontroller system for RFID Based Bus Ticketing System:
27. The main problem of manual ticketing system is formation of Queues. RFID
CO4, 1, 2,
based ticketing system provides an easy way of buying tickets. RFID can be 3
CO5 9
used to identify the passenger and based on GPS; the fare is automatically
deducted as per the distance.
Write an ALP to design a counter for counting the pulses of an input signal.
2 CO3 1, 2
The pulses to be counted are fed to pin P3.4. XTAL = 22 MHz.
Design a microcontroller system for Auto Turn off Water Pump with
28. Different Time Slot: This is an innovative solution to operate a motor for
CO4, 1, 2,
small duration. If the motor is to be operated for a specific duration of time 3
CO5 9
and then turn off automatically, then this project is very helpful. Four switches
are used so that four different time slots can be programmed.
Write an 8051 C program to toggle all bits of PC continuously every 500ms.
2 CO3 1, 2
Use Timer1, mode 1 to create the delay.
Design a microcontroller system for Fire Extinguishing Robot: Fire
29.
fighters try their best to fight and extinguish fire when needed. But an early
CO4, 1, 2,
detection of fire at household level can prevent major accidents. This robot 3
CO5 9
can detect and extinguish fire. Such robots can even assist fire fighters. It can
be made to work in autonomous mode or manual mode.
Write an 8051 C Program to toggle only pin P1.5 continuously every 250ms.
30. 2 CO3 1, 2
Use Timer 0, mode 2 (8 bit auto reload to create the delay.
VTU No. ECE/Exam Cell/002
Regular
VTU R 2015
Design a circuit using 8051 microcontroller for digital temperature sensor CO4, 1, 2,
3
and explain. CO5 9
Write a C program for the 8051 to transfer the letter ‘A’ serially at 4800 baud
2 CO3 1, 2
continuously. use 8-bit data and 1 stop bit.
Design a microcontroller system for Public Garden Automation: An
31. important task in agriculture fields and gardens is timely watering of crops
CO4, 1, 2,
and plants. The aim of this project is to implement a microcontroller based 3
CO5 9
garden and agricultural field automation. The timings are programmed in the
microcontroller and the respective solenoid valves open or close accordingly.
With XTAL = 11.0592 MHZ, find the TH1 value needed to have the
2 CO3 1, 2
following baud rates. (i) 9600 (ii) 2400 (iii) 1200.
Design a microcontroller system for Digital Over Voltage Protection
32. System For Industrial Loads: Industries work at high voltages and powers.
Even then, a sudden over voltage may bring a catastrophic damage to the CO4, 1, 2,
3
whole system. The purpose of this project is to provide over voltage CO5 9
protection for industrial loads. This is based on AVR microcontroller and can
be applied to any high power, voltage and current system like substations.
Write an ALP to transfer a letter "Y" serially at 9600 baud continuously, and
2 CO3 1, 2
also to send a letter "N" through port 0, which is connected to a display device.
Design a microcontroller system for RF Transceiver Based Traffic Alert
System for Automobiles: This is a microcontroller-based traffic alert system.
33.
An RF transmitter at the traffic signals transmits the status of the signal lights. CO4, 1, 2,
3
The receiver at the vehicle will detect these signals and displays on a LCD CO5 9
display. In case the vehicle is too close to another vehicle or an object, the
anti-collision system alerts the user.
Write an ALP to receive the data which has been sent in serial form and send
2 CO3 1, 2
it out to port 0 in parallel form. Also save the data at RAM location 60H.
34.
Design a circuit using 8051 microcontrollers for Stop watchcircuit with CO4, 1, 2,
3
LCD Display and explain CO5 9
If the crystal frequency is 22 MHz, what will be the baud rate if (a) TH1 = -
2 CO3 1, 2
3; (b) TH1=-12 with SMOD=0 and SMOD=1?
35.
Design a circuit using 8051 microcontrollers for Electronic voting machine CO4, 1, 2,
3
and explain CO5 9
Write an assembly language program to send the text string "Hello" to serial
2 CO3 1, 2
#1. Set the baud rate at 9600, 8 bit data and 1 stop bit.
Design an Electronic Voting Machine using Microcontroller Electronic
voting machine has now replaced the traditional mechanism of ballot voting
due to several advantages like security, automatic counting etc. The system
36. consists of two units – the control unit and the user unit. The control unit
CO4, 1, 2,
consists of some control switches and status LED’s and is handled by the 3
CO5 9
presiding officer. The user unit provides voting facility and contains a matrix
keypad, a memory IC and an LCD display. The system operates in three
modes – the Idle mode, voting mode and Counting mode. Each mode is
identified by a status byte written in the EEPROM. In Ideal mode the machine
VTU No. ECE/Exam Cell/002
Regular
VTU R 2015
Write a C program for the 8051 to transfer the letter "A" serially at 4800 baud
2 CO3 1, 2
continuously. Use 8 bit data and 1 stop bit.
Design a Heart rate Monitoring system using microcontroller This project
kit is a model of Heart Rate Measuring devices we see in hospitals, especially
inside ICU (Intensive Care Units). Heart Rate Monitor project kit is designed
37.
on the principle of Photo plethysmography (which is the process of optically CO4, 1, 2,
3
estimating volumetric measurement of an organ). The device senses the heart CO5 9
rate from the fingertip using IR reflection method and displays it on a 16×2
LCD display in beats per minute. This project kit is very unique and is ideal
for students taking Bio Medical courses like Bio Medical Engineering.
Write an 8051 C program to transfer the message “WELCOME" serially at
9600 baud, 8 bit data, 1 stop bit. Do this continuously. 2 CO3 1, 2
38.
Design a circuit using 8051 microcontroller for Elevator (Lift)Controller and CO4, 1, 2,
3
explain CO5 9
Write a C program to receive bytes of data serially and put them in P1. Set
2 CO3 1, 2
the baud rate at 4800, 8 bit data and 1 stop bit.
Design a Moisture sensing Automatic plant watering system. The system
simply senses the moisture level and switches on the irrigation pump when
39.
the moisture is below the set limit. The system switches off the pump when CO4, 1, 2,
3
the moisture rises above the set point. The moisture level threshold can be set CO5 9
using a trim pot on the system. The status of the pump (whether ON or OFF)
is displayed on a LCD display.
Write an 8051 C program to send two different strings to the serial port.
Assuming that SW is connected to pin P2.0, monitor its status and make a
2 CO3 1, 2
decision as follows: SW=0; send your first name, SW=1: send your last name.
Assume XTAL = 11.0592 MHz, baud rate of 9600, 8- bit data, 1 stop bit.
Design a Password Based Home Security System – is a real-world
application very similar to RFID based Access Control System. In this project
40. kit, we use a 4×4 keyboard for checking security access instead of RFID
reader and tag. A password is preset and stored in the program memory of
CO4, 1, 2,
8051 microcontroller. When a user/employee inputs the correct password and 3
CO5 9
hits Lock/Unlock key access will be granted. If the user inputs a wrong
password and hits Lock/Unlock key, access will be denied. A solenoid lock
can be connected to the output relay to automatically open/close the door.
Status messages are displayed on 16×2 LCD display
Write an ALP to display a value of 'Y' at port 0 and 'N' at port 2 and also
generates a square wave of 10KHz with Timer0 in mode 2 at port pin P1.2. 2 CO3 1, 2
XTAL = 22MHz.
41.
Design a circuit using 8051 microcontrollers for Water Levelcontroller and CO4, 1, 2,
3
explain CO5 9
VTU No. ECE/Exam Cell/002
Regular
VTU R 2015
Write an ALP to generate two square waves one of 5KHz frequency at pin
2 CO3 1, 2
P1.3, and another frequency 25KHz at pin P2.3. Assume XTAL=22MHz.
42.
Design a circuit using 8051 microcontroller for object counter and explain CO4, 1, 2,
3
CO5 9
Two switches are connected to pins P3.2 and P3.3. When a switch is pressed,
the corresponding line goes low. Write a program to (a) light all LEDs
2 CO3 1, 2
connected to port), if the first switch is pressed. (b) light all LEDs connected
to port 2, if the second switch is pressed.
Design a Gas Leakage Detector using microcontroller – is an interesting
project which finds real-world application in home kitchens, hotels and other
43.
places where gas leakage is a common issue. This project kit is designed using
MQ2 gas sensor which senses any type of LPG. When LPG leaks, the MQ2 CO4, 1, 2,
3
gas sensor will be activated. 8051 controller in the project kit identifies this CO5 9
and actuates the shutdown mechanism by turning output relay ON. The 16×2
LCD displays messages when a gas leak is detected. This project is very
useful in real world and it saves lives.
What is the difference between the RET and RETI instructions? Explain why
2 CO3 1, 2
we cannot use RET instead of RETI as the last instructions of an ISR.
44.
Design a circuit using 8051 microcontroller for Intelligent CO4, 1, 2,
3
temperature control system using DS1820 and explain CO5 9
Discuss what happens if interrupts INT0, TF0 and INT1 are activated at the
same time. Assume priority levels were set by the power up reset that the 2 CO3 1, 2
45. external hardware interrupts are edge triggered.
Design a circuit using 8051 microcontroller for simple calculator and explain CO4, 1, 2,
3
CO5 9
Remember K2-Understand K3-Apply K4-Analyze K5 –Evaluate K6 –Create
VTU No. ECE/Exam Cell/002
Regular