okjokull / chengxu3 Goto Github PK
View Code? Open in Web Editor NEWSTM32阿波罗
STM32阿波罗
实验器材: ALIENTEK 阿波罗STM32F7开发板 实验目的: 学习ATK-2MD4850 步进电机驱动器的使用,学会使用驱动器控制步进电机相对定位和绝对定位。 硬件资源: 1,DS0(连接在PB1). 2,串口1(波特率:115200,PA9/PA10连接在板载USB转串口芯片CH340上面). 3,按键KEY0(PH3)/KEY1(PH2)/KEY_UP(PA0,也称之为WK_UP) . 4,步进电机驱动器控制信号线如下 DRIVER_DIR <-------------> PF7 () DRIVER_OE <-------------> PF9 () STEP_PULSE <-------------> PC7 (TIM8_CH2,DCMI_D1) 实验现象: 本实验通过usmart或者板载按键调用单片机里面的函数,实现对步进电机驱动器的控制,从而控制步进电机的相对定位和绝对定位; 按下KEY0,步进电机以500HZ的频率顺时针转动200个脉冲的角度(相对定位); 按下KEY1,步进电机以500HZ的频率逆时针转动400个脉冲的角度(相对定位); 按下KEY_UP,步进电机以500HZ的频率回到绝对原点(绝对定位); 同时DS1 以1s的周期闪烁,提示代码正在运行。 注意事项: 1,串口波特率为115200. 2,请用USB线连接在USB_232,找到USB转串口后测试本例程. 3,P6的PA9/PA10必须通过跳线帽连接在RXD/TXD上. 4,驱动器接收脉冲频率范围 20Hz~100KHz. 5,这个测试代码不支持电机加减速控制,所以一定注意电机的启动转速不能设置过高(≤180rpm),否则可能导致电机堵转!! 6,驱动器控制信号线占用了DCMI的D1,所以这个例程不能使用摄像头模块. 正点原子@ALIENTEK 2016-05-12 广州市星翼电子科技有限公司 电话:020-38271790 传真:020-36773971 购买:http://shop62103354.taobao.com http://shop62057469.taobao.com 公司网站:www.alientek.com 技术论坛:www.openedv.com
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.