Go Down

Topic: Drivers for USB devices (Read 1 time) previous topic - next topic

hexaruby

Sep 13, 2011, 06:15 pm Last Edit: Sep 13, 2011, 06:22 pm by hexaruby Reason: 1
Hi.

When we plug in USB devices on our computers, the computers automatically searches and installs the appropriate drivers for the devices to enable you to use them. For the arduino board, if we plug in devices (eg. Bluetooth dongles, webcams) via the USB host shield, how are we going to upload the drivers into the arduino board? Are we suppose to write the drivers ourselves?

Thanks.

daveg360

Pretty much.  Unless someone has already done it.
If your system involves lethal voltages/life critical/flamable elements - you probably shouldn't need to ask.
The Arduino != PC.

hexaruby

If the drivers for a specific device is already present, how do I upload into the arduino to ensure that the device plugged in will work?

daveg360

See the last line of my signature.
If your system involves lethal voltages/life critical/flamable elements - you probably shouldn't need to ask.
The Arduino != PC.

hexaruby

Um, that doesn't really help.

daveg360

An arduino is just a microcontroller it can't understand drivers written for windows, mac or even Linux.  Unless some kind soul has done all of the leg work and shared with the community, you'll need to write the releveant code to allow your arduino to communicate with the USB device.  Remember that your arduino doesn't have an operating system like a PC.  It just runs one lump of code over and over and over.
Out of interest - what USB device are you looking to connect?
If your system involves lethal voltages/life critical/flamable elements - you probably shouldn't need to ask.
The Arduino != PC.

hexaruby

I'm thinking of attaching a USB dongle and a webcam to the arduino. Correct me if im wrong, but does drivers = libraries in this case?

And also you mentioned in your sig that its not feasible to connect a camera to the arduino and send pictures wirelessly. Is the reason due to storage space of the Atmega chip? Do you have any recommendations for a microprocessor which is capable of controlling servos and sending pictures wirelessly?

daveg360

Tiny RAM, limited processing no multitasking.  We're talking about something that is happy controlling the fron display on your microwave.  Don't get me wrong, I love Arduino - it's just that it's got its strengths and its got its weaknesses.
Have you considered something like a beagle board or MimoPlug? OR even a wireless IP webcam?
If your system involves lethal voltages/life critical/flamable elements - you probably shouldn't need to ask.
The Arduino != PC.

sbright33

#8
Sep 14, 2011, 02:21 pm Last Edit: Sep 14, 2011, 02:26 pm by sbright33 Reason: 1
Hey I'm going to do exactly that!  (your signature)  Using the PTP library with tiny thumbnails at least.
Wait... Did you just call me a fool?  ;)
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

sbright33

Why do you need these 3?
> Tiny RAM, limited processing, no multitasking

Just read the data 1k at a time from the PTP library, write it to XBee.

If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

daveg360

Yes, given enough time and patience it is possible to hammer in nails with a screwdriver.  I suspect the OP wants to deal with video.
If your system involves lethal voltages/life critical/flamable elements - you probably shouldn't need to ask.
The Arduino != PC.

Go Up