Message: Good morning,
First of all, I would like to thank you for the Arduino Tutorials; they are great.
I am quite new to Arduino and was confronted with the new Arduino Robot (arduino.cc/en/Main/Robot) in my current project. The aim is to navigate it by means of surrounding Wifi-Signals. This is why I bought the Arduino Wifi-Shield (arduino.cc/en/Main/ArduinoWiFiShield) and now I am trying to make the Shield work on the Robot. However, this is not a matter as usual, of simply stacking shields, and some of the pins required by the Wifi Shield are already used by the LCD, which comes standard with the robot.
Could you please provide me with some guidance on how to change pins etc., to make this work?At the moment, I assume that I can connect the Wifi Shield to the robot by means of the ICSP bus. That leaves pins 4, 7 and 10 of the Wifi Shield still to be connected. As for pins 4 and 10, which are SS-pins, I assume that I could use two of the TKD pins on the robot. That leaves pin 7, the ‘Handshake’ pin remaining and I have no idea what to do about this.
So my questions are: Are my above assumptions correct? Do the TKD pins require some software initialization or something of that form, or is it simply a matter of soldering the connections? Do I have to change the Wifi library to state that I am using the TKD pins and not the regular ones? What should I do about the ‘Handshake’ pin?
I would really appreciate any help on this matter, as I am quite confused and desperate; I really need to get this working.
Thank you very much in advance.
Kind regards
Stefan Marggraff
We’d have to try it ourselves to be sure, but it seems like your reasoning is good: you should be able to use the ICSP header for the SCK, MISO, and MOSI lines and then remap the two SS pins and the handshake pin.
To remap the SS for Wifi and handshake pins, you should be able to modify the lines 13-15 at the top of the spi_drv.cpp file found in the /libraries/WiFi/utility/ folder.
We hope this helps,