We’d been having trouble with the WiFly shield for weeks, it was just hanging at the SPI UART begin function, which meant that it was unable to connect to the WiFly bit through the shield. We knew this, but after the mess up with the sound sensor (we had it wired wrongly!) we didn’t want to be the bad workmen blaming our tools again!
But this time, it turned out it was the tools; the WiFly shield isn’t compatible with the Arduino Mega. Damn.
Thankfully it was a relatively simple fix, although I think I’m in danger of death-by-Saunders, as I’ve had to bend the pins from the shield 😉
All you have to do is reroute the pins that are in different positions on the Mega, I followed this helpful tutorial (I know it’s for ethernet, but it worked just the same) http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/
And this now means we can move one more step forward on our lovely project 🙂