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使用说明参考文档和官网,中文论坛也有非常详细介绍。

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...