Using USB Bar Code Scanner and Arduino

I have purchased the following parts for my students for a side project. We are fairly new to the Arduino

  • Barcode Reader/Scanner Module - CCD Camera - USB Interface -RB-Ada-347
  • Arduino USB Host Shield - RB-Ard-56
  • Arduino Uno Rev3 - RB-Ard-34

They want to bring in a scanned bar code value when requested (from a digital input) and send out an analog value for that code
The scanner is supposed to work as a keyboard input.

We have setup up a standard keyboard input on the shield and it works just fine with the USBHIDBootKbd example, but the scanner does not?
We are not using an LCD at this time. We are trying to print the value to the serial monitor
It received power, and it successfully scanned barcodes (we can hear the beep of a received bar code), but the Serial Monitor in the IDE did not say it was receiving any input?
When plugged into a computer or Raspberry Pi, the scanner sends barcodes to respective text editors with no issues.
We are also using a wall power plug to provide the scanner with more amperage and voltage than just through the USB - 12V 2amp power. We are assuming they work at the same time (USB and wall power)

Suggestions?

Hi,

Could you post a clear picture for your current setup ? (Arduino, Barcode scanner and USB Shield)
Also, check if the baudrate is set correctly on your Arduino serial monitor (same as used in your Arduino code). You can take a look at this example.

Below is a link to the setup

drive.google.com/file/d/1TkzMIV … sp=sharing

This link should help you : github.com/felis/USB_Host_Shield_2.0/issues/323