Pages: [1]   Go Down
Author Topic: Simple Question About WiFi Shield Wiring to the Due Board  (Read 683 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I've received my first Arduino board last weekend (together with a wifi shield). While I've found the wiring for other boards and the shield ("Arduino communicates with both the Wifi shield's processor and SD card using the SPI bus (through the ICSP header). This is on digital pins 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega...."), I can't find the wiring for the shield with the due board.
Can someone share a typical wiring? And briefly explain the logic behind it....

Also, I plan to have an analog switch that will let the user choose between the SD or wifi on the shield (so I'm guessing a switch will be connected to pin 4 and pin 10 of the due? reading which one is high)

Thank you for your help in advance.

 
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So, I've compared the schematics of the uno and the due regarding the wifi shield, and it seems that pins 11,12,&13 of the uno correspond to the SPI pins 109,108,&110 of the due, respectively. Is this correct?
Also, which are the pins that are used on the due to select SD or wifi modes? It says that on the uno it's pins 4 and 10. Also, in case of data transfer?
Here is a link to the uno schematics:
http://arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf
Schematics of the due (taken from the top post in this forum):
http://www.robgray.com/temp/Due-pinout.svg

I Appreciate any input that you can provide.

Lastly, here is the wifi shield wiring description:
"Arduino communicates with both the Wifi shield's processor and SD card using the SPI bus (through the ICSP header). This is on digital pins 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used to select the HDG104 and pin 4 for the SD card. These pins cannot be used for general I/O. On the Mega, the hardware SS pin, 53, is not used to select either the HDG104 or the SD card, but it must be kept as an output or the SPI interface won't work.
 
Digital pin 7 is used as a handshake pin between the WiFi shield and the Arduino, and should not be used.
 
Note that because the HDG104 and SD card share the SPI bus, only one can be active at a time. If you are using both peripherals in your program, this should be taken care of by the corresponding libraries. If you're not using one of the peripherals in your program, however, you'll need to explicitly deselect it. To do this with the SD card, set pin 4 as an output and write a high to it. For the HDG104, set digital pin 10 as a high output." How come it doesnt mention data bus?
Logged

Pages: [1]   Go Up
Jump to: