USB Barcode Scanner (Raspberry Pi)

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 47

  • @shawnkhoo1949
    @shawnkhoo1949 3 года назад +1

    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 Год назад

      Thanks for the comment. Exactly what i was looking for!

  • @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 года назад +1

    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 года назад +3

    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 8 месяцев назад

    does it catch only input from scanner, not from other HID devices?

  • @britantyowicaksono8409
    @britantyowicaksono8409 3 года назад

    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'???

  • @maxdondada
    @maxdondada 6 лет назад +8

    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?

  • @stevedeforest2813
    @stevedeforest2813 4 года назад +1

    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 4 года назад

      never mind, figured it out. thanks.

    • @stevedeforest2813
      @stevedeforest2813 4 года назад +2

      jic someone else gets to this point "url = "api.upcdatabase.org/product/%s"% (upc + "?"+ "apikey=" + api_key)"

  • @NANOPLAYER
    @NANOPLAYER 6 лет назад

    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
    )

  • @cmansfield81
    @cmansfield81 4 года назад +1

    How would you export this data to a csv?

  • @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?

  • @sanjking777
    @sanjking777 6 лет назад +1

    Could you please tell me what I need to do?

    • @PiddlerInTheRoot
      @PiddlerInTheRoot  6 лет назад +1

      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??

  • @mohitnama2158
    @mohitnama2158 3 года назад

    is this project possible on pico board ??

  • @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.

  • @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?

  • @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
    }
    -------------------------

  • @sanjking777
    @sanjking777 6 лет назад

    hey man cant get the api key

  • @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.

  • @davis4740
    @davis4740 5 лет назад

    Can I open with the python IDE?

  • @PiddlerInTheRoot
    @PiddlerInTheRoot  3 года назад +1

    Just a note, this approach is deprecated. Check out: ruclips.net/video/BEsUpozvJCU/видео.html for a more up-to-date tutorial

  • @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.

  • @sto2779
    @sto2779 4 года назад

    6:00 - that barcode scanner is no good, it took like 10 seconds and 4 tries to get it scanned.

  • @geistesblitz9046
    @geistesblitz9046 4 года назад

    Where is the program?

  • @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

  • @h7opolo
    @h7opolo 2 года назад

    would be better to make your own database. it's simply a text file. no login or internet service needed.

  • @cyrinecharfeddine7950
    @cyrinecharfeddine7950 5 лет назад

    Are you working on Linux or Windows ?

    • @BertClaes
      @BertClaes 5 лет назад +2

      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