How can I “reset” an Arduino board?

前端 未结 21 1872
不思量自难忘°
不思量自难忘° 2020-12-13 01:07

I\'ve uploaded a sketch to an Arduino Uno whose loop is something like this:

void loop(){
    Serial.println(\"Hello, World!\");
}

So, now,

21条回答
  •  天命终不由人
    2020-12-13 01:36

    After scratching my head about this problem, here is a very simple solution that works anytime:

    • Unplug your USB cable
    • Go in Device Manager
    • Click on Ports (COM & LPT)
    • Right click on Arduino....(COMx)
    • Properties
    • Port Settings
    • Put Flow Control to HARDWARE
    • Create an empty sketch (Optional)
    • Connect the USB cable
    • Upload (Ctrl + U)

    // Empty sketch to fix the upload problem
    // Created by Eric Phenix
    // Nov 2014
    
    void setup()
    {
    }
    
    // The loop routine runs over and over again forever:
    void loop()
    {
        delay(1000);
    }
    

    Et voila!

提交回复
热议问题