-
这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制...
这是一个比较典型的PID处理程序,在使用单片机作为控制cpu时,请稍作简化,具体的PID 参数必须由具体对象通过实验确定。由于单片机的处理速度和ram资源的限制,一般不采用浮点数运算,而将所有参数全部用整数,运算 到最后再除以一个2的N次方数据(相当于移位),作类似定点数运算,可大大提高运算速度,根据控制精度的不同要求,当精度要求很 高时,注意保留移位引起的“余数”,做好余数补偿。这个程序只是一般常用pid算法的基本架构,没有包含输入输出处理部分。-This is a typical PID process, as in the use of SCM control cpu, please slightly simplified, specific PID parameters to be specific targets identified by experiments. As SCM processing speed and ram resource constraints, generally do not use floating-point operations, and will use all the parameters of all integers, and the final calculations to divide one of the Nth 2 data (the equivalent displacement), will count for a similar operation, it will greatly increase the computing speed, control Accuracy of different requirements and high precision, displacement caused reservations to the attention of the "I", which I do several compensation. This procedure is commonly used algorithm pid the basic structure does not include input and output processing.
- 2022-03-19 08:10:44下载
- 积分:1
-
通过DS18B20读取温度(范围
通过DS18B20读取温度(范围-55C~125C,精确到小数点后一位),通过4位数码管显示出来。 当温度为正且百位为零时,不显示,当温度为负时百位显负号。当温度百位和十位都为0时0都不显示。-Read through the DS18B20 temperature (range-55C ~ 125C, accurate to one decimal), through four digital tube display. When the temperature is zero and 100, do not show, when the temperature is significantly negative at minus 100. When the temperature is 100 and 10 are not displayed 0:00.
- 2022-06-14 06:02:24下载
- 积分:1
-
AT98S52单片机头文件,可直接对IO口进行位操作,简单方便
AT98S52单片机头文件,可直接对IO口进行位操作,简单方便-AT98S52 Singlechip header files can be directly carried out the mouth of the IO-bit operation, simple and convenient
- 2023-01-02 04:25:24下载
- 积分:1
-
支持I2C总线的EEPROM24lc256芯片的读写原程序
支持I2C总线的EEPROM24lc256芯片的读写原程序-support I2C Bus EEPROM24lc256 chip reader original program
- 2022-08-15 02:58:37下载
- 积分:1
-
51单片机收发短信的程序,W77e58单片机外括16kram就行
51单片机收发短信的程序,W77e58单片机外括16kram就行-51 SCM SMS procedures, including W77e58 SCM 16kram on foreign firms
- 2022-02-01 20:20:30下载
- 积分:1
-
430 Singlechip msp430f169 clk operation has a rich peripheral module clock which...
msp430f169 clk操作 430单片机有丰富的外围模块其中时钟可以有多种选择可以令单片机能在各种速度下运行-430 Singlechip msp430f169 clk operation has a rich peripheral module clock which can have a wide range of choices can make single-chip can run at various speeds
- 2022-02-03 05:01:08下载
- 积分:1
-
采用Proteus的双步进电机 模拟仿真。
采用Proteus的双步进电机 模拟仿真。-Proteus uses a dual stepper motor simulation.
- 2022-04-17 04:31:48下载
- 积分:1
-
This is the source code 62420 procedures have been adopted and successfully used...
这是62420的源代码程序,已通过调试并成功应用于产批品中-This is the source code 62420 procedures have been adopted and successfully used in debugging awarded materials
- 2022-01-27 11:41:26下载
- 积分:1
-
Using L298 as the drive to control two
用L298作为驱动器,控制两相混合式步进电机。
按键从上至下分别为减速,加速,正转,反转,停止。
具体参数还没有设定过。速度有些慢,加速按2下有效,然后就不能再快了。
转速输出是按照最小系统版的数码管写的。电路图里太麻烦就没画了。-Using L298 as the drive to control two-phase hybrid stepping motor. Buttons from top to bottom respectively, deceleration, acceleration, are being transferred, reverse, stop. Specific parameters have not yet been set. Some of the slow speed, speed up by 2, effectively, and then can not be faster. Speed output is in accordance with the minimum system version of the digital tube wrote. Circuit where not too much trouble drew.
- 2022-04-23 14:56:47下载
- 积分:1
-
单片机MEGA16
Lcd128x64 KS0108
的KEIL文件和PROTEUS仿真文件
单片机MEGA16
Lcd128x64 KS0108
的KEIL文件和PROTEUS仿真文件-MEGA16 Lcd128x64 KS0108 Singlechip KEIL the PROTEUS simulation files and documents
- 2022-04-30 19:58:35下载
- 积分:1