Ubuntu 16.04使用电路板绘制Fritzing和单片机编程Arduino说明

Ubuntu下有很多非常赞的开源软件,将在后续持续介绍,这里简单介绍Fritzing和Arduino,都可以在官网免费下载。

Fritzing:http://fritzing.org/home/

Arduino:https://www.arduino.cc/

在官网下载安装包后,解压:

这里使用fritzing-0.9.3b.linux.AMD64+arduino-1.8.0。

分别运行目录下的./install.sh可以生成快捷方式等,然后,可以使用下面命令启动fritzing和arduino:

$ ./Fritzing

$ ./arduino

首先在Edit--Preferences--Code View设置Arduino路径,如下所示:


在File--Open Example中打开一个Arduino示例:

就能看到原理图,PCB,Code和Breadboard等,分别如下:

 

 

以点亮LED为例:


在右下选择芯片类型和端口,使用Upload按钮下载程序。

如果出现如下错误,请注意端口权限。

Running /home/relaybot/Rob_Soft/arduino-1.8.0/arduino --board arduino:avr:uno --port /dev/ttyACM0 --upload /home/relaybot/.config/Fritzing/fzz/0818530e60d4619e6cd6bd4271881ee7/Blink_TMP/Blink_TMP.ino

Picked up JAVA_TOOL_OPTIONS:

Loading configuration...

Initializing packages...

Preparing boards...

Verifying...

Sketch uses 938 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

Uploading...

avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied

An error occurred while uploading the sketch

Upload failed with exit code 1, 0

程序烧录成功后可以看到开发板小灯快速闪烁。



Arduino使用说明参考文档和官网,中文论坛也有非常详细介绍。

  • 3
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zhangrelay

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值