Page 1 of 1

note : using PIC16877A. you are required to design and implement a simple embedded system that controls a parking struct

Posted: Fri May 20, 2022 10:55 pm
by answerhappygod
note : using PIC16877A.
you are required to design and implement a simple embedded
system that controls a
parking structure that has two floors; Basement floor and Ground
floor. Each of the two floors has
separate entrance and exit and is equipped with lights. The system
to be designed is supposed to count
the cars that are entering and exiting each floor and display the
number of cars in each floor on two 7-
segment displays. Also, the system should control the lights in
each floor in an efficient manner. The
system should have two microcontrollers; MC1 and MC2. MC1 is
responsible for monitoring the entrances
and exits, counting the cars and controlling the lights in the two
floors, while MC2 is responsible for
controlling the 7-segment displays in the system. The two
microcontrollers are connected to each other
serially.
To detect whether a car is entering or leaving the parking, an
infrared obstacle detection sensor [IR
Example] or ultrasonic sensor [US-Example] is placed on each
entrance and exit. These sensors are
connected to MC1. Choosing the type of the sensor is a design
option. Whenever an activity is detected
at any entrance or exit, the count value of the cars is updated and
sent serially from MC1 to MC2 which
in turns updates the displayed value on the 7-segment displays.
Note that each floor has two 7-segment
displays to show the current number of cars in each floor. The
capacity of each floor is 15 cars and
whenever a floor reaches its maximum capacity, number 15 is flashed
continuously at a rate of your
choice.
As for light control, it is performed by MC1. The light in the
Ground floor is controlled based on the reading
received from a light-dependent resistor (LDR) such that the lights
are turned off during the day and
turned on in the night. Deciding the value of the threshold to use
for controlling the light is a design
parameter. In the Basement floor, the lights are normally turned
off and they are turned on for 60 seconds
whenever a car enters the floor. The lights are implemented as red
LEDs. If you use normal 220V light
bulbs, you get 3 points bonus.
Draw the circuit of this system