Go Down

Topic: USB Host Shield (Read 8952 times) previous topic - next topic

waqasmir8125

Hi,

Has any one worked on USB Host Shield with Arduino UNO. I need help on configurations and connections which are required to make it work

BR,

Linoman

What help do you need? What boards do you have?

waqasmir8125

I just got a USB host shield board from Sparkfun electronics. I require help for the below mentioned

1. What connection I need to have from Arduino to USB host shield. I need to connect the SPI pins to the corresponding numbering on the USB Host shield ? Can anyone provide me help in knowing the connection which i need to make.

2. I need a test code to check whether the USB Host is working

Linoman

From my fair experience I have the same boards.

You must connect both shields using one of these and solder them to the USB Host Shield on the side. You will see how it matches the Arduino UNO nicely. And just put the USB Host Shield on top of the Arduino. It ain't that hard.

Test code? Try the descriptor/parser from USB Host Shield 1.0 with the Arduino IDE 0022. Attach a USB device and you must see the description from the device with the serial monitor.

The problem (as I read so far) you must make some changes in the pins from the USB HS to work with Arduino IDE 1.0 and USB Host Shield 2.0 (solder pin 7 with RST but I'm haven't tried it so far).

waqasmir8125


From my fair experience I have the same boards.

You must connect both shields using one of these and solder them to the USB Host Shield on the side. You will see how it matches the Arduino UNO nicely. And just put the USB Host Shield on top of the Arduino. It ain't that hard.

The link mentioned in HERE for the stuff used to solder with the board. I am totally new to these things so can u suggest me any tutorial for soldering this stuff and what is these pins called so that I can order them ?

Test code? Try the descriptor/parser from USB Host Shield 1.0 with the Arduino IDE 0022. Attach a USB device and you must see the description from the device with the serial monitor.

The problem (as I read so far) you must make some changes in the pins from the USB HS to work with Arduino IDE 1.0 and USB Host Shield 2.0 (solder pin 7 with RST but I'm haven't tried it so far).

Linoman

Why did you just quoted my message? Did you forget to write something else?

waqasmir8125

I am sorry. I added my own message in the quotes as well. This is what I wanted to know

The link mentioned in HERE for the stuff used to solder with the board. I am totally new to these things so can u suggest me any tutorial for soldering this stuff and what is these pins called so that I can order them ?

Constantin


I just got a USB host shield board from Sparkfun electronics. I require help for the below mentioned

1. What connection I need to have from Arduino to USB host shield. I need to connect the SPI pins to the corresponding numbering on the USB Host shield ? Can anyone provide me help in knowing the connection which i need to make.

2. I need a test code to check whether the USB Host is working


1. All the connections are there. That's the point of a shield. The issue is rather that Sparkfun changed some (but not all!) pin configurations when they apparently copied Oleg's design. Look up Olegs web site for the current host shield library. I have seen the instructions there re: changing pins for the sparkfun shield (it's one of the XXX.h files)... one more reason to buy the shield from the gentleman that enables it rather than a competitor.

Olegs board also features far more opportunities to re-map pins (if needed) and change other aspects of its behavior than the Sparkfun board (via solder bridges, solder pads that can be cut, etc). The Circuits @ Home USB Shield has clearly been thoroughly researched by someone who cares and who realizes that shield pins may need to be remapped if other shields are also in use. See shieldlist.org for a graphic example of how often the same pins are used over and over, making combinations of shields incompatible.

The only advantage that the Sparkfun board has is its little prototyping area and the PTC fuse. I find the former to be of marginal use but the latter is a neat feature. No documentation on how many mA trigger the PTC though. Anyhow, I got my board from Oleg yesterday, now I await my USB modem.

2. Test code is included in the library. So you should be all set once you have remapped the two non-SPI pins to reflect

Linoman

I can't agree more with Constantin. I'm actually having a hard time working wth Sparkfun's board and now I'm stuck with Arduino rev 0022. About to buy an Oleg's Shield.

Yes, maybe the little prototype area could be useful, but I rather use Oleg's Code with out a problem. Still Vik009 and I should try using the Pin7-RST to try Oleg's lib v2 in Sparkfun's to give it a one last chance.

@Vik009 Soldering tutorial? Try youtube. There's 4k+ videos there. The pins name? Stackable headers. Try to buy a big strip where you can cut as many and long as you need.

Constantin

#9
Apr 03, 2012, 03:16 pm Last Edit: Apr 03, 2012, 03:26 pm by Constantin Reason: 1
Oh dear,

I just realized that the Sparkfun shield lacks a 2x3 ISP header altogether. Not a great decision IMO since that will probably complicate SPI compatibility with the Mega and other "long" boards, right?

That the Sparkfun shield lacks the standard Arduino header pins is not that surprising - it makes shipping a lot easier. But it requires the recipient to have the gear to wire / solder the requisite connections. In other words, a minimalist shield with no easy way to re-map pins, the worst of both worlds, IMO. The only leg up it has is the PTC fuse, and that's a small leg.

Yet another two good reasons to use Olegs version of the shield, especially if you are not comfortable / capable / experienced soldering headers on yourself. Plus, if you want the flexibility re: header pins that the sparkfun shield offers, you can order a version of Oleg's board without the header pins installed.

I am very grateful for all that Sparkfun has done for the community in terms of kit, tutorials, Eagle library, etc. But in this instance I believe that Sparkfun should drop their product in favor of distributing Oleg's, which is far superior in terms of most aspects for Arduino users, both advanced and beginners. Plus, Oleg should be the one to gain from his hard work building the library and providing essential support to get all sorts of kit attached to an Arduino, right?

waqasmir8125

Hi,

Well in order to connect the SPI pins do I need to connect the pin 10,11,12 and 13 to the corresponding solder points on the spark fun board ?

Can i solder wires to the pin 10, 11, 12 and 13 of the USB host shield and connect them to the arduino pins. Will this work.

I am unable to figure out how would one use the header to solder the pins ? Do we need to do as above or we need to connect the 6 pins shown by ICSP on the Arduino platform.

waqasmir8125

Hi,
I have connected the pin 7 to the reset and soldered all the GPIN connections from GPIN0 to GPIN7 and GPIN1 to GPIN6 and so on. I am getting the below mentioned message for the board_qc

??ÁE- Circuits At Home 2011 USB Host Shield Quality Control Routine Reading REVISION register… Die revision 03 SPI long test. Transfers 1MB of data. Each dot is 64K……………. SPI long test passed GPIO test. Connect GPIN0 to GPOUT7, GPIN1 to GPOUT6, and so on Test failed. Value written: 00 Value read: 10 Press any key to continue…
Have i made some mistake in the GPIN connections. As I was making the connections I kept checking the value read and it went from FF to 10 but not to 00.
Is there a way I can check which pin has the mistake ? Please help

Constantin

I have yet to get my USB device so I have yet to work with olegs board.

Sorry!

BillyHoyle

Hi,

I have a straight question. Can I use other pins (pins that USB Host Shield doesn't use) of arduino at the same time with the shield? I need to connect bar code reader and a valtage control circuit at the same time.

Go Up