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 Жыл бұрын
Thanks for the comment. Exactly what i was looking for!
@ashittandon93014 жыл бұрын
Dude, u are a life saver. Was going bonkers figuring out how to read the scanner on the pi. This worked
@trashcan40652 жыл бұрын
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
@innokentiyromanchenko14509 ай бұрын
does it catch only input from scanner, not from other HID devices?
@willfreeman98204 жыл бұрын
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.
@liquidsonly2 жыл бұрын
Yes this enables serial on two GPIO header pins (14 and15?). Not needed for this at all.
@britantyowicaksono84093 жыл бұрын
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'???
@karlventer88734 жыл бұрын
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?
@cmansfield814 жыл бұрын
How would you export this data to a csv?
@stevedeforest28134 жыл бұрын
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).
@stevedeforest28134 жыл бұрын
never mind, figured it out. thanks.
@stevedeforest28134 жыл бұрын
jic someone else gets to this point "url = "api.upcdatabase.org/product/%s"% (upc + "?"+ "apikey=" + api_key)"
@mohitnama21583 жыл бұрын
is this project possible on pico board ??
@maxdondada6 жыл бұрын
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?
@vishalgaurav44116 жыл бұрын
Maybe hand is burned ?
@evilchaperone6 жыл бұрын
Are you a magician? Bahahaha.. You win my day.
@NANOPLAYER6 жыл бұрын
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 )
@ethanbailey46375 жыл бұрын
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 } -------------------------
@gagarmel43585 жыл бұрын
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 :)
@PiddlerInTheRoot5 жыл бұрын
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.
@gagarmel43585 жыл бұрын
@@PiddlerInTheRoot Probably not for me, but you learn by doing :) Appreciate the feedback. Looking forward to more content.
@stew96713 жыл бұрын
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.
@sanjking7776 жыл бұрын
Could you please tell me what I need to do?
@PiddlerInTheRoot6 жыл бұрын
The site has changed a bit. Generate an API token and use that.
@sanjking7776 жыл бұрын
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
@sanjking7776 жыл бұрын
Can you please help me?
@sanjking7776 жыл бұрын
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??
@liquidsonly2 жыл бұрын
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.
@PiddlerInTheRoot3 жыл бұрын
Just a note, this approach is deprecated. Check out: kzbin.info/www/bejne/eHbWhqOlr9t9ebc for a more up-to-date tutorial
@Azamat59917 жыл бұрын
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
@PiddlerInTheRoot7 жыл бұрын
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)"
@sanjking7776 жыл бұрын
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?
@davis47405 жыл бұрын
Can I open with the python IDE?
@geistesblitz90464 жыл бұрын
Where is the program?
@WolfVK-dh4jv5 жыл бұрын
is it possible to di it with wifi or bluetooth ?
@PiddlerInTheRoot5 жыл бұрын
Pretty sure it's possible, working with bluetooth is a bit tricky on the raspberry pi though
@sanjking7776 жыл бұрын
hey man cant get the api key
@h7opolo2 жыл бұрын
would be better to make your own database. it's simply a text file. no login or internet service needed.
@sto27794 жыл бұрын
6:00 - that barcode scanner is no good, it took like 10 seconds and 4 tries to get it scanned.
@cyrinecharfeddine79505 жыл бұрын
Are you working on Linux or Windows ?
@BertClaes5 жыл бұрын
raspberry pi, so linux.
@riseoftech4k3327 жыл бұрын
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