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.

buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
hitung+=1;
}

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.

printer.setSize('L');
printer.println(hitung);

“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
Timbangan Digital
views 2113
Timbangan mungkin sepintas bagi beberapa orang akan dianggap sepele karena hanya digunakan sebagai alat untuk mengukur berat suatu benda. Sebenarnya t...
Kipas Tulisan LED
views 927
Display led dalam bentuk kipas yang tulisan nya dapat kita ubah menggunakan software khusus seperti pada video dibawah ini. https://www.youtube.com...
Alat Membuka Pintu Dengan SMS
views 4035
Alat membuka pintu dengan sms, Sebenarnya kalau dipikir pikir lagi malah ribet kalau kita mau buka pintu aja harus ketik sms dulu Tapi karena banyak...
Membuat Sensor Alkohol dengan Arduino
views 1176
Arduino adalah... wah terlalu umum kayaknya kalau saya mulai dengan kata kata seperti itu. Tentunya jika kamu mulai membuat project dengan menggunakan...
Panjerino Gratis – Arduino Gratis dari Bali
views 510
Sekarang inovasi semakin berkembang, akhirnya Panjerino (arduino Bali) saya sudah jadi beberapa biji. Jaman dulu sekali sekitar tiga tahun lalu saya s...
Build a Simple Styrofoam Cutting Machine
views 334
Styrofoam is usually used as daily food containers, securing an object of a direct collision, also used as an advertising tool. Styrofoam often used ...

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

Download Coding Jam Sholat Led Matrix

Kemarin baru aja saya upload video tentang jam sholat led matrix yang otomatis menghitung waktu …

Tinggalkan Balasan

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

3 × 3 =