element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Barcode Scanner with Arduino Mega and USB shield
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 392 subscribers
  • Views 1373 views
  • Users 0 members are here
Related

Barcode Scanner with Arduino Mega and USB shield

elizabethmath
elizabethmath over 8 years ago

Hi,

 

I am currently using a barcode scanner to my arduino mega. I use a USB shield to enable my arduino to serve as a USB host for the barcode scanner.

I have found some links online which share the code that I can use.

These codes primarily allow me to enable the barcode scanner as a HID keyboard device.

For some reason , however, the code does not seem compatible with my arduino mega.

I have read on some forums, that some people have this issue when using the code I found on : https://www.youtube.com/watch?v=t5gkg645xGE

 

The example too uses a mega and a barcode of matching compatibility. The choice of USB shield is different.

I simply can not seem to understand what the issue is .

As for my barcode scanner,  it works as it does when I plug it directly into the PC. However, when the beep comes in ( which means its scanned and printed out the output), I cannot trace it. Dont know how and where to find where it is being sent to.

I am currently notified that I have OSC does not start. What exactly does this mean?

 

I was advised by someone to " Just configure one of your hardware serial ports on your mega to read the UART data. " I am really not sure what this means. I was under the impression that the UART was by default transmitted via the hardware serial port.

Does being asked to configure this mean that I need to make changes to my code/ the shield library?

 

Please advice me as to what I can do from here!

 

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 8 years ago

    Did you manage to get the code to compile? In the youtube video it shows that there are some errors during the compile stage and then shows how to overcome those errors (coment out some of the includes at the top of the script/sketch)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • sandraortizo
    sandraortizo over 7 years ago in reply to Former Member

    hi elizabeth can you follow me back? please thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gadget.iom
    gadget.iom over 7 years ago in reply to sandraortizo

    Hi sandraortizo

     

    It looks like Elizabeth hasn't been on since February, so you might not get a speedy response to your invitation.

     

    Paul

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • gadget.iom
    gadget.iom over 7 years ago in reply to sandraortizo

    Hi sandraortizo

     

    It looks like Elizabeth hasn't been on since February, so you might not get a speedy response to your invitation.

     

    Paul

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube