极客工坊

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 12447|回复: 3

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

[复制链接]
发表于 2014-12-16 18:04:23 | 显示全部楼层 |阅读模式
本人刚接触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"
  在 文件>首选项 中启用
回复

使用道具 举报

发表于 2014-12-16 18:50:53 | 显示全部楼层
先確定 arduino 連線用的 COM port, 然後在 IDE 上選該 COM port.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2014-12-16 21:26:32 | 显示全部楼层
Super169 发表于 2014-12-16 18:50
先確定 arduino 連線用的 COM port, 然後在 IDE 上選該 COM port.

COM port是什么,能具体点吗
回复 支持 反对

使用道具 举报

发表于 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": 系统找不到指定的文件。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|联系我们|极客工坊

GMT+8, 2026-6-16 21:25 , Processed in 0.061678 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表