Hello,
I am rather new to Arduino but i have played around with it a bit. My first project was using a Arduino Uno rev3 with a arduino wifi shield stacked on it. The program was sending its digital inputs as bits over wifi to my pc which had a program to translate it back to visible actions. The arduino also had an I2C LCD screen connected so i could see which button was pressed. It worked rather well.
But now i wanted to work out the same project but then with an arduino micro. Mostly because of its small size and i want to use it to make my own programmable wifi control.
At first glance the arduino micro seems to have all the neccesary connections and bits.
- The boards are powered by usb, but can be powered by a 9v or 12v adapter on the Vin pin.
- The wifi shield communicates through SPI with the ICSP connector, the micro has the same ICSP connector and can also communicate in SPI. I thought i would be safe there.
- The wifi shield requires +5v which comes from the ICSP connector.
- Pin 7 on the micro has been connected to pin 7 on the wifi shield. For the handshake.
- The SS pin on the micro has been connected to pin 10 on the wifi shield.
- The I2C screen has been connected properly to the SDA and SCL pins, and works properly.
I loaded the micro with exactly the same program as i used on the UNO. With changing the board to a arduino micro. The upload goes well and my LCD screen displays what it should do. But at the point the wifi shields connects to my wifi it hangs and won't continue. After that i have tried the example program to check if the wifi shield is present but it can't find it. After some searching i have found some solutions but none work so far. The following i have already tried:
- Updating the Wifi library with the latest version found on github
- Connecting pin 3 and 7 on the wifi shield
- The Wifi shield is powered, if i measure the voltage between +5v and GND i measure +5v. Only the 3.3v doesn't. But i am not sure if it is needed as the board is powered by 5v.
- Pressing the reset button on the Wifi shield will reset the Micro, so some connections are valid
- I have checked all connections between the micro and wifi shield, and all connections seem to be good.
I am currently attempting to update the firmware on the wifi shield. I hope this will fix the problem i am having but i fear it won't. But i'll update that once i am done.
If anyone here has tried something similar or had the same issues i am happy to hear of any suggestions or solutions.
My own thoughts about what i can try further are:
- Connecting the 3.3v from the micro to the wifi shield. According the the board design i cannot see anything connected to it so i won't know if it will work.
- Connecting the ICSP connector to pins 11(MOSI), 12(MISO), 13(SCK) on the wifi shield as it would do on an UNO
- Connecting my UNO again to see if the Wifi shield isn't broken
Thank you,
Mark
edit: Updated the firmware now, but it makes no difference sadly. Also linked the 3.3v from the micro to the wifi shield but it didnt make any difference.
edit 2: connected the 3.3v from the micro to the 3.3v and the IOREF on the wifi shield without success
edit 3: After some more attempts i figured that after i updated the firmware i forgot to disconnect the jumper and tried again with the 3.3v on the IOREF. At first the error led on the wifi shield lit up but that was because my Wireless router wasn't accessible. Once that was done i got it working :). It is still a bit unstable with detecting the wifi shield but after a reset of the board it works.