Hey everyone, dos someone know if there is a way to read a mouse or a webcam pluging it directly to the arduino board?
Hey everyone, dos someone know if there is a way to read a mouse or a webcam pluging it directly to the arduino board?
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.
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?
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.