Arduino MKR Wifi 1010 won't connect to router

I am trying to connect an MKR Wifi 1010 to the router - it won't.

Latest firmware installed, correct libraries, etc, etc. SSID and password copied back to PC to ensure no typos. I have tried with WPA, WPA2 and WEP. I have also tried disabling the 5GHz channel in case that was causing interference,

I've tried the WPAPing and ConnectWithWPA examples. Both return 4 (WL_CONNECT_FAILED
) from WiFi.begin.

Any thoughts on further debugging / fault finding.

HELP!!

Try enabling the "hot spot" access point on your smartphone. Will the Arduino connect to that?

Also try running a wi-fi scanner sketch on the arduino to see what it reports on serial monitor.

Thanks for the quick reply.

Yup, tried the mobile as well.

However, the ScanNetworks sketch gives:
MAC: 4C:EB:D6:4C:A4:C0
Scanning available networks...
** Scan Networks **
number of available networks:0
Scanning available networks...
** Scan Networks **
Couldn't get a WiFi connection

Does that indicate a faulty board?

Perhaps.

I assume a wi-fi scan on your smartphone shows the expected APs?

Does the MKR Wifi 1010 have the option of an external antenna? If so, there may be a tiny 0R resistor that needs to be moved to the correct position to use the onboard antenna or the external antenna, you could check that.

Yes, the mobile scan is all good.

I've read some threads that the onboard antenna shouldn't be touched (others were asking about using an external to give better range).

Faulty board seems most likely reason so far.

Do you have any other wi-fi enabled Arduino to try, like a wemos D1 mini or nodeMCU?

No, I don't have any other boards. I'll go back to the supplier.

Thanks again.

OK, new board arrived today. Checked firmware (PASSED), ran the ScanNetworks example and:
Scanning available networks...
** Scan Networks **
Couldn't get a WiFi connection

But there are networks available.

Unlikely that I have had 2 faulty boards, so there is likely to be another reason, no?

Further info:

I ran CheckFirmwareVersion from examples->wifinina->tools and got the result:

Firmware version installed: 1.5.0

Latest firmware version available : 1.4.8

Check result: PASSED

I.e. the installed version is LATER than the last version available!

WifiNina libraries are up to date. Is there a mismatch somewhere?

Anyone? This is driving me crazy...

Hello....

I have now tried using the example at : https://docs.arduino.cc/arduino-cloud/getting-started/iot-cloud-getting-started

Connection to "xxxxxxx-xxxx" failed
Retrying in "500" milliseconds

Firmware is : 1.4.8 - PASSED with firmware check

I am having the exact same issue. I have ordered three Arduino MKR WiFi 1010 for a small factory automation project. I tried the samples in the Ardunio IDE 2.0 and I tried the Web IDE create Thing function to connect to Wifi. Can’t connect to any of my networks that have great reception at the desk. Mobile hotspot with my phone is not recognized. Hotspot function on Arduino or wifi scanning doesn’t work either. I also tried updating the firmware to 1.4.8 also doesn’t help.

Hi

I found that if a battery is connected, both my MKR’s connect reliably.

I really don’t understand it, but you might want to try with one.

Regards

Chris

Thank you for this tip. I actually don't want to connect a LiPO battery in my environment but what you said made me think it could have to do with power supply. So, instead of just powering the Arduino through USB, I have connected a 5V power supply to VIN and GND. After having done that I am able to connect to the wifi networks. So this might have to do with my USB port not providing enough power for the wifi module to work correctly. Maybe the troubleshooting section of Connecting MKR WiFi 1010 to a Wi-Fi Network | Arduino Documentation | Arduino Documentation could be updated accordingly?

@pert ,
See comment above, can you get the documentation ammended?

Thanks,

1 Like

Hi, i was with the same problem 5 minutes ago, looks like arduino gets scared when the SSID names have blank spaces, so i had to change the name of my SSID router to one with no spaces and it worked!

1 Like

i am also facing this problem, i dont want to use the battery are there no other solutions??? @PerryBebbington @pert

Sorry, I have no further advice than what is in this topic already.

What about trying a battery? At least then you would know whether it is the same issue or something else.