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

0 Members and 1 Guest are viewing this topic.

Offline zdelarosa00Topic starter

  • Regular Contributor
  • *
  • Posts: 73
  • Country: mx
  • Manipulate your machine, you're a Technomancer...
Arduino USB Host or no USB Host?
« on: May 21, 2015, 10:59:31 pm »
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: https://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
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11228
  • Country: us
    • Personal site
Re: Arduino USB Host or no USB Host?
« Reply #1 on: May 21, 2015, 11:10:09 pm »
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 zdelarosa00Topic starter

  • Regular Contributor
  • *
  • Posts: 73
  • Country: mx
  • Manipulate your machine, you're a Technomancer...
Re: Arduino USB Host or no USB Host?
« Reply #2 on: May 22, 2015, 03:48:25 am »
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
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11228
  • Country: us
    • Personal site
Re: Arduino USB Host or no USB Host?
« Reply #3 on: May 22, 2015, 04:56:47 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.
Alex
 

Offline pickle9000

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

Offline timb

  • Super Contributor
  • ***
  • Posts: 2536
  • Country: us
  • Pretentiously Posting Polysyllabic Prose
    • timb.us
Re: Arduino USB Host or no USB Host?
« Reply #5 on: May 22, 2015, 12: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 zdelarosa00Topic starter

  • Regular Contributor
  • *
  • Posts: 73
  • Country: mx
  • Manipulate your machine, you're a Technomancer...
Re: Arduino USB Host or no USB Host?
« Reply #6 on: May 23, 2015, 04:17:48 pm »
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 23, 2015, 04:26:29 pm 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: 1305
  • Country: no
Re: Arduino USB Host or no USB Host?
« Reply #7 on: May 23, 2015, 04:39:13 pm »
It's specified on the adafruit productpage, TTL Serial..
 

Offline zdelarosa00Topic starter

  • Regular Contributor
  • *
  • Posts: 73
  • 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 24, 2015, 11:32:50 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.

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