Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali...
-
Upload
chris-gulliver -
Category
Documents
-
view
222 -
download
1
Transcript of Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali...
![Page 1: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/1.jpg)
Automation and Control of a limited size parking lot using PIC18 Microcontroller
Alaa SharifAli GhamlouchZaher Khattab
April 2011
Presented to: Dr. Youmin Zhang
![Page 2: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/2.jpg)
Contents Introduction
The Hardware
Circuit Diagram
Flow Chart
Sensing and Interrupts
Actuation
Feedback and Display
Conclusion
Future Work
![Page 3: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/3.jpg)
Introduction
• The objective of the project is to count number of cars
entering and exiting the parking lot
• Number of available lots is displayed on an LCD
• Automation components used: Sensors, Servo Motors,
LCD display, indicator LEDs
• components are connected to microcontroller (PIC18F4431)
to simulate the sensing, actuating,
and feedback
![Page 4: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/4.jpg)
The Hardware
• PIC18F4431 Microcontrollers
• 2 Sensors, each sensor consist of a IR
transmitter & 40 KHz receiver
• 555 timer
• 2 Electric Servo motors (HiTEC HS-422)
• LCD Display (2 Lines, Max 16 character in
each line)
• 4 indicating LEDs (2 Green, 2 Red)
![Page 5: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/5.jpg)
Circuit Diagram
![Page 6: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/6.jpg)
Flow Chart
![Page 7: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/7.jpg)
Sensing
• Introducing IR emitter-receiver sensor
• Implementation of the IR emitter-receiver sensor using 555 timer
![Page 8: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/8.jpg)
Sensing
• Frequency Calibration IR emitter-receiver:
0.693 (+) == 2.5 * sec
is a variable resistor
![Page 9: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/9.jpg)
Actuation
• 2 servo motors controlling the opening and closing of gates
• Generating delays to turn the motor(loop repetition)
![Page 10: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/10.jpg)
Actuation
• On and off delay defines duty cycle, period and frequency Neutral: 1.5 ms high , 18.5 ms
low
Rotation : 1.9 ms high, 18.1 ms low
• Maintaining the position of the motor
![Page 11: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/11.jpg)
Feedback and Display
• Interrupt through sensors
• Incrementing / decrementing a register to count available lots
• Displaying available lots on LCD
• Indicator LEDs to indicate opening and closing of gates
![Page 12: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/12.jpg)
Conclusion
• Combination between hardware and software was achieved with success
• Fulfilling the interface between the IR emitter receiver sensor, the 2 servo motors, the LCD and the four indicator LEDs
![Page 13: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/13.jpg)
Future Work
• Use of vision system to indicate presence of cars on gate
• Fully automated vision system indicating number of available slots and controlling the gates
• Use of IR sensors on all parking slots to indicate a vacant one, and displaying slot’s number on LCD
![Page 14: Automation and Control of a limited size parking lot using PIC18 Microcontroller Alaa Sharif Ali Ghamlouch Zaher Khattab April 2011 Presented to: Dr. Youmin.](https://reader038.fdocuments.us/reader038/viewer/2022102716/55173f97550346fe558b62cd/html5/thumbnails/14.jpg)
Thank You