我如何“重置"密码? Arduino开发板? [英] How can I "reset" an Arduino board?

查看:183
本文介绍了我如何“重置"密码? Arduino开发板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将素描上传到了Arduino Uno,其循环类似于这个:

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

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

因此,现在,我无法再上传任何东西,因为IDE提示端口已在使用中".

So, now, I can't upload anything anymore, because the IDE says "port already in use".

有没有一种方法可以在没有其他程序员的情况下重置" Arduino?

Is there a way to "reset" the Arduino without another programmer?

没有其他东西在使用串行端口了,一切都很好,直到我上传了上一个草图.

Nothing else is using the serial port, and everything went just fine until I uploaded the previous sketch.

我发现了一些有趣的东西:

I've found some interesting things:

推荐答案

尝试以下操作:

  1. 准备基本的空程序(空设置,循环等)
  2. 编译它.
  3. 使用芯片上的硬件按钮重置Arduino
  4. Ctrl + U 上传代码.
  5. 如果未成功-转到3.
  1. Prepare the basic empty program (empty setup, loop, etc.)
  2. Compile it.
  3. Reset the Arduino using the hardware button on the chip
  4. Press Ctrl + U to upload your code.
  5. If unsuccessful - got to 3.

引导加载程序启动程序之前会有一个延迟,请根据您的时间进行操作.当我的Arduino代码中的错误每500毫秒执行一次软重置时,它为我工作.

There is a delay before the boot loader starts the programs, just work on your timing. It worked for me when a bug in my Arduino's code was executing a soft reset every 500 ms.

这篇关于我如何“重置"密码? Arduino开发板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆