虫虫首页|资源下载|资源专辑|精品软件
登录|注册

value

  • 基于PIC单片机的脉冲电源

    基于PIC单片机的脉冲电源:设计了一种金属凝固过程用脉冲电源。该电源采用PIC16F877作为主控芯片,实现对窄脉冲电流幅值的检测,以及时电流脉冲幅值根据模糊PID算法进行闲环控制。使用结果表明:该电源的输出脉冲波形良好,电流幅值稳定,满足合金材料凝固过程的工艺要求且运行稳定可靠。关键词:脉冲电源;PIC16F877单片机;模糊PID;闲环控制 Abstract:A kind of pulse power supply was designed which uses in the metal solidification process ..I11is power supply used PIC16F877 to take the master control chip reali on to the narrow pulse electric current peak-to-peak value examination,carried on the closed-loop control to the electric current pulse peak-to-peak value basis fuzzy PID algorithm.The use result indicated ,this power supply output se profile is good,and the electric current peak-to-p~k value is stable,It satisfies the alloy material solidification process the technological requirement and movement stable reliable,Key words:p se po wer supply;PIC16F877single-chip microcontroller;f r PID;closed-loop control

    标签: PIC 单片机 脉冲电源

    上传时间: 2013-10-26

    上传用户:xcy122677

  • 单片机软件滤波的几种方法

    单片机软件滤波的几种方法:假定从AD中读取数据的子程序为:unsigned int get_ad();1、限幅滤波法(又称程序判断滤波法)A、方法:根据经验判断,确定两次采样允许的最大偏差值(设为A)。每次检测到新值时判断:如果本次值与上次值之差<=A,则本次值有效;如果本次值与上次值之差>A,则本次值无效,放弃本次值,用上次值代替本次值。B、优点:能有效克服因偶然因素引起的脉冲干扰C、缺点:无法抑制那种周期性的干扰,平滑度差D、软件实现://=======================//值A可根据实际情况调整,value为有效值,new_value为当前采样值//滤波程序返回有效的实际值

    标签: 单片机 软件滤波

    上传时间: 2013-10-20

    上传用户:xiaojie

  • 基于单片机控制的二氧化碳浓度测试计

    基于单片机控制的二氧化碳浓度测试计:基于CDM4161二氧化碳气体浓度测试模块以及ATtiny26单片机,提出了一种二氧化碳浓度测试计的设计方案。该方案具有硬件电路简单、成本低、可靠性高、测量准确等优点,具有较高的实用价值。 Abstract: Abstract:A desigh scheme of CO2 concentration meter based on CDM4161carbon dioxide concentration test module and ATtiny26micro-controller is presented in this paper.The design scheme features simple hardware circuit,low-cost,high reli-ability,accurate measurement and it has a high practical value.

    标签: 单片机控制 二氧化碳 测试

    上传时间: 2013-11-13

    上传用户:zjwangyichao

  • DS1820 C51 子程序 (一线数据传输)

    //芯片资料请到www.elecfans.com查找 //DS1820 C51 子程序//这里以11.0592M晶体为例,不同的晶体速度可能需要调整延时的时间//sbit DQ =P2^1;//根据实际情况定义端口 typedef unsigned char byte;typedef unsigned int  word; //延时void delay(word useconds){  for(;useconds>0;useconds--);} //复位byte ow_reset(void){  byte presence;  DQ = 0; //pull DQ line low  delay(29); // leave it low for 480us  DQ = 1; // allow line to return high  delay(3); // wait for presence  presence = DQ; // get presence signal  delay(25); // wait for end of timeslot  return(presence); // presence signal returned}     // 0=presence, 1 = no part //从 1-wire 总线上读取一个字节byte read_byte(void){  byte i;  byte value = 0;  for (i=8;i>0;i--)  {    value>>=1;    DQ = 0; // pull DQ low to start timeslot    DQ = 1; // then return high    delay(1);  //for (i=0; i<3; i++);     if(DQ)value|=0x80;    delay(6); // wait for rest of timeslot  }  return(value);} //向 1-WIRE 总线上写一个字节void write_byte(char val){  byte i;  for (i=8; i>0; i--) // writes byte, one bit at a time  {    DQ = 0; // pull DQ low to start timeslot    DQ = val&0x01;    delay(5); // hold value for remainder of timeslot    DQ = 1;    val=val/2;  }  delay(5);} //读取温度char Read_Temperature(void){  union{    byte c[2];    int x;  }temp;   ow_reset();  write_byte(0xCC); // Skip ROM  write_byte(0xBE); // Read Scratch Pad  temp.c[1]=read_byte();  temp.c[0]=read_byte();  ow_reset();  write_byte(0xCC); //Skip ROM  write_byte(0x44); // Start Conversion  return temp.x/2;}

    标签: 1820 C51 DS 程序

    上传时间: 2013-11-03

    上传用户:hongmo

  • 卡尔曼滤波器matlab程序

    load initial_track  s; % y:initial data,s:data with noiseT=0.1; % yp denotes the sample value of position% yv denotes the sample value of velocity% Y=[yp(n);yv(n)];% error deviation caused by the random acceleration % known dataY=zeros(2,200);Y0=[0;1];Y(:,1)=Y0;A=[1 T    0 1];          B=[1/2*(T)^2 T]';H=[1 0]; C0=[0 0    0 1];C=[C0 zeros(2,2*199)];Q=(0.25)^2; R=(0.25)^2;

    标签: matlab 卡尔曼滤波器 程序

    上传时间: 2014-12-28

    上传用户:asaqq

  • 基于FPGA的光纤光栅解调系统的研究

     波长信号的解调是实现光纤光栅传感网络的关键,基于现有的光纤光栅传感器解调方法,提出一种基于FPGA的双匹配光纤光栅解调方法,此系统是一种高速率、高精度、低成本的解调系统,并且通过引入双匹配光栅有效地克服了双值问题同时扩大了检测范围。分析了光纤光栅的测温原理并给出了该方案软硬件设计,综合考虑系统的解调精度和FPGA的处理速度给出了基于拉格朗日的曲线拟合算法。 Abstract:  Sensor is one of the most important application of the fiber grating. Wavelength signal demodulating is the key techniques to carry out fiber grating sensing network, based on several existing methods of fiber grating sensor demodulation inadequate, a two-match fiber grating demodulation method was presented. This system is a high-speed, high precision, low-cost demodulation system. And by introducing a two-match grating effectively overcomes the problem of double value while expands the scope of testing. This paper analyzes the principle of fiber Bragg grating temperature and gives the software and hardware design of the program. Considering the system of demodulation accuracy and processing speed of FPGA,this paper gives the curve fitting algorithm based on Lagrange.

    标签: FPGA 光纤光栅 解调系统

    上传时间: 2014-07-24

    上传用户:caiguoqing

  • EDGE信道分配原则

      Contents   1 Introduction 1   2 Glosary 1   2.1 Concepts 1   2.2 Abbreviations and acronyms 4   3 Capabilities 6   4 Technical Description 6   4.1 General 6   4.2 Service oriented Allocation of Resources on the Abis   interface (SARA) 8   4.3 Configuration of dedicated PDCHs in Packet Switched   Domain (PSD) 10   4.4 Handling of Packet Data traffic 15   4.5 Channel selection in Cicuit Switched Domain (CSD) 19   4.6 Return of PDCHs to Cicuit Switched Domain (CSD) 22   4.7 Main changes in Ericsson GSM system R10/BSS R10 24   5 Engineering guidelines 24   6 Parameters 26   6.1 Main controlling parameters 26   6.2 Parameters for special adjustments 26   6.3 value ranges and default values 28   7 References 29

    标签: EDGE 信道分配

    上传时间: 2013-11-12

    上传用户:ainimao

  • 10种软件滤波方法的示例程序 文档

    10种软件滤波方法的示例程序 假定从8位AD中读取数据(如果是更高位的AD可定义数据类型为int),子程序为get_ad(); 1、限副滤波 /*  A值可根据实际情况调整     value为有效值,new_value为当前采样值       滤波程序返回有效的实际值  */ #define A 10 char value; char filter() {    char  new_value;    new_value = get_ad();    if ( ( new_value - value > A ) || ( value - new_value > A )       return value;    return new_value;           }

    标签: 软件 滤波方法 文档 程序

    上传时间: 2013-11-10

    上传用户:gxf2016

  • C语言函数大全(语法着色版)

        C语言函数大全,已包含绝大部分的函数。每个函数包含函数名,功能,用法,举例,内容详尽。希望对大家有所帮助~~   函数名: abort   功 能: 异常终止一个进程   用 法: void abort(void);   程序例:   #include   #include   int main(void)   {   printf("Calling abort()\n");   abort();   return 0; /* This is never reached */   }   函数名: abs   功 能: 求整数的绝对值   用 法: int abs(int i);   程序例:   #include   #include   int main(void)   {   int number = -1234;   printf("number: %d absolute value: %d\n", number, abs(number));   return 0;   }

    标签: C语言 函数

    上传时间: 2013-12-06

    上传用户:feifei0302

  • Proteus教程之属性

      1. 简介   ISIS中的属性有非常大的用处。一个特定的对象的属性是由一些关键字组成,比如,在ISIS中,我们使用封装的属性与PCB的封装关联。   对象,管脚,电路图都有自己的属性,如果你想很把这个功能强大的软件用好你必须很清楚他们之间的联系,这个软件和以前你所用过的画电路的软件有些不同。   2. 对象属性   对象属性有两个类型—系统属性和使用属性。在ISIS中的这些功能是由一些保留字所组成,不管是内部的程序比如ARES和VSM,或者你自己所使用的软件都是有关联的。   (1)系统属性   系统属性在ISIS中是由一些特殊含义的关键字所够成。比如,一个元件中的DEVICE属性是根据元件库在分配时候定义的。这些属性一般是文本的—比如元件的REF和value属性可以直接从Edit Component对话框中访问,但是别的比如DEVICE属性就是做为图形操作所生成的结果。

    标签: Proteus 教程

    上传时间: 2013-11-21

    上传用户:AbuGe