arduino小赵 发表于 2014-12-16 18:04:23

新人求助,关于arduino控制舵机的

本人刚接触arduino,想用arduino控制舵机,选择了arduino IDE里面的示例程序,就是那个什么servo-sweep这个程序,可是想上传到板子上,结果出现了这个错误信息:
Arduino:1.5.7 (Windows 7), 板:"Arduino Nano, ATmega328"

Build options changed, rebuilding all



Sketch uses 2,564 bytes (8%) of program storage space. Maximum is 30,720 bytes.

Global variables use 56 bytes (2%) of dynamic memory, leaving 1,992 bytes for local variables. Maximum is 2,048 bytes.

avrdude: ser_open(): can't open device "\\.\COM1": 系统找不到指定的文件。

报告将会包含更多的信息
"Show verbose output during compilation"
在 文件>首选项 中启用

Super169 发表于 2014-12-16 18:50:53

先確定 arduino 連線用的 COM port, 然後在 IDE 上選該 COM port.

arduino小赵 发表于 2014-12-16 21:26:32

Super169 发表于 2014-12-16 18:50 static/image/common/back.gif
先確定 arduino 連線用的 COM port, 然後在 IDE 上選該 COM port.

COM port是什么,能具体点吗

Super169 发表于 2014-12-16 22:19:56

就是 arduino 用 USB 連線後, 在電腦上用來跟它溝通的 I/O port.
如果你連 COM port 也不清楚, 相信你也沒有設定吧.
可能你的電腦本身有 COM1 的裝置, arduino IDE 預設了這個 port, 又或你跟本連 driver 也沒裝好, COM1 但並非連接 arduino 的 COM port, 所以出了以下 error.

avrdude: ser_open(): can't open device "\\.\COM1": 系统找不到指定的文件。
页: [1]
查看完整版本: 新人求助,关于arduino控制舵机的