Author Topic: Arduino USB Host or no USB Host?  (Read 2798 times)

0 Members and 1 Guest are viewing this topic.

Offline zdelarosa00

  • Regular Contributor
  • *
  • Posts: 52
  • Country: mx
  • Manipulate your machine, you're a Technomancer...
Arduino USB Host or no USB Host?
« on: May 22, 2015, 08:59:31 am »
Hi everyone, my third question on the forum here, now is... I know Arduino has a usb controller chip on it to conenct it to the compter and to use the IDE and program it, now my question is.. Can I plug a USB device to an Arduino without a USB-Host shield?, I've seen cases like this video: http://www.youtube.com/watch?v=1diFaa5OsFg, where you just use the USB pair of pins on the device and TX & RX on he Arduino to make the couple work, recieve and send information, but I've asked(?) before and apparently even with a simple usb mouse or small keyboard you need a USB host device or a "USB-UART / USB-RS232" (or are the shields actually the same rs232?) translator thing in order to make the couple work as the arduino being the host and the usb device to be used. Am I completely lost here..?. Anyway, thank you and I appreciate any help, good vibrations to everyone from Mexico.  :-+

USB Host Shield: http://www.dx.com/p/usb-host-shield-2-0-board-166217#.VV5jMai3vKg
Space landfill waste consultants say: "If you think you can or if you think you can't you're right" - Always on my way to be a better electronic wizard
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 4697
  • Country: us
    • Personal site
Re: Arduino USB Host or no USB Host?
« Reply #1 on: May 22, 2015, 09:10:09 am »
No,  standard Arduino can't do host on its own. What makes you think that it is a USB host on that video? They are connecting a sensor with I2C/SPI/UART/whatever interface and use Arduino USB port for serial communication.

Arduino Zero has USB Host controller, but it is mostly vaporware right now.
Alex
 

Offline zdelarosa00

  • Regular Contributor
  • *
  • Posts: 52
  • Country: mx
  • Manipulate your machine, you're a Technomancer...
Re: Arduino USB Host or no USB Host?
« Reply #2 on: May 22, 2015, 01:48:25 pm »
They are connecting a sensor with I2C/SPI/UART/whatever interface and use Arduino USB port for serial communication.

So if I connect a keyboard or mouse to TX &  RX should I get results on the serial monitor?
Space landfill waste consultants say: "If you think you can or if you think you can't you're right" - Always on my way to be a better electronic wizard
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 4697
  • Country: us
    • Personal site
Re: Arduino USB Host or no USB Host?
« Reply #3 on: May 22, 2015, 02:56:47 pm »
No, you won't. There is no RX and TX in USB. You can connect PS/2 keyboard, but that's probably not what you want.

Also, you don't just get results on the serial port, you need to write firmware to do so.
Alex
 

Offline pickle9000

  • Super Contributor
  • ***
  • Posts: 2132
  • Country: ca
Re: Arduino USB Host or no USB Host?
« Reply #4 on: May 22, 2015, 03:06:01 pm »
 

Offline timb

  • Super Contributor
  • ***
  • Posts: 2528
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
Re: Arduino USB Host or no USB Host?
« Reply #5 on: May 22, 2015, 10:02:10 pm »
Arduino Mega ADK can do USB Host.


Sent from my Tablet
Any sufficiently advanced technology is indistinguishable from magic; e.g., Cheez Whiz, Hot Dogs and RF.
 

Offline zdelarosa00

  • Regular Contributor
  • *
  • Posts: 52
  • Country: mx
  • Manipulate your machine, you're a Technomancer...
Re: Arduino USB Host or no USB Host?
« Reply #6 on: May 24, 2015, 02:17:48 am »
And can I program an Uno to work as a USB to Serial converter?, or as a USB Host? .... And that means that device in the video is not USB??, it looks like it is and all the similar fingerprint readers that i've seen are USB  :(
« Last Edit: May 24, 2015, 02:26:29 am by zdelarosa00 »
Space landfill waste consultants say: "If you think you can or if you think you can't you're right" - Always on my way to be a better electronic wizard
 

Offline neslekkim

  • Super Contributor
  • ***
  • Posts: 1298
  • Country: no
Re: Arduino USB Host or no USB Host?
« Reply #7 on: May 24, 2015, 02:39:13 am »
It's specified on the adafruit productpage, TTL Serial..
 

Offline zdelarosa00

  • Regular Contributor
  • *
  • Posts: 52
  • Country: mx
  • Manipulate your machine, you're a Technomancer...
Space landfill waste consultants say: "If you think you can or if you think you can't you're right" - Always on my way to be a better electronic wizard
 

Offline jeristair

  • Newbie
  • Posts: 2
Re: Arduino USB Host or no USB Host?
« Reply #9 on: May 25, 2015, 09:32:50 am »
No, you won't. There is no RX and TX in USB. You can connect PS/2 keyboard, but that's probably not what you want.

Also, you don't just get results on the serial port, you need to write firmware to do so.

If you're talking about a USB Keyboard here, then yes, it would work, most wired USB Keyboard's can default back to the PS/2 interface using the USB connector.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf