Author Options:

usb shield for ardunio Answered

i have a usb bluetooth dongle, and i want to be able to plug it into my arduino and controll my arduino with my iphone using touchOSC or some thing like that.
i will preferably make the shield not buy it.
what will i need?
and where can i get the libraries?



Best Answer 6 years ago

You need a bluetooth shield...or a bluetooth module that has serial i/o that you can directly connect with. The arduino doesn't 'speak' usb so it won't connect to usb peripherals without a LOT of hackery and reverse engineering. The point of arduino is keep it simple, and as such they had to sacrifice said functionality.

Something like http://www.dealextreme.com/p/jy-mcu-arduino-bluetooth-wireless-serial-port-module-104299?item=4 would add what you want
You plug it into your arduino, connect your phone to that module, and if you have a sketch on your arduino and a program on your phone you can control both directions.

+1, that's the bluetooth module to use, cheap and easy. If you have an android phone I would suggest using that, it's easier for novices to develop apps. Just use the MIT App Inventor, no real programming experiance needed and you won't spend days getting a developing environment set up.

to be fair, I used the instructions on hackaday to set up eclipse IDE to make an android app 'hello world' in about an hour...I have a little experience but not much.

Getting the bluetooth radio up and running on android would probably be much more nightmarish...

I didn't have any Android development or Java experience so you may be right but my time using Eclipse was not so fun. It took me at least that long to just get all the pieces downloaded. It's possible that the instructions on hackaday are clearer than the ones on the android developers website but it was a confusing mess.

I was trying to make minor, mostly cosmetic, changes to an existing app that used bluetooth to interface with Arduino. I couldn't even get that done and the people who wrote the original app said that it took some finagling to get the bluetooth up and running. They said the considered using iOS but it didn't support the necessary type of bluetooth connections. The MIT App Inventor is just the old Google App Inventor and it has Bluetooth Client and Server support built right in.

@The nerdling, If you've developed in Java and/or Android before and are familiar with how bluetooth works, both hardware and software sides, or are trying to do something very complicated then get Eclipse IDE. If the answer's no then use the App Inventor.

Of course most of this is moot if you only have an iPhone. :D