How long does it take to upload a Sketch to an Arduino?

Gidday fellas

I'm currently working on some code to read an AM2302 sensor:

// Adafruit Unified Sensor - Version: Latest 
// This library is required to get the sensor working(?)
#include <Adafruit_Sensor.h>

// DHT sensor library - Version: Latest 
#include <DHT.h>
#include <DHT_U.h>

//#define DHTPIN 2 (may not need this)
//#define DHTTYPE DHT22 (may not need this)

//This is some WIP code for getting the Arduino to read the AM2302 sensor
//Based off the code dancili used in his project "Test DHT22 Sensors with Arduino and MATLAB © CC BY-SA"
//URL: https://create.arduino.cc/projecthub/dancili/test-dht22-sensors-with-arduino-and-matlab-74e81d?f=1


DHT dht1(2, DHT22); //This line defines "dht1", a DHT22 sensor on Pin 2. 

//Defining the variables used 
float hum; //Humidity variable
float temp; //Temperature variable 

//Starting up the sensor and serial port
void setup() {
    Serial.begin(9600);
    dht1.begin();
}

//This code reads dht1's temp and hum, t prints it to serial. 
void loop() {
    hum = dht1.readHumidity();
    Serial.print(hum);
    Serial.print(":");
    temp = dht1.readTemperature();
    Serial.print(temp);
    Serial.print(":");
}

The code is verified to be working and I'm currently in the process of uploading it to the Arduino. Only problem is that this is taking forever! E.g. I've been waiting for 10 minutes so far.

This is the (last 10 lines) of the verbose output from the Cloud IDE:

/home/builder/.arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-objcopy -O ihex -R .eeprom /tmp/281342784/build/sketch_apr18a.ino.elf /tmp/281342784/build/sketch_apr18a.ino.hex

Multiple libraries were found for "DHT.h"

Used: /home/builder/opt/libraries/latest/dht_sensor_library_1_3_4

Not used: /home/builder/opt/libraries/latest/nanoplayboard_0_1_1

Not used: /home/builder/opt/libraries/latest/grove_temperature_and_humidity_sensor_1_0_0

Using library adafruit_unified_sensor_1_0_3 at version 1.0.3 in folder: /home/builder/opt/libraries/latest/adafruit_unified_sensor_1_0_3

Using library dht_sensor_library_1_3_4 at version 1.3.4 in folder: /home/builder/opt/libraries/latest/dht_sensor_library_1_3_4

/home/builder/.arduino15/packages/arduino/tools/avr-gcc/5.4.0-atmel3.6.1-arduino2/bin/avr-size -A /tmp/281342784/build/sketch_apr18a.ino.elf

Sketch uses 6054 bytes (12%) of program storage space. Maximum is 49152 bytes.

Global variables use 194 bytes (3%) of dynamic memory, leaving 5950 bytes for local variables. Maximum is 6144 bytes.

The serial tab is unusable, "Serial port temporarily busy". Here is a screenshot:

1 Like

Extra details:
-Using an Arduino Uno WiFi
-Googled this issue but nothing really useful comes up in regards to upload duration (shouldn't be too long because short code?)

Sounds like a long time. I don't think I've ever hit a minute compiling and uploading from the Windows Arduino IDE.

I see your screenshot says powered by Amazon. Is this the web Arduino IDE? I haven't used it, but if you are writing code on a server on the Internet and then downloading from the Internet before flashing your microcontroller, there are many network factors that could cause any data to take a while to get to your local network.

Maybe someone who is more familiar with the IDE you are using will know something more informative. I would certainly suggest using a local option for the IDE if you are not using one on your personal computer.

I've installed the desktop IDE and this is working fine, so it must be a problem with the Web IDE.

Even though I've got the desktop version working, I'd like the web version to work as well for when I go to campus for Arduino work. So anyone's help to figure out the issue would be greatly appreciated!

I think there is a temporary issue with the Arduino Web Editor. There are other reports of the issue here:
http://forum.arduino.cc/index.php?topic=610868

We'll update that thread as there is new information on the issue, so you may want to go to the link above and click "Receive Emails" so that you'll get a notification when there is new activity there.

Excellent, thanks for the info! I've subbed to that thread and will see what happens.

Hi. The developers are asking for some additional information so they can investigate the issue. Please click on the tray icon for Arduino Create Agent. In the menu, it will show the agent version, something like this: "Agent version 1.1.86-5c199c1". Please tell us which version is shown on your menu.

Thanks!

Sweet when I get back to my kit tomorrow morning I'll let you know :slight_smile:

The Agent version I am using is 1.1.86-5c199c1