Nano 33 IoT Newbie

Good day all,

First of all, I am a complete noob when it comes to Arduino. Been a Pi guy for a while and my understanding is there.

Let me explain my head space before I go much further. I have the desire to build a very remote weather station. Solar powered and IoT cellular communications. I am in the VERY infantile stages of this project (Just getting hardware and playing with it to get comfortable)

I picked up a Nano 33 IoT at someone suggestion to help with communications. So I started playing with it and looking at some of the built in code examples to familiarize myself. I did the blink routine and marveled at the different speeds of the flashy light. :o Then went off to play with the Network portion.

Being comfortable in Pi and Unix I immediately wanted to update the firmware on the device. I opted to check the firmware first of course. and All I can get out of the machine is this:
WiFiNINA firmware check.

Communication with WiFi module failed!

The code is directly out of the WiFiNina examples and is:
</>
/*

  • This example check 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 <SPI.h>
    #include <WiFiNINA.h>

void setup() {
// Initialize serial
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}

// 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 do not match the");
Serial.println(" version required by the library, you may experience");
Serial.println(" issues or failures.");
}
}

void loop() {
// do nothing
}
</>

Now I tried this on both the IDE desktop app and the web app (Figuring I was just a dumbass when it came to libraries) and I have the same results.

ANY assistance is more than welcome.

Thank you.
Glenn May
Massachusetts USA

Just a quick update:

I have tried several other example files and they all seem to work fine. ONLY when I try to hit the wifi do I get the big 'ol nano bird!

glennemay:
First of all, I am a complete noob when it comes to Arduino. Been a Pi guy for a while and my understanding is there.

Welcome to the forum

glennemay:
Being comfortable in Pi and Unix I immediately wanted to update the firmware on the device. I opted to check the firmware first of course.

Please don't that. Unlike your Raspberry Pi your Arduino can get bricked when something goes wrong while you update the firmware and you cannot just plug an new SD card in. In most cases you do not get many benefits from it anyways. Get used to the Arduino and the IDE first to understand the risks and benefits.

glennemay:
Communication with WiFi module failed!

That is not a good sign. Your code works fine on my Arduino Nano 33 IoT.

Please also read the "How to post". Its at the beginning of each sub forum. Learn how to use code tags and modify your original post to look like this.

Example code
</>
/*
 * This example check 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 <SPI.h>
#include <WiFiNINA.h>


void setup() {
  // Initialize serial
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }


  // 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 do not match the");
    Serial.println("   version required by the library, you may experience");
    Serial.println("   issues or failures.");
  }
}


void loop() {
  // do nothing
}
</>

Putting code here, for practice.

Klaus_K:
Welcome to the forum
Please don't that. Unlike your Raspberry Pi your Arduino can get bricked when something goes wrong while you update the firmware and you cannot just plug an new SD card in. In most cases you do not get many benefits from it anyways. Get used to the Arduino and the IDE first to understand the risks and benefits.
That is not a good sign. Your code works fine on my Arduino Nano 33 IoT.

Please also read the "How to post". Its at the beginning of each sub forum. Learn how to use code tags and modify your original post to look like this.

Example code

Thank you for the response. I realized I did that to the code after I posted the message and could not figure out how to edit it and add it after the fact. All of the tags I put in showed up just as tags.
As for the Nano, I am assuming it's a failed WiFi chip and will order a new one.