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 Arduino and USB
  • 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 14 replies
  • Subscribers 393 subscribers
  • Views 1289 views
  • Users 0 members are here
  • usb
  • arduino
Related

Arduino and USB

Former Member
Former Member over 10 years ago

Hello,

I have a 3D printer that connect to my PC and that creates a virtual COM port via USB.

I want to be able to plug it to an arduino and communicate with it.

I saw that it exist an USB Host for Arduino but I didn't find a library to do what I want.

Do you have any idea ?

Thanks in advance,

Best regards

  • Sign in to reply
  • Cancel

Top Replies

  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago +1
    I agree with the others, the USB library running on an UNO will leave no room for other apps anyway so there will certainly not be enough space to drive a 3D printer The U16 chip that does the USB for…
  • Former Member
    Former Member over 10 years ago in reply to Workshopshed +1
    Thanks for all those information. My printer (M3D) is not compatible with Octoprint but I'll check the other links.
Parents
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago

    I agree with the others, the USB library running on an UNO will leave no room for other apps anyway so there will certainly not be enough space to drive a 3D printer

     

    The U16 chip that does the USB for the UNO is absolutly full in itself and it has the hardware built in!!

     

    The Arduino USB Host Sheild should have come with links to drivers, you simply need to follow them, once you have that all working, then you will need to write a virtual com driver for the UNO (Normally provided on the PC but not an UNO). I suspect by the time this is all dont you will be out of program space (This is pure speculation but based on experiance). I am pretty sure you will need a much more powerfull (More RAM, FLASH and Processing Power) to get this project up and running

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to Robert Peter Oakes

    Peter in past I have developed a G-Code like small interpreter for the Arduino with my first experiment with a mill machine. The core of the engine was on the Arduino (UNO version) board but then to manage all the needed memory, predefined strings, G-code etc. I was using a stream to save storage and a e-eprom bank to add memory with a simple database engine.

     

    victorc you wrote

     

    8.69 for the USB Host Shield + 3.64 Arduino UNO + 4.20 touchscreen with microSD slot = 16.53 USD

     

    It's sad to admit but I think that this is the reason that you are almost at the limits of the possibilities of your board. I think that avoiding the raspberry PI (that remain the better solution IMHO as has suggested Bob) you should at least orient your choice to a PIC microcontroller running 80MHz with 128 Kb in the hope that you can reach the results.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to Robert Peter Oakes

    Peter in past I have developed a G-Code like small interpreter for the Arduino with my first experiment with a mill machine. The core of the engine was on the Arduino (UNO version) board but then to manage all the needed memory, predefined strings, G-code etc. I was using a stream to save storage and a e-eprom bank to add memory with a simple database engine.

     

    victorc you wrote

     

    8.69 for the USB Host Shield + 3.64 Arduino UNO + 4.20 touchscreen with microSD slot = 16.53 USD

     

    It's sad to admit but I think that this is the reason that you are almost at the limits of the possibilities of your board. I think that avoiding the raspberry PI (that remain the better solution IMHO as has suggested Bob) you should at least orient your choice to a PIC microcontroller running 80MHz with 128 Kb in the hope that you can reach the results.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 10 years ago in reply to balearicdynamics

    Hello,

     

    Thanks for all your answers.

    In fact I'm not trying to interpret the GCode, just read from a file and send it with the COM protocol, nothing more.

    I understand that with the USB Shield host, the hardest part will be the COM Drivers.

    Is it any other solution with an Arduino (I have a Mega also) ?

     

    Thanks in advance,

     

    Victor

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to Former Member

    In this case if the role of the Arduino is just to manage the data flow maybe feasable paying anyway attention to the code size.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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