This post is for those with problems with its Wifi module.
If your Arduino Nano 33 IoTArduino Nano 33 IoT works but when trying to access the wifi module it does not respond, you may have to update the firmware. In this blog we tell you how we did it in Windows 10
Tracking System for Classroom Ventilation Routines
A STEM project for classrooms
the VenTTracker project - Blog #09 - Checking and updating WiFiNINA Firmware
Checking and updating WiFiNINA Firmware
References
https://www.arduino.cc/en/Reference/WiFiNINA
https://www.arduino.cc/en/Tutorial/WiFiNINAFirmwareUpdater
Check the versions
The first thing you have to verify is that you have both the Arduino IDE and the Wifinina libraries updated to the latest version.
The new beta 2.0 version of the Arduino IDE that exists on the day this blog is published does not yet have the option to update ublox module firmware.
So you must work with the latest version of 1.8.x
Install library
Install WiFiNINA by Arduino
Go to Library Manager to install or update the WiFiNINA library.
Check the Wifi module
Try first this example: AP_SimpleWebServer
or download from github:
That example creates a new Wifi Access Point.
Enter your sensitive data in the Secret tab/arduino_secrets.h
SECRET_SSID is the name of your new wifi access point and SECRET_PASS the password for your new wifi access point
// /arduino_secrets.h
// Both SSID and password must be 8 characters or longer
#define SECRET_SSID "DesingForACauseWifiTest"
#define SECRET_PASS "123456789"
Upload the sketch an check the log in the serial port:
then from your PC or your phone connect to the new AP DesingForACauseWifiTest
Connect, enter the password and then you can access the server from a browser
You can see the log in the Serial Monitor
If you see: "PLease upgrade the firmware" your module has an old version of the firmaware.
Checking wifinina firmware version
You can run version checker alternatively.
Checks if the firmware loaded on the NINA module is updated.
Open the sketch by going to File -> Examples -> WiFiNINA -> Tools -> CheckFirmwareVersion
If the sketch doesn't work try this version I modified for the Arduino Nano 33 IoT
/* * This example checks if the firmware loaded on the NINA module * is updated. * * Circuit: * - Board with NINA module (Arduino MKR WiFi 1010, MKR VIDOR 4000 and UNO WiFi Rev.2) * * Created 17 October 2018 by Riccardo Rosario Rizzo * This code is in the public domain. */ #include <WiFiNINA.h> void setup() { // Initialize serial Serial.begin(9600); delay(1000); // Print a welcome message Serial.println("WiFiNINA firmware check."); Serial.println(); // check for the WiFi module: if (WiFi.status() == WL_NO_MODULE) { Serial.println("Communication with WiFi module failed!"); // don't continue while (true); } // Print firmware version on the module String fv = WiFi.firmwareVersion(); String latestFv; Serial.print("Firmware version installed: "); Serial.println(fv); latestFv = WIFI_FIRMWARE_LATEST_VERSION; // Print required firmware version Serial.print("Latest firmware version available : "); Serial.println(latestFv); // Check if the latest version is installed Serial.println(); if (fv >= latestFv) { Serial.println("Check result: PASSED"); } else { Serial.println("Check result: NOT PASSED"); Serial.println(" - The firmware version on the module does not match the"); Serial.println(" version required by the library, you may experience"); Serial.println(" issues or failures."); } } void loop() { // do nothing }
We need to update the wifinina firmware
Updating wifinina firmware
More info: https://www.arduino.cc/en/Tutorial/WiFiNINA-FirmwareUpdater
There is no option in Arduino IDE 2.0.0-beta.3 back to Arduino 1.8.13
Download the last version and copy it to firmwares directory
https://github.com/arduino/WiFi101-FirmwareUpdater-Plugin
For Windows 10:
Copy folder to
Plug in the board into your computer if you haven't done it yet and from the Tools menu select "Arduino Nano 33 IoT" as a board and select the right COM Port. Next open the FirmwareUpdater sketch by going to File -> Examples -> WiFiNINA -> Tools -> FirmwareUpdater.
Upload the sketch onto your Arduino Nano 33 IoT and close the Serial Monitor if it is open. Now launch the "WiFi 101 / NINA Firmware Updater" from the Tools menu of the IDE.
Use the Arduino IDE to upload the firmware
Final check of the firmware version
After the installation you can check if you have installed the latest version of the firmware by uploading the CheckFirmwareVersion sketch onto your board. You can find this sketch by going to File -> Examples -> WiFiNINA -> Tools -> CheckFirmwareVersion.
<< Previous VenTTracker Blog | Next VenTTracker Blog >> |
---|---|
VenTTracker #08 - Trying to make a measuring device with the accelerometer | VenTTracker #10 - Ventilation Monitor on Arduino IoT Cloud |
Top Comments