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!
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
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'???
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?
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).
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 )
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?
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??
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.
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
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)"
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 } -------------------------
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.
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 :)
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.
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!
Thanks for the comment. Exactly what i was looking for!
Dude, u are a life saver. Was going bonkers figuring out how to read the scanner on the pi. This worked
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
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.
Yes this enables serial on two GPIO header pins (14 and15?). Not needed for this at all.
does it catch only input from scanner, not from other HID devices?
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'???
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?
Maybe hand is burned ?
Are you a magician? Bahahaha.. You win my day.
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).
never mind, figured it out. thanks.
jic someone else gets to this point "url = "api.upcdatabase.org/product/%s"% (upc + "?"+ "apikey=" + api_key)"
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
)
How would you export this data to a csv?
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?
Could you please tell me what I need to do?
The site has changed a bit. Generate an API token and use that.
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
Can you please help me?
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??
is this project possible on pico board ??
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.
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
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)"
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?
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
}
-------------------------
hey man cant get the api key
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.
Can I open with the python IDE?
Just a note, this approach is deprecated. Check out: ruclips.net/video/BEsUpozvJCU/видео.html for a more up-to-date tutorial
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 :)
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.
@@PiddlerInTheRoot Probably not for me, but you learn by doing :) Appreciate the feedback. Looking forward to more content.
6:00 - that barcode scanner is no good, it took like 10 seconds and 4 tries to get it scanned.
Where is the program?
is it possible to di it with wifi or bluetooth ?
Pretty sure it's possible, working with bluetooth is a bit tricky on the raspberry pi though
would be better to make your own database. it's simply a text file. no login or internet service needed.
Are you working on Linux or Windows ?
raspberry pi, so linux.
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