Berita Terbaru

Build a ticketing machine by Arduino

Creating queuing ticketing machine. What is a ticket? Yup, a ticket, I call it a ticket. It was a paper that we took or given usually used for parking, queuing to see a doctor, watching film and many others. For example, in a big shopping mall, the parking ticket is commonly given once we enter the mall. We ppressed the button on a machine box next to the portal gate then the ticket came out from that box. The paper was printed by a small printer inside the portal gate box.

Have you ever been queuing in a bank? Usually we take the queue number which also using a similar ticketing system with that.

The queue number or the parking paper was printed using a printer; generally the printer will print something on that paper once it is given a command or an instruction from the computer. But now have a look at the parking box or the bank queuing machine, some of them are big and the others are small in size.  Look at the small one; is there any small computer? For today of course there is. But the small computer was not available in ancient times. Printing letters on a paper using a printer inside a small space could be done using a simple microcontroller to create a picture or a queue number.

Alright, for now I was going to show you my experiment on creating a printer for a simple ticketing machine. This machine is able to print a queued number using just a thermal printer and a microcontroller.

The basic program I used for this project was Arduino with standard library for the thermal printer.

The basic core from this project was a “count up”, its value was printed with a logo and an information of time showing when the ticket is created.

In a simple way, the coding for creating the count up was shown as the Arduino sketch above. First we read the status of the button pin and saved it in a buttonstate variable. Then based on that value we could use it for adding value or number available in “hitung variable” by writing the code “hitung+=1” similar as “hitung+1=”

When you finished adding number for every pressing button then we had to print out that number using thermal printer. That’s why I used standard library from adafruit for the thermal printer for easier printing process. For example, I printed the queued number just like the coding below.

“setSize” means that we were going to determine the font size used. I used the L (large) font and printed the number at “hiring” variable. Well, the coding only printed a single line. Simple, wasn’t it? Because I used the library printer.

For the thermal library printer, you can directly download it.

Library Arduino

Download the full coding below.

In the library, there was also an example of coding to print the barcodes, logos or pictures, big and small size of letters, writing orientation, etc. You can creatively develop it in which purpose you want. You can check my experiment result out from the following video.

Hasil Pencarian :

Jangan Lupa Cek Juga Artikel Di Bawah Ini
Detektor Gas Bocor Dengan SMS
views 2844
Halo teman teman, kembali lagi nih saya mau share sebuuah project sederhana menggunakan board arduino. Alat yang akan kita buat kali ini adalah : ...
Membuat Led Matrix PanjeRino
views 587
Setelah minggu lalu selesai membuat sebuah cloningan sebuah arduino yang sudah support dengan usb yang memang saya buat untuk menggantikan saudaranya ...
Membuat Display Timer Mundur
views 2214
Hari itu saya mendapat pesanan yang dibilang cukup mendadak karena harus dikirimkan dalam waktu sehari dan harus tiba paling lambat 2 hari. Order yang...
Simpan Password Keypad di EEPROM
views 2136
Password, keypad, securiy sistem, door lock, kunci pintu. Ya beberapa kata kunci itu beberapa waktu lalu memang sangat ngetrend masuk di hape saya, en...
Modul Keypad Password
views 1008
Modul yang akan saya perkenalkan di artikel ini adalah sebuah modul yang dapat berfungsi sebagai kunci digital. Dimana yang dimaksudkan kunci digital ...
Rangkaian Arduino Flasher Polisi
views 683
Sekarang kita akan belajar membuat rangkaian dan program sederhana untuk sebuah flasher polisi. Kalian tentu tau flasher polisi kan? Biasanya selai...
Membuat Penggaris Digital Arduino
views 3391
Mau tau cara bikin penggaris digital dengan arduino? Penggaris seperti kita tau adalah alat yang dipakai untuk mengukur jarak antara dua titik ukur. ...

Tentang Anak Agung Duwi Arsana

Seorang tukang service serabutan dari desa Panjer, Denpasar Bali. Senang bercerita tentang kegiatan sehari hari di blog dalam bentuk tulisan tulisan ngawur maupun di youtube dalam bentuk video yang ga jelas.

Baca juga

Belajar LED Berkedip Arduino

Halo pengunjung duwiarsana.com Kita belajar arduino mulai dari yang sederhana yuk? Sekarang kita akan belajar …

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

one × five =