Serial Port Unavailable in online editor

Windows 11 Home
Browser Edge or Chrome both
Nano Every
I was not able to get it to communicate with the program and finally used the web editor and was successful. Now the Web Editor says the Serial Port Unavailable even when the editor says connected to the NANO. I even tried other Nano Every with no success. I did check to see if the agent Icon is on and it is not colored but does say it is working ver 1.2.7-f71b9a0 and I only have the choices of "go to Arduino create" and "Open debug console" and "pause agent" and "quite agent" so I assume it to be on. I also tryied another cable and that did not work. It was working and was able to update the NANO at least 5 times before it could not recognize. I also restarted many times. the debug gives me this so it sees it. Serial Ports:
[
{
"Name": "COM3",
"SerialNumber": "70CF013C51544B5933202020FF092127",
"IsOpen": false,
"VendorID": "0x2341",
"ProductID": "0x0058"

please help I searched on my own and did not find anything.

here is the code I am trying to use. It is to run the Hollow Clock 2
// Please tune the following value if the clock gains or loses.
// Theoretically, standard of this value is 60000.
#define MILLIS_PER_MIN 15000 // milliseconcs per a minute

#define ROTATION_PERIOD_IN_MSEC 10000

// Motor and clock parameters
#define STEPS_PER_ROTATION 4096 // steps of a single rotation of motor
#define RATIO 15 // minutes per a rotation

#define LAP 65536 // value to avoid overflow of long int

// wait for a single step of stepper
int delaytime = 10;

// ports used to control the stepper motor
// if your motor rotate to the opposite direction,
// change the order as {4, 5, 6, 7};
int port[4] = {7, 6, 5, 4};

// sequence of stepper motor control
int seq[8][4] = {
{ LOW, HIGH, HIGH, LOW},
{ LOW, LOW, HIGH, LOW},
{ LOW, LOW, HIGH, HIGH},
{ LOW, LOW, LOW, HIGH},
{ HIGH, LOW, LOW, HIGH},
{ HIGH, LOW, LOW, LOW},
{ HIGH, HIGH, LOW, LOW},
{ LOW, HIGH, LOW, LOW}
};

void rotate(int step) {
static int phase = 0;
int i, j;
int delta = (step > 0) ? 1 : 7;

step = (step > 0) ? step : -step;
for (j = 0; j < step; j++) {
phase = (phase + delta) % 8;
for (i = 0; i < 4; i++) {
digitalWrite(port[i], seq[phase][i]);
}
delay(delaytime);
}
// power cut
for (i = 0; i < 4; i++) {
digitalWrite(port[i], LOW);
}
}
void setup() {
pinMode(port[0], OUTPUT);
pinMode(port[1], OUTPUT);
pinMode(port[2], OUTPUT);
pinMode(port[3], OUTPUT);
pinMode(14, OUTPUT);
digitalWrite(14, LOW);
pinMode(16, INPUT_PULLUP);
}

long calc_step(long msec) {
return STEPS_PER_ROTATION * msec / MILLIS_PER_MIN / RATIO;
}

void loop() {
static long prev_msec, prev_pos;
long msec, pos;

if (digitalRead(16) == LOW) {
delaytime = 2; //fast rotation
rotate(20);
delaytime = 20; // resume
return;
}
msec = millis() % LAP;
if (msec < prev_msec) { // Laps around
msec += LAP; // hide lap around temporarily
}

if (msec >= prev_msec + ROTATION_PERIOD_IN_MSEC) { // do rotation
pos = calc_step(msec);
rotate(pos - prev_pos);

if (msec >= LAP) { // Laps around
  msec %= LAP;
  pos = calc_step(msec);
}
prev_pos = pos;
prev_msec = msec;

}
}

Do you happen to have the Windows Arduino IDE app open at the same time? In some of my searches, people have recommended to close the Arduino IDE then reload the Cloud Editor and your sketch.

Another thought...Does your browser have any content blocking enabled? I use Firefox with uBlock and it was blocking several things on the web editor.

You can try the steps below:

  1. clear your browser's cache and restart it
  2. Unistall the Create Agent and then reinstall it with admin right. Make sure it is running.
  3. close the IDE installed in your machine
  4. Now try using the Web Editor by connecting your board with a good data USB cable.

If these does not work, exit the web editor page and then install Arduino IDE 2.1.0. Make sure that you install all the dependencies that shows up after the installation. This IDE will auto detect your board when you connect it with a good data USB cable.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.