当前位置:网站首页>proteus仿真Arduino
proteus仿真Arduino
2022-06-09 04:15:00 【dapenson】
仿真
新建工程
修改工程名称和地址后默认下一步完成新建工程
添加元件
在下图元件模式列表中右键选择 从库中挑选,添加MEGA2560V2开发板及LED灯
若无Arduino开发板元件库,则需下载添加,将其中的Arduino2TEP.idx、Arduino2TEP.lib两个文件添加到proteus安装根目录的data`LIBRARY`文件夹下。
我的参考目录
C:\Program Files (x86)\Labcenter Electronics\Proteus 8 Professional\DATA\LIBRARY
文中所用元件下载地址,更新至2022年5月10日09:37:04
若右键打开为空或报错,原因是打开软件时没有使用管理员权限打开,重新以管理员权限打开即可。

连线
按下图所示,将左侧元件点选之后放入工作簿中,并连线

编译hex
蒋如下代码使用Arduino或platform IO进行编译
#include <Arduino.h>
void setup() {
// 设置引脚模式
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
}
void loop() {
// blink
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);
digitalWrite(8, HIGH);
delay(500);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
digitalWrite(8, LOW);
delay(500);
}
使用Arduino编译
使用CTRL+R编译之后会在输出信息(下拉至底部倒数第二行左右的位置)内看见.hex文件的地址
将此地址复制

使用platformIO编译
使用CTRL+ALT+B编译完成后即可在PIO文件夹下找到firmware.hex文件
复制此文件的绝对地址
导入固件
双击开发板,将固件导入至开发板,点击确定关闭窗口,点击左下角运行仿真即可。

自建A4988、OLED1336元件
自建A4988
在子电路default模式下绘制一个矩形框

添加输入输出引脚

绘制4988模型
完成如图所示模型,双击引脚添加管脚号文字

跳转到子图

添加可替代模型
在子图模式下添加L298、L297两个模型并连线

自建NEMA17
查nema17 (42步进电机)原理图可知
200 per rev = 1.8 deg
添加步进电机元件

修改元件参数
编辑上一步添加的步进电机参数,详情如下
STEPPER_1
NEMA 17
24V
1.8
1800
1.04
2.2mH

边栏推荐
- Graph to document function based on pyqt5
- Introduction of ravless speech emotion classification data set
- 1264_ Analysis of FreeRTOS task initialization and stack initialization processing
- 常用端口记录
- (6) Events
- Simple reservation system for C language course design classroom
- Matting function based on pyqt5 - program implementation
- Pdf splitting based on pyqt5
- MySQL queries which table in the database has the most fields
- Matting interface based on pyqt5
猜你喜欢

查看本机公网IP

基于PyQt5完成的图转文功能

golang---并发runtime包

This artifact is highly recommended. One line command will convert the web page to PDF!

Golang --- comparison operation of various types of variables

How to write a blueprint for the data center

(7) Attribute binding

《Attention-ocr-Chinese-Version-mas # ter》代碼運行邏輯

Pdf to word based on pyqt5

《Attention-ocr-Chinese-Version-mas # ter》代码运行逻辑
随机推荐
(7) Attribute binding
1264_ Analysis of FreeRTOS task initialization and stack initialization processing
Online JSON to XML tool
(3) VGg reproduction
How to write a blueprint for the data center
Geometric application problems
(3) Data binding instructions
Software testing (II)
大厂外包or自研公司?测试人找工作怎么选?
(7)属性绑定
基于PyQt5完成的pdf转word
Differences and principles between hashrouter and historyrouter
查看本机公网IP
扩展芯片,hisi3559av100 i2c调试
Interface performance test: Web service interface test
Online Morse code online translation and conversion tool
[software tools] [tutorials] a useful tool for exporting CSDN blog articles to word
(9) Branch loop structure
全国大学生信息安全竞赛(CISCN)-reverse-复现(部分)
[excellent design] opencv based face recognition punch in / sign in / attendance management system (the simplest basic library development, which can be based on raspberry pie)