- Wed Mar 20, 2013 12:38 pm
#157206
I have a WiFly Shield (RN-131C, 6/15/10 rev).
When I plug it into an Arduino Uno (SMD ed.) and use the WiFly-Shield library, it works: no problems. Plugging it into an Arduino Due (R3) does not.
I'm still a relative newb when it comes to Arduino. However, my best guess is that communications over SPI is not working.
I see that the Due moved SPI pins to the center of the board on a 2x3 header. So I tried not plugging the WiFly shield directly into the Due, but jumping wires from the WiFly shield headers to the Due headers as seemed appropriate. That is:
Am I misunderstanding how things work here? As far as I can tell (looking at http://www.sparkfun.com/datasheets/DevT ... ld-v17.pdf and http://www.robgray.com/temp/Due-pinout.pdf), the 10-13 pins on the WiFly shield are wired to the CS/MOSI/MISO/SCK of the WiFly's SPI interface, and that's my only option (no UART exposed). Shouldn't jumpering those to the moved pins of the Due work?
When I plug it into an Arduino Uno (SMD ed.) and use the WiFly-Shield library, it works: no problems. Plugging it into an Arduino Due (R3) does not.
I'm still a relative newb when it comes to Arduino. However, my best guess is that communications over SPI is not working.
I see that the Due moved SPI pins to the center of the board on a 2x3 header. So I tried not plugging the WiFly shield directly into the Due, but jumping wires from the WiFly shield headers to the Due headers as seemed appropriate. That is:
Code: Select all
When I run SpiUartTerminal example, it fails in SpiUartDevice::uartConnected, where the readRegister(SPR) call returns 0xFF rather than the test character. Ideas?WiFly VIN -> Due VIN
WiFly GND -> Due GND
WiFly D7 -> Due D7 (/IRQ)
WiFly D10 -> Due D10 (/CS)
WiFly D11 -> Due D75 (MOSI)
WiFly D12 -> Due D74 (MISO)
WiFly D13 -> Due D76 (SCK)
Am I misunderstanding how things work here? As far as I can tell (looking at http://www.sparkfun.com/datasheets/DevT ... ld-v17.pdf and http://www.robgray.com/temp/Due-pinout.pdf), the 10-13 pins on the WiFly shield are wired to the CS/MOSI/MISO/SCK of the WiFly's SPI interface, and that's my only option (no UART exposed). Shouldn't jumpering those to the moved pins of the Due work?