Can not upload code to ESP01 using Arduino UNO R3 and Arduino cloud

I watched this tutorial to figure out how to upload my sketch to the esp 01. I don’t have the usb device so I am using my arduino uno as a replacement to upload sketches to esp01.
It work the first time but couple last day when i try to use this method to for upload to the blynk cloud but it not working so i try back with arduino and now it keep showing this error. I’ve checked every detail like wired and code but it still can not upload the code.

Error file
cloud_upload_error.txt (3.5 KB)

My wired:

Code:

#include "thingProperties.h"

const int relayPin = 0;

void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 
  pinMode(relayPin,OUTPUT);
  
  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
  
  
}

void onRelaySwitchChange()  {
  // Add your code here to act upon RelaySwitch change
  if(relaySwitch){
    digitalWrite(relayPin,HIGH);
  }else{
    digitalWrite(relayPin,LOW);
  }
}

Thanks you much for your support.

Hi @tonysodeep. Try connecting the "RESET" pin on the UNO to the "GND" pin. This will hold the ATmega328P microcontroller on the UNO board in reset and thus prevent any possibility of it sending serial data that would interfere with the communication between the computer and the ESP8266 microcontroller during the upload.

1 Like

Please check the Arduino separately. Make sure there is no problem with the USB to serial converter chip.

Hi @ptillisch, thank you so much for replying. I start over with a new device to the cloud step, connect the ESP RST -> UNO GND pin and then upload the new code.
Now it give me this error

I guess you are correct. Maybe I accidentally short circuit damaged my esp 01 cause i don’t familiar with electric safety. I need to check again whether my arduino pin hole and the esp circuit is working or not. Could you share link posts on the forum about how to check it. Thank you for replying.

Right now the fastest way i can test it is use the ESP01 Programmer Adapter UART to upload code from cloud to the esp01. That way I will know whether my UNO or ESP 01 is damaged.

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