Arduino Lesson: 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
Sertai Telegram Group bagi dapatkan source code
hmm which library should i include?
i not able find #include
i included this library
https://github.com/felis/USB_Host_Shield_2.0
after i simply code your code
hid.h: No such file or directory
i get this error message
how to turn on by using this barcode , able to read .. i just new ,, pls help
Hi
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!
Thanks!
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
He doesn’t know and wont help you. I have the code for that and you can contact me at aimanmazlan_ece@gmail.com if you want.
can you help me !
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.
Library already exist in the internet. Library is not mine and not edited.
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.