CT-Uno Lesson: USB Host Shield + Barcode Scanner

March 8th, 2015  Posted at   Lesson Arduino
, arrow   |   6 Commentsarrow

USB Host Shield + Barcode Scanner

USB Host Shield adalah digunakan untuk membaca alatan yang menggunakan USB HID. Contoh ini menggunakan USB Barcode Scanner. Selain itu, terdapat juga RS232 Barcode Scanner.

Berikut adalah demo USB Host Shield dan USB Barcode Scanner.

Arduino Source Code

6 Responses to “CT-Uno Lesson: USB Host Shield + Barcode Scanner”

  1. Peace says:

    I used this code and the program is error at HID_PROTOCOL_KEYBOARD was not declared in this scope.
    Then I add “#include SPI.h and #define HID_PROTOCOL_KEYBOARD 1 ” to program. When I run it, it only show “Barcode ready” and when I scan barcode , nothing is shown.
    Can you help me, Please!

  2. Mehdi Ettabia says:

    Hey. Can you tell me how can i eploit the variable key? I need to copare it with other barcodes and show a message on my lcd but when i put : if (key == xxxxxxxxxx) it’s not working. Please help me and thank you

  3. Aiman Mazlan says:

    Programmer is Shahrulnizam Mat Rejab? Even this code is copy pasted. You only added line 40 and line 49. Don’t take credits for things that are not yours.

    • Shahrul says:

      Library already exist in the internet. Library is not mine and not edited.

      • Aiman Mazlan says:

        No, I did not talk about the library. I was talking about the main sketch. You did not properly credits the original author of the code.

        The original version was developed by Oleg Mazurov@circuitsathome.com and the second version which was edited to get it full working was developed by @electroingenio.com

        These are the original programmers.

Leave a Reply

What is 5 + 13 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)