AUTOMATIC TICKET PRINTING AND TICKET CHECKING SYSTEM FOR SHIP SERVICE USING QR CODE

Size: px
Start display at page:

Download "AUTOMATIC TICKET PRINTING AND TICKET CHECKING SYSTEM FOR SHIP SERVICE USING QR CODE"

Transcription

1 Volume 119 No , ISSN: (on-line version) url: ijpam.eu AUTOMATIC TICKET PRINTING AND TICKET CHECKING SYSTEM FOR SHIP SERVICE USING QR CODE S.Sasirekha 1, T.Saranya 2, A.Devi 3 1,2,3 Departmentof ECE, IFET College of Engineering and Technology, Villupuram, India Abstract - Now a-days, technology plays vital role in day to day life. The people are more sophisticated with the development of technology. But people are waiting for long time for buying tickets and ticket checking process. This leads to formation of queues. The ticketing system and ticket checking system had been implemented in buses, trains and airport. Therefore, this paper aims to reduce the process of manual ticketing and ticket checking system in ships. With this system passenger can enter their details by their own and the ticket is generated with QR code. Then the ticket is checked near the wharfs of the ship. Keywords Atmega328, Printer, QR code, Raspberry pi- 3, Ticket, Web camera. 1. Introduction As population increases, the usage of public vehicles, private vehicle are also increased. In India, the middle class family and lower class family mostly prefers the public vehicles for long journey. The public vehicles like buses, trains, airplanes are used for long distance travel. The private vehicles like cars, two wheelers are most widely used for travelling locally. The usage of both private and public vehicles leads to pollution and traffic jam. To avoid traffic jam, the government had introduced the scheme of subway trains, metro trains etc. The automatic ticketing and ticket checking system had been implemented in trains, bus etc. In trains for ticketing system they use automatic ticket vending machine. The tickets are issued using paper printed with barcode, RFID tags and smart cards. In this modern era, the people are willing to travel in ships for long distance overseas. But still people are facing difficulties in ticketing and ticket checking process which is done manually in ships. It causes formation of queues in wharfs and further it causes delay in boarding of passengers. But in ships this system is not implemented till now. These difficulties can be overcome by implementing automatic ticketing system and ticket checking system in ships. 2. Literature Survey In earlier systems the ticket checking methodology has been implemented only in trains and buses. In 2016, the paper entitled with Railway ticket scanner system introduces a system that a ticket is printed with barcode. Then the ticket is scanned by using barcode reader. The details of the passengers are sent to the ticket checker by using zigbee technology. Then the ticket is scanned by using barcode scanner. The unreserved ticket can be updated if any reserved passengers are absent. In 2015, the paper entitled with RFID based ticketing system for local trains proposed a method that the RFID tag is placed on the rear panel of mobile. The data of the passengers are collected and stored in RFID tag. Then the RFID tag is scanned using RFID reader which is placed on the wall of the station. Then the soft copy of the ticket is stored in the RMS section of the mobile. In 2014, the paper entitled with smart ticketing system in metro rail proposed a method using RFID for smart ticketing. Here the RFID circuit is placed in every train. This system is used to calculate the distance travelled by the passengers when the train crosses each and every stations. 3. Proposed System The proposed system has two sections 1) Ticket printing 2) Ticket checking A.Ticket Printing System In this ticket printing system, the QR code model is introduced. In this system the AT mega 328 is used as microcontroller. It is mainly used to control the entire process of ticket printing system. The components like keypad, LCD, buzzer, embedded printer, power supply are interfaced with AT mega 328. The keypad is mainly used to select the source and destination place by the 1081

2 passengers. The LCD is mainly used to display the information s entered by the passenger. The printer is mainly used to print the ticket with QR code. The buzzer is used to give alert sound, if any error occurs while entering the details. The ticket printing procedure is given as follows First, the passengers will select the source and destination place by using the keypad. Second, the details of the passengers are displayed in the LCD. Third, the buzzer will give alert sound if any error occurs while entering the details. Fourth, the printer will print the details given by the passenger. 4.2 Keypad The 4*4 membrane keypad is used. It has very thin design and it has adhesive backing. It is very easy to interface with microcontroller. The keypad requires 5v of DC supply. The dimension of the keypad is given as 2.7*3.0 in (6.9*7.6 cm). The dimension of the cable is given as 0.78*3.5 in (2.0*3.8 cm). Fig.3 Keypad 4.3 LCD Fig.1 Block diagram for ticket printing system 4.1 ATMEGA Hardware Details ATMEGA 328 is a microcontroller, based on the AVR enhanced RISC architecture. It is low power CMOS 8- bit microcontroller. It is also called as ARDUINO NANO. The operating voltage is given as 5v. The input voltage ranges from 6 20v. The number of digital I/O pins is 14. The number of analog pins is 8. The range of DC current per I/O pin is 40mA. The flash memory of AT mega 328 is 32KB. The AT mega 328 is supported with system development tools like, C compilers, Macro assemblers, program debuggers/simulators, etc., The LCD is abbreviated as Liquid Crystal Display. The 16*2 display is used, in which 16 refers to columns and 2 refers to row. It consists of 32 characters and each character is made up of 5*8 pixel dots. The each character consists of 40 pixels. The number of data lines is 8-bit parallel. The pin description is given as 1-VSS (ground) 2-VCC (power supply) 3-VEE (LCD contrast adjustment) 4-RS (instruction / data reg. selection) 5-R/W (read/write selection) 6-E (enable) DB0-DB7 (data I/O lines) 15- LED+ (supply voltage for LED+) 16- LED- (supply voltage for LED-) Fig.2 AT mega 328 Fig.4 LCD 1082

3 4.4 Buzzer Buzzer is an audio signaling device, which is used to give alert sound when error is occurred while selecting the source and destination place. The working voltage is 5v. It is on-board passive buzzer. It is also called as beeper. The pin configuration is given as: 1-VCC 2-Input 3-Ground dimensional barcode. It is a machine readable barcode. This QR code can be generated by using QR code generator. Then, this QR code is scanned by using QR code scanner, smart phones, camera, etc. The QR code can store large number of data. The stored data can be in the form of numeric, alphanumeric, byte/binary and kanji. The QR code consists of white background with black squares arranged in a square grid. The Reed- Solomon error correction technique is used. The size of code depends on number of data stored. 4.5 Embedded printer Fig.5 Buzzer The embedded printer is a thermal printer and it is very compact in size. It uses thermal paper to print the ticket with QR code. It requires 6v of DC supply. The printing method is thermal matrix printer. The printing paper is mm. The printing speed is 60 mm/seconds. The pin configuration is given as 1-VH 2-RTS/DTR 3-Transmit data 4-Receive data 5-GND 4.7 Flowchart Fig.7 QR code Fig.8 Flowchart for ticket printing system 4.8 Ticket checking system 4.6 QR code Fig.6 Embedded printer The QR code is abbreviated as Quick Response code. The QR code is also called as matrix barcode or two In ticket checking system, the Raspberry pi-3 is an ARM based credit sized single board computer. It is mainly used to control the entire process of ticket checking. The components like camera, IR sensor, LCD, buzzer, servomotor are interfaced with Raspberry pi 3. The camera is used to capture the image of the ticket. The IR 1083

4 sensor is used to count the number of passengers entering into the ship. The buzzer is used to give alert sound when the passenger without ticket is trying to enter the ships. The servomotor is used to open or close the door. The LCD is placed inside the ship to list the destination details of the passenger. The ticket checking procedure is given as follows: 1. First, the ticket is shown before the camera. Then, the camera will capture the image of the ticket. 2. Second, after showing the ticket the door will be opened automatically. 3. Third, the count of the passengers entering into the ship is taken. 4. Fourth, the passenger s destination list will be displayed inside the ship Web camera Fig.10 Raspberry pi-3 The web camera is a video camera that feeds or streams its image in real time through a computer. When the image is captured, the image is saved or viewed through a computer. It has Built in mic with noise reduction. The range of pixel is 25 Mega Pixels. For night vision 6 Bright lights are used. It has 30% better exposure to give better picture even in dark. It has resolution hardware of 500K pixels. The frame rate is 30 fps (MAX). The focus range is 4cm to infinity. Fig.9 Block diagram of ticket checking system 4.9 Raspberry pi 3 1. Hardware Details The Raspberry pi-3 is an ARM based credit sized single board computer. Raspberry pi 3, with a quad-core cortex-a53 processor, is described as 10 times the performance of raspberry pi 1. The clock speed is 1.2GHz. It consists of wireless connectivity like Wi-Fi and Bluetooth 4.1. It consists of 2 *20 GPIOs pin. The power supply (current capacity) is 2.5A. Python is the official programming language for Raspberry pi Servomotor Fig.11 Webcam The servomotor is mainly used to open or close the door automatically. It is tiny and light weight motor gives high output power. It can rotate approximately 180 degree. The operating speed is 0.1s/60 degree. The voltage ranges from v. The weight of the servomotor is 14g. Fig.12 Servomotor 1084

5 4.12 Buzzer Buzzer is an audio signaling device, which is used to give alert sound when error is occurred while selecting the source and destination place. The working voltage is 5v. It is on-board passive buzzer. It is also called as beeper. The pin configuration is given as: 1-VCC 2-Input 3-Ground 4.14 LCD The LCD is abbreviated as Liquid Crystal Display. The 16*2 display is used, in which 16 refers to columns and 2 refers to row. It consists of 32 characters and each character is made up of 5*8 pixel dots. The each character consists of 40 pixels. The number of data lines is 8-bit parallel. The pin description is given as 1-VSS (ground) 2-VCC (power supply) 3-VEE (LCD contrast adjustment) 4-RS (instruction / data reg. selection) 5-R/W (read/write selection) 6-E (enable) DB0-DB7 (data I/O lines) 15- LED+ (supply voltage for LED+) 16- LED- (supply voltage for LED-) Fig.13 Buzzer 4.13 IR sensor The IR is abbreviated as Infrared Sensor. It is mainly used to count the number of passengers entering into the ship. It is also called as obstacle sensor. This sensor can be utilized in two modes: 1) Obstacle sensor 2) IR signal transmitter and receiver The selector jumper plays major role in selecting the modes. To achieve wireless IR communication, it requires two sensor modules. The two sensor module is one for transmitting and another is for receiving it. The maximum range of this sensor when the transmitter is emitting pulses at 38 khz. Tune the screw driver until achieving the maximum range from the sensor to gain high performance Flowchart Fig.15 LCD Fig.14 IR sensor Fig.16 Flowchart for ticket checking system 1085

6 5. Conclusion The technology implemented in this paper is using QR code which facilitates the smarter ticket checking methodology especially in ships. The QR code is mainly implemented in this paper due to its large storage. It is also more efficient in its performance of detecting the exact data that is needed and also avoids queue formation of the passengers and reduces the delay time. This helps in order to notice the passengers regarding malpractice. 6. Prototype Fig.17 Prototype of ticket printing system Computer and Communication Engineering Vol.5, Issue 3, March [3] An Intelligent Ticket Checker Application for Train using QR Code, published in International Journal of Computer Application and National Conference on Advancements in Computer & Information Technology (NCACIT-2016). [4] RFID Based Ticketing System for Local Trains, published in International Journal of Computer Science and Information Technologies, Vol.6, Issue 3, [5] Conductor Less Bus Ticketing System using RFID and Accident Information through GPS and GSM, published in International Journal of Innovative Science, Engineering & Technology, Vol.2, Issue 9, September [6] Smart Ticketing System in Metro Rail, published in International Journal of Advanced Research in Electrical, Electronics and Instrumentation Engineering, Vol.3, 3, April [7] Mobile Ticketing System for Automatic Fare Collection Model for Public Transport, published in 5th International Conference on Computational Intelligence and Communication Networks, [8] References Fig.18 Prototype of ticket checking system [1] Automatic Bus Ticketing System, published in International Journal of Trend in Research and Development, March [2] Railway Ticket Scanner System, published in International Journal of Advanced Research in 1086

7 1087

8 1088