BAR CODE SCANNER - USB HOST for Arduino
This USB HOST module provides TTL pins Tx/Rx to connect any USB BARCODE SCANNER with Arduino
To test any barcode scanner you can connect the scanner to USB port of PC & Open NOTEPAD or Microsoft WORD
Scan any barcode to see the code printed on notepad window.
As you connect BARCODE SCANNER to PC it is considered as HID device (like mouse or keyboard) and any
result from device will be printed on Notepad
For connecting the scanner with Arduino you need an USB HOST Module.
RXD of host connected to Tx of Arduino
TXD of host connected to Rx of Arduino
Power to scanner taken from Arduino 5v pin
Gnd to Gnd
While uploading code , remove connections at Rx/Tx pins.After upload successful connect back the pins.
ARDUINO CODE FOR BARCODESCANNER