MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.33k stars 395 forks source link

Barcode Scanner instead of RFID Reader #562

Open sandreas opened 5 years ago

sandreas commented 5 years ago

Hi,

i like the idea, that rfid chips are cheap and easy to use. But would it be possible to also use a barcode scanner to trigger track changes?

This should be a similar technology and since a barcode is something that only needs to be printed, it would be easier to produce... perhaps also in combination with a barcode generator in the web interface to have unique id's...

As i own an old webcam, it would be also great to combine this with a webcam barcode reader - like this:

What do you think?

dnmtch commented 5 years ago

I would recommend working (test) with a barcode scanner. (It can also be in continuous operation if necessary). The barcode scanner should behave exactly like the RFID scanner? As soon as it scans a valid barcode, it outputs the value (1234567890) as a HID device (like a keyboard).

(disclaimer: this is not a technically sound statement. Children should not handle laser light under any circumstances).

barcode

MiczFlor commented 5 years ago

hi @sandreas @dnmtch true: a USB Barcode Scanner is simple to Install. actually the Same as a RFID Scanner. I did some tests for a digital Archive of my parents CD collection where you would use the Barcode on the actual CD to start playout. need to write up a howto. the real task would be to add automated generation of the Barcodes in the web App!

dnmtch commented 5 years ago

the real task would be to add automated generation of the Barcodes in the web App!

That's not necessary. There are enough (simpler) other ways to generate the barcodes.

sandreas commented 5 years ago

https://lindell.me/JsBarcode/

MiczFlor commented 5 years ago

Hi @sandreas very true, there are many out there. But I like the idea of this workflow:

  1. upload files and create new folder
  2. go to the home screen and right click to download the matching barcode
  3. print
dnmtch commented 5 years ago

The combination of RFID (10 numbers) and barcode is not trivial from my point of view. The standard "2of5" supported by many readers should be able to be used. Nevertheless: A simple manual or a link to an online tool should suffice by far. Most people will want to customize their barcode images anyway. docs-barcode

https://github.com/fabioboris/php-interleaved-2-of-5

dnmtch commented 5 years ago

I have good news for you. I got the radio working right away with a barcode scanner (NETUM NT-1698W) for 12$. If there is interest, I can create a tutorial in the wiki.

If I create barcode cards, I can also publish the template.

sandreas commented 5 years ago

@dnmtch: Thank you - a short tutorial would be very nice.

MiczFlor commented 4 years ago

Hi @dnmtch yes, please add a page to the wiki! I haven't found the time to dig into this deeper. But from my first steps, it was really mainly an issue of identifying the barcode scanner instead of the RFID reader during the install?

sandreas commented 3 years ago

Other resource: https://www.pyimagesearch.com/2018/05/21/an-opencv-barcode-and-qr-code-scanner-with-zbar/ If someone wants to try the cam approach.

s-martin commented 8 months ago

Barcode scanner is essentially a keyboard input. Could be easy to adapt in future3 once PR #1943 is merged.

sandreas commented 8 months ago

@s-martin @MiczFlor I thought of something like this together with a human body motion sensor to activate it, as soon as you put your hand with a card near the scanner.

Alternatively you could build a little wooden box around the scanner module and everytime you put a plastic card in, the activator button gets pressed or just expose the button (children should know how to use it)

Everything you would need to create cards would be a printer... no RFID needed any more.

Here is a youtube video:

https://www.youtube.com/watch?v=xX_GDkPJ6x0

s-martin commented 3 months ago

Barcode scanner is essentially a keyboard input. Could be easy to adapt in future3 once PR #1943 is merged.

As the evdev feature is now available in V3 it should be possible to add a barcode scanner (which is a keyboard input).

AlvinSchiller commented 3 months ago

As long as the barcode scanner is integrated as a keyboard this should be possible right now for V2 and V3.

@Lippsson don't you already use a barcode scanner successfully?

Lippsson commented 3 months ago

Yes true, I use this model for scanning. The advantage of this reader is that there is no real laser which can damage kids eyes. Tera Streckkodsskanner 1D 2D QR... https://www.amazon.se/dp/B098DCGK91?ref=ppx_pop_mob_ap_share

s-martin commented 3 months ago

As this would be more a howto than a feature request, I would convert this issue into a Q&A discussion.

Anybody interested in providing some hints how to use a barcode scanner could add a comment here.