proteus使用入门教程:proteus怎么用总线

Arduino是一款便捷灵活、方便上手的开源电子原型平台。包含硬件(各种型号的Arduino板)和软件(Arduino IDE)。由一个欧洲开发团队于2005年冬季开发。其成员包括Massimo Banzi、David Cuartielles、Tom Igoe、Gianluca Martino、David Mellis和Nicholas Zambetti等。

它构建于开放原始码simple I/O介面版,并且具有使用类似Java、C语言的Processing/Wiring开发环境。主要包含两个主要的部分:硬件部分是可以用来做电路连接的Arduino电路板;另外一个则是Arduino IDE,你的计算机中的程序开发环境。你只要在IDE中编写程序代码,将程序上传到Arduino电路板后,程序便会告诉Arduino电路板要做些什么了。

Arduino能通过各种各样的传感器来感知环境,通过控制灯光、马达和其他的装置来反馈、影响环境。板子上的微控制器可以通过Arduino的编程语言来编写程序,编译成二进制文件,烧录进微控制器。对Arduino的编程是通过 Arduino编程语言 (基于 Wiring)和Arduino开发环境(基于 Processing)来实现的。基于Arduino的项目,可以只包含Arduino,也可以包含Arduino和其他一些在PC上运行的软件,他们之间进行通信 (比如 Flash, Processing, MaxMSP)来实现。

arduino比较简单易学,本文主要讲解如何使用Proteus软件进行Arduino程序的仿真。
第一步:在Proteus软件绘制arduino(以arduino uno为例)
1,打开Proteus软件<img src="https://img.506064.com/wp-content/uploads/2021/11/fc905772e9494b9884b85c4a15c604b5.png" alt="Arduino介绍以及Proteus仿真配置电子DIY”>

proteus7.8

2,选择元件
在英文状态下,按下键盘“P”键进入选择元器件界面

<img src="https://img.506064.com/wp-content/uploads/2021/11/46e40def4170497bb1cce18e7d26919d.png" alt="Arduino介绍以及Proteus仿真配置

3,在keyword下输入atmega328p

<img src="https://img.506064.com/wp-content/uploads/2021/11/3bf0f1a164df4a59aab466244b0b08cf.png" alt="Arduino介绍以及Proteus仿真配置

即arduino uno的主控芯片<img src="https://img.506064.com/wp-content/uploads/2021/11/ad0181eb3dda48c5a54b51d948ccc529.jpg" alt="Arduino介绍以及Proteus仿真配置电子DIY”>

实物图

4,继续选择元器件,输入CAP(选择电容)、crystal(选择晶振),绘制最小系统,<img src="https://img.506064.com/wp-content/uploads/2021/11/83cb88f2431e4955b22dc6b007cacebf.png" alt="Arduino介绍以及Proteus仿真配置电子DIY”>

仿真图

5,绘制好最小系统,见下图(绘制好最小系统,注意细节)<img src="https://img.506064.com/wp-content/uploads/2021/11/bd03dd880ab240b499428c36e65c9f41.png" alt="Arduino介绍以及Proteus仿真配置电子DIY”>

aruidno最小系统

第二步配置MCU
1,双击ATMEGA328P芯片跳出配置界面<img src="https://img.506064.com/wp-content/uploads/2021/11/1362ba5a6f8f4bdead7fb965e12d3082.png" alt="Arduino介绍以及Proteus仿真配置电子DIY”>

配置

2,配置MCU,如下图所示

<img src="https://img.506064.com/wp-content/uploads/2021/11/c172188d4e6447178bca635caa6e33d2.png" alt="Arduino介绍以及Proteus仿真配置

第三步验证(跑马灯实验,使用三个led实现跑马灯)
1,绘制原理图,在元器件选择界面输入res(选择电阻)、LED(选择led)
绘制好原理图如下:

<img src="https://img.506064.com/wp-content/uploads/2021/11/d8b9c6664ea543f8be678af9fcb69c98.png" alt="Arduino介绍以及Proteus仿真配置

2,打开arduino IDE编写程序,注意HEX文件位置

<img src="https://img.506064.com/wp-content/uploads/2021/11/66d62ecbbdbe4b2ea1234dfb24985a36.png" alt="Arduino介绍以及Proteus仿真配置

3,在Proteus中双击MCU添加.hex文件,(上图显示.hex位置,)

<img src="https://img.506064.com/wp-content/uploads/2021/11/f09ca0cb43064bf9be666e7101472940.png" alt="Arduino介绍以及Proteus仿真配置

4,仿真效果图

<img src="https://img.506064.com/wp-content/uploads/2021/11/d23ee9faee094c86b05eea0cb1077a59.png" alt="Arduino介绍以及Proteus仿真配置
<img src="https://img.506064.com/wp-content/uploads/2021/11/ff43cd922ea64b3ab2ec25acb42be0f8.png" alt="Arduino介绍以及Proteus仿真配置
<img src="https://img.506064.com/wp-content/uploads/2021/11/0d6ccc03863c45468c88a71e57ffa1da.png" alt="Arduino介绍以及Proteus仿真配置

原创文章,作者:投稿专员,如若转载,请注明出处:https://www.506064.com/n/214691.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
投稿专员投稿专员
上一篇 2024-12-08 19:09
下一篇 2024-12-08 19:29

相关推荐

发表回复

登录后才能评论