AnNajah National University Faculty of Engineering Computer Engineering

  • Slides: 14
Download presentation
 ﺍﻟﺮﺣﻴﻢ ﺍﻟﺮﺣﻤﻦ ﺍﻟﻠﻪ ﺑﺴﻢ 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

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

Introduction v In this project we tried to design full computerized Gas station without

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

Objectives 1) No need for the worker in each station. 2) The system will

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.

Hardware Diagram LCD Keypad Microcontroller PIC 16 F 877 Serial Relay Pump PC Simulation

Hardware Diagram LCD Keypad Microcontroller PIC 16 F 877 Serial Relay Pump PC Simulation

Hardware Components 1) PIC 16 F 877 : we choose it because we are

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

6) Keypad: to interface card reader we need to save the pins of the

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

Encoder Connection

Encoder Connection

Pump Circuit Vcc = 12 1 KΏ To Pump Relay 1 From PIC c

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

The Serial Diagram C 7 U 1 11 10 C 6 13 8 +

The Serial Diagram C 7 U 1 11 10 C 6 13 8 + + 1 u 1 3 4 5 1 u 2 6 + 1 u T 1 IN T 2 IN T 1 OUT T 2 OUT R 1 IN R 2 IN R 1 OUT R 2 OUT C 1+ C 1 C 2+ C 2 V+ VICL 232 + 1 6 2 7 3 8 4 9 5 1 u 14 7 12 9

Serial And PIC Interconnection v The project based on using a Card Reader to

Serial And PIC Interconnection v 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. v 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. v 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. v The program performs the calculations related to the balance and returns the new value to be displayed on the LCD. v A daily update is done for the price value.

Software Flow Chart Start Initialization 0 Read Account Get Balance Price Serial # Of

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

Problems Ø Card Reader: not available specially programmer. Ø Encoder: takes alot of time

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

FINALLY Thanks to all…

FINALLY Thanks to all…