1 / 14

An-Najah National University Faculty of Engineering Computer Engineering Department

بسم الله الرحمن الرحيم. An-Najah National University Faculty of Engineering Computer Engineering Department. Graduation Project. Computerized Gas station. Prepared By Muhammad Addas & Ramez Dmaidi Supervised By Dr- Loai Malhes. Introduction.

Télécharger la présentation

An-Najah National University Faculty of Engineering Computer Engineering Department

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. بسم الله الرحمن الرحيم An-Najah National UniversityFaculty of EngineeringComputer Engineering Department

  2. Graduation Project Computerized Gas station Prepared By Muhammad Addas & Ramez Dmaidi Supervised By Dr- Loai Malhes

  3. Introduction • In this project we tried to design full computerized Gas station without employees in station, this station is one of multiple networked units. • Each unit is connected serially with PC In which enough information about customers available including account number and balance. • The customers enter account number, the computer in that station checks for valid account and sends back the result to PIC. • If the account valid the user enter the number of liters wanted.

  4. Objectives 1) No need for the worker in each station. 2) The system will work until the amount that entered finished. 3) Security, each user has account number. 4) The price updated by the centralized server daily.

  5. Hardware Diagram LCD Keypad Microcontroller PIC 16F877 Relay Pump Serial PC Simulation

  6. Hardware Components 1) PIC16F877 : we choose it because we are familiar and available in the market with suitable price. 2) LCD : 16 char one line LCD. 3) pump : 12V. 4) Relay: 12 v. 5) Buffer to drive Relay 7407.

  7. Keypad: to interface card reader we need to save the pins of the pic so we choose the following design of keypad: • The buttons are debounced by hardware. • Then the buttons are interfaced to 8-3 active low encoder we need two encoders for 12 buttons. • Then the output of them is fed to PIC.

  8. Encoder Connection

  9. Vcc = 12 1KΏ To Pump Relay 1 2 7407 From PIC c3 Pump Circuit We use 7407 to drive the pump as it requires high current and the relay to isolate the pump from the PIC

  10. C7 U1 C6 11 14 T1IN T1OUT 10 7 T2IN T2OUT 13 12 R1IN R1OUT 8 9 R2IN R2OUT 1u 1 + C1+ 3 C1- 4 C2+ 5 C2- 1u + 2 V+ 6 V- 1u ICL232 + 1u + 1 6 2 7 3 8 4 9 5 The Serial Diagram

  11. Serial And PIC Interconnection • The project based on using a Card Reader to handle he money payment ,but cause of the lack of these resources we replace the Card Reader with the a PC control using the serial port. • The PIC controller gets the account number from an external keypad and send it thought the serial port to be handled by a Visual C++ program. • The program checks the account number and send the balance for this customer to the PIC, then gets the number of litters to be pumped. • The program performs the calculations related to the balance and returns the new value to be displayed on the LCD. • A daily update is done for the price value .

  12. Start Initialization Get Balance Price Read Account # Of liters Serial Pump Test Account Software Flow Chart 0 1

  13. Problems • Card Reader: not available specially programmer. • Encoder: takes alot of time to find it. • Pump needs a lot of current.

  14. FINALLY Thanks to all…

More Related