element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 Mouse and webcam on arduino
  • 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
  • State Not Answered
  • Replies 3 replies
  • Subscribers 401 subscribers
  • Views 337 views
  • Users 0 members are here
Related

Mouse and webcam on arduino

tabarus12
tabarus12 over 12 years ago

Hey everyone, dos someone know if there is a way to read a mouse or a webcam pluging it directly to the arduino board?

  • Sign in to reply
  • Cancel
Parents
  • shabaz
    0 shabaz over 12 years ago

    Hi Omar,

     

    A mouse should be possible (googling for 'arduino HID mouse' revealed some possibilities). A USB webcam is unlikely to

    be possible (they send a lot of data which possibly an arduino cannot keep up with (and not enough RAM to store the image

    anyway; secondly, the image is highly likely to be compressed and I don't think there is enough processing power to

    decompress it any useful time, thirdly most existing libraries of code for webcams tend to be linux based drivers, so unless they were

    converted to run on Arduino, it would not be practically possible without a lot of effort.

    If you just want a snapshot (not video), then there are some camera modules with in-built memory, a serial interface and they output a JPEG

    image for example. You could in theory write it to external memory as you read it, to work around the problem of not having sufficient

    RAM on the microcontroller.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 12 years ago

    Hi Omar,

     

    A mouse should be possible (googling for 'arduino HID mouse' revealed some possibilities). A USB webcam is unlikely to

    be possible (they send a lot of data which possibly an arduino cannot keep up with (and not enough RAM to store the image

    anyway; secondly, the image is highly likely to be compressed and I don't think there is enough processing power to

    decompress it any useful time, thirdly most existing libraries of code for webcams tend to be linux based drivers, so unless they were

    converted to run on Arduino, it would not be practically possible without a lot of effort.

    If you just want a snapshot (not video), then there are some camera modules with in-built memory, a serial interface and they output a JPEG

    image for example. You could in theory write it to external memory as you read it, to work around the problem of not having sufficient

    RAM on the microcontroller.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • tabarus12
    0 tabarus12 over 12 years ago in reply to shabaz

    I did and the only thing I get is how to use the arduino as a mouse but not to detect a mouse connected to the usb port of the arduino.

    Is there any way to do that?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to tabarus12

    the arduino is just a microcontroller, not a pc on its own, it is not able to host usb devices like a PC is able to. so the simple answer is no, it won't be able to use a mouse or a webcam.

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