Pages: [1]   Go Down
Author Topic: USB Library  (Read 1499 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi all,
       i have Mega ADK development board. could anyone tell about USB library?????
i want to send my data via USB. so plz provide me this library........


Thanks in advance
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 640
Posts: 50335
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i want to send my data via USB.
Send it where? Using what USB?

If you are referring to the onboard serial to USB chip, there is no library required. Serial.print(), Serial.write(), and Serial.println() are all you need.
Logged

Lithuania
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Arduino rulez :)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Paul i believe he's talking about "Arduino mega ADK" and that board is with usb host
btw Ambuj you could always check playground or www.freeduino.org for usb host libraries smiley
Logged

if (str = "arduino rulez") {
 delay(250);
 str = "Pic is crap";
}

Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i want to know about USB which connected by Max3421 IC ...????

another USB is for dumping hex file in this board. can we use this usb for communication.
Logged

Lithuania
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Arduino rulez :)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

usb socket b is for pc connection and the other usb socket a is for any usb device you can use it for practically anything
both sockets on the board should be female type
Logged

if (str = "arduino rulez") {
 delay(250);
 str = "Pic is crap";
}

Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ozracing
yes i have "arduino Mega ADK".... so that why i m asking about USB library, in the schematic of this board which USB connect with MAX3421 IC?????

i m not asking about from which i can program my "mega ADK". 
Logged

Lithuania
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Arduino rulez :)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

the smaller usb socket a female type i believe
Logged

if (str = "arduino rulez") {
 delay(250);
 str = "Pic is crap";
}

Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes u r right.

but my query is how could i send data via this USB...........??
Logged

Lithuania
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Arduino rulez :)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

well i cant answer that because i don't have that board but you could try Serial.write and stuff and you can try these:
http://www.circuitsathome.com/mcu/programming/android_adk_compatible_usb_host_library_release for talking with android
http://www.circuitsathome.com/arduino_usb_host_shield_projects this can help too
Logged

if (str = "arduino rulez") {
 delay(250);
 str = "Pic is crap";
}

Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ozracing
thanks for your help......i has been tried this but not working.

but anyone know then plz give me reply
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you downloaded the Android ADK software from Google? I believe that it contains libraries for accessing the host usb port. The MAX3421 is attached to the arduino via an I2C connection, so you will need to use that to communicate with it.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@dxw00d....

i had tried, when i didn't get then i ask here.....  smiley

* ADK_MEGA_2560-Rev2-sch.pdf (185.97 KB - downloaded 13 times.)
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you haven't got the ADK package from here https://dl-ssl.google.com/android/adk/adk_release_0512.zip, you'll need to do direct communication with the MAX3421 using I2C, with the Wire library.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 68
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have "ardunino MEGA ADK" development kit
i want to use his USB host which connected wit max3421 IC but i could not find this IC how to connect with controller

i m working with schematic but can not find, so anyone tell me and if anyone has this sample code than plz give it to me

Thanks in advance
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You have already been told this. The Max3421 is attached to the arduino via an I2C connection. You can use the Wire library to talk to it. The links ozracing gave you have sample code. You will need this https://dl-ssl.google.com/android/adk/adk_release_0512.zip. I don't have a Mega ADK. so I can't help any more than that.
Logged

Pages: [1]   Go Up
Jump to: