USB Barcode Scanner (Raspberry Pi)

  Рет қаралды 78,164

PiddlerInTheRoot

PiddlerInTheRoot

Күн бұрын

Пікірлер: 47
@shawnkhoo1949
@shawnkhoo1949 3 жыл бұрын
Super great video. The only video that shows how to obtain info from the barcode scanner connected to the RPi. This gave me a kickstart on my project. Thanks!
@alientoken4517
@alientoken4517 11 ай бұрын
Thanks for the comment. Exactly what i was looking for!
@PiddlerInTheRoot
@PiddlerInTheRoot 3 жыл бұрын
Just a note, this approach is deprecated. Check out: kzbin.info/www/bejne/eHbWhqOlr9t9ebc for a more up-to-date tutorial
@ashittandon9301
@ashittandon9301 4 жыл бұрын
Dude, u are a life saver. Was going bonkers figuring out how to read the scanner on the pi. This worked
@trashcan4065
@trashcan4065 2 жыл бұрын
Very cool, thanks for sharing! I am thinking about cataloging the stuff in my pantry to aleviate the chaos in there just a little bit and your solution seems pretty well fit for that job :D
@willfreeman9820
@willfreeman9820 4 жыл бұрын
That first config option you changed was for enabling the login shell over serial. I don't think this step is relevant to using the scanner.
@liquidsonly
@liquidsonly 2 жыл бұрын
Yes this enables serial on two GPIO header pins (14 and15?). Not needed for this at all.
@innokentiyromanchenko1450
@innokentiyromanchenko1450 6 ай бұрын
does it catch only input from scanner, not from other HID devices?
@maxdondada
@maxdondada 6 жыл бұрын
Excellent video! You have gained a new subscriber. Question: Why are you wearing gloves? Are you a magician? Are you a chauffeur? Did you steal the Barcode scanner? Did you just bury a body?
@vishalgaurav4411
@vishalgaurav4411 6 жыл бұрын
Maybe hand is burned ?
@evilchaperone
@evilchaperone 5 жыл бұрын
Are you a magician? Bahahaha.. You win my day.
@britantyowicaksono8409
@britantyowicaksono8409 2 жыл бұрын
i want to change the barcode scanner mode to continuous mode. BUT NOT a regular continuous mode. i want it always decode and read the barcode just as written in spec. i mean yes there is auto-induction conf, but that's not fast enough, i want it always read 200 times/second A.K.A 200Hz. is it possible???? i'm aware that there is other "High Speed" barcode scanner that says 2500 times/second. but the max auto-induction time is 0.3 second. not fast enough... did i miss any configuration or sometin'???
@NANOPLAYER
@NANOPLAYER 5 жыл бұрын
when i press button of bar code scanner for scanning a bar code using ie 11 or goolge chrome its press (ctrl +j) and open downloads window instead of just scann and press enter only. i have ionic sr30 , is there any option to disable this command (control +j )
@stevedeforest2813
@stevedeforest2813 3 жыл бұрын
I have everything working, but when I send the query to upcdatabase, it always comes back with invalid "api_key". it shows it as null in the response. I have double checked my api_key, added an "api-key=" like I saw on their site, checked for extra space characters but it never works. The response does in include the correct barcode that I send. I print out the url before it is sent with 'get' so that I can verify it looks ok. Thanks (great video on getting this all to work).
@stevedeforest2813
@stevedeforest2813 3 жыл бұрын
never mind, figured it out. thanks.
@stevedeforest2813
@stevedeforest2813 3 жыл бұрын
jic someone else gets to this point "url = "api.upcdatabase.org/product/%s"% (upc + "?"+ "apikey=" + api_key)"
@karlventer8873
@karlventer8873 4 жыл бұрын
Hi Can you create and print your own barcodes for your own database -- I e read that number at the start eg 072............................. and say that is coffee?
@cmansfield81
@cmansfield81 4 жыл бұрын
How would you export this data to a csv?
@gagarmel4358
@gagarmel4358 5 жыл бұрын
Great video Piddler, do you have any pointers if i'm looking to open a specific document with a specific barcode? Have a 7inch display-c connected to the rsp :)
@PiddlerInTheRoot
@PiddlerInTheRoot 5 жыл бұрын
Thanks, if I understand your workflow correctly it should be fairly straightforward. Get barcode string, append file type to the end, open the file then read the contents, and print to the screen.
@gagarmel4358
@gagarmel4358 5 жыл бұрын
@@PiddlerInTheRoot Probably not for me, but you learn by doing :) Appreciate the feedback. Looking forward to more content.
@stew9671
@stew9671 3 жыл бұрын
Great, sadly i couldn't find an ean database thats free yet. (For German products) So i probably have to create my own. Database that accepts ean 8 / 13 and some variations. With user input as fallback as well as to add new data to it. Its just gonna be a pain in the ass to add most of the produkts. But its gonna be used for maniging the shopping in my flat share. As well as being a good practice for my job im learning rn.
@liquidsonly
@liquidsonly 2 жыл бұрын
I would not run this as root, or in fact run anything as root outside of doing admin on the system. Add the user to plugdev group then add and add-edit /etc/udev/rules.d/99-scanner.rules so that the plugged in scanner belongs to plugdev group. Now a regular user in the plugdev group can access the scanner. There are many tutorials as to how to do both these things on the web.
@mohitnama2158
@mohitnama2158 2 жыл бұрын
is this project possible on pico board ??
@ethanbailey4637
@ethanbailey4637 5 жыл бұрын
hey i have run this code but i get this { "status": "online", "message": "The UPC Database API is online, but this is not a valid endpoint. ", "endpoint": "spk035683P3", "time": 1572977289 } -------------------------
@h7opolo
@h7opolo 2 жыл бұрын
would be better to make your own database. it's simply a text file. no login or internet service needed.
@Azamat5991
@Azamat5991 7 жыл бұрын
Hi, how to write if loops that will send digitalHigh to GPIO pins if the barcode of the item is the value that i'm looking for? For example, if(barcode='123123') {digitalWrite(pin, HIGH)} something like that
@PiddlerInTheRoot
@PiddlerInTheRoot 7 жыл бұрын
Take a look at the sample code I provided on my website listed in the description. On line 86 I'm saving the value of the barcode scan... so you could pass that value into a function. The pseudo code you provided is essentially correct. Your function would do something like this: "if scan =='12345': GPIO.output(17,GPIO.HIGH)"
@sanjking777
@sanjking777 6 жыл бұрын
hey man I think I'm doing something similar to you. Can you please show me the code you would use if you are looking for a specific barcode?
@davis4740
@davis4740 5 жыл бұрын
Can I open with the python IDE?
@sanjking777
@sanjking777 6 жыл бұрын
Could you please tell me what I need to do?
@PiddlerInTheRoot
@PiddlerInTheRoot 6 жыл бұрын
The site has changed a bit. Generate an API token and use that.
@sanjking777
@sanjking777 6 жыл бұрын
I did that and run the url that is: api.upcdatabase.org/json/api_key/0793588523206 (Item_in_the_database) But it doesnt seem to work
@sanjking777
@sanjking777 6 жыл бұрын
Can you please help me?
@sanjking777
@sanjking777 6 жыл бұрын
Sorry for the inconvenience but I'm currently doing my senior design and I need to connect the barcode reader/scanner to the raspberry pi to scan a label on an autonomous robot. Can you please help me??
@WolfVK-dh4jv
@WolfVK-dh4jv 5 жыл бұрын
is it possible to di it with wifi or bluetooth ?
@PiddlerInTheRoot
@PiddlerInTheRoot 5 жыл бұрын
Pretty sure it's possible, working with bluetooth is a bit tricky on the raspberry pi though
@geistesblitz9046
@geistesblitz9046 4 жыл бұрын
Where is the program?
@sanjking777
@sanjking777 6 жыл бұрын
hey man cant get the api key
@sto2779
@sto2779 4 жыл бұрын
6:00 - that barcode scanner is no good, it took like 10 seconds and 4 tries to get it scanned.
@cyrinecharfeddine7950
@cyrinecharfeddine7950 5 жыл бұрын
Are you working on Linux or Windows ?
@BertClaes
@BertClaes 5 жыл бұрын
raspberry pi, so linux.
@riseoftech4k332
@riseoftech4k332 7 жыл бұрын
AWSOME VIDEO... good work.. i started to make arduino tutorials, if you want please check them out and tell me what you think ... thank you
Barcode Scanner with Raspberry PI
30:23
Davis MT
Рет қаралды 19 М.
Raspberry Pi 3 USB SSD Boot
12:40
ExplainingComputers
Рет қаралды 597 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 77 МЛН
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 344 М.
Kluster Duo #настольныеигры #boardgames #игры #games #настолки #настольные_игры
00:47
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
Raspberry Pi does what Microsoft can't!
9:43
Jeff Geerling
Рет қаралды 664 М.
Your USB-C Cable probably SUCKS! Sooo is that Bad?
10:54
GreatScott!
Рет қаралды 721 М.
Reading USB in Python
8:12
Alex Lugo
Рет қаралды 131 М.
Project With Real BarCode Scanner?  Billing System Python #Recycle #Reuse
8:15
Vinay Verma - Computer Vision and Tech
Рет қаралды 37 М.
How does a barcode scanner work?
5:21
Taptic Digital
Рет қаралды 12 М.
Wireless Barcode Scanner (Raspberry Pi)
7:47
PiddlerInTheRoot
Рет қаралды 10 М.
Barcode + QR Code Reader using Arduino & QR Scanner Module
7:32
How To Electronics
Рет қаралды 87 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 77 МЛН