为解决电致变色器件的颜色变化受外界环境颜色控制的问题,设计了一种基于单片机的便携式颜色自适应识别电路。与传统颜色识别电路相比较,该电路利用数字式的颜色传感器来获取外界环境颜色,产生的数字颜色信号易于单片机进行处理。在电路中,下位机部分主要负责获取电致变色器件变色参数及控制电致变色器件的颜色变化;而上位机部分主要负责把下位机获取的电致变色器件变色参数进行电压到颜色的曲线拟合,并通过蓝牙通信把拟合曲线参数传递给下位机。结果表明,该电路能自动根据环境颜色提供-4~4 V范围步进为0.1 V的电压来驱动电致变色器件的颜色显示,与传统的颜色识别电路设计相比,识别的精度和速度都得到了明显改善。 Abstract: In this paper, a portable adaptive circuit for color identification(PACCI) based on MCU was designed. Compared to the traditional color identification circuit, the PACCI adopts digital sensor to detect the color data from external environment and further generate digital color data, which can be processed easily by MCU. In PACCI, the slave is mainly responsible for detecting the color parameters of the corresponding elcreochromic device and further driving it. For the master, which is mainly responsible for the color curve fitting based on the parameters of the electrochromic device, and transmits the fitting parameters to the slave through the bluetooth device. The results show that the PACCI can provide the basis voltage range from -4V to 4V automatically based on the colors of external environment with step as 0.1V to drive the corresponding electrochromic device. Compared to the traditional color recognition circuit, the recognition accuracy and speed of PACCI have been improved significantly.
上传时间: 2013-11-09
上传用户:franktu
生活中许多目标的高度和水平距离需要进行测量。目前主要的测量方法,仍以传统的皮尺丈量为主,测量效率不高,有时还很不方便,没有技术成熟的数字式测高测距产品。以基本的数学方法为理论依据,利用遥控小车做为载体,采用角度传感器测量角度、霍尔传感器测量水平距离等,通过单片机LM3S615进行数据计算,实现了对待测目标物体的高度、水平距离等数据的快速、精确和数字式的测量,高度测量精度可达99.06%,水平测量精度则可达98.06%。 Abstract: In our lives, the height and horizontal distance of some goals are needed to be measured. Because the currently used methods are still traditional tape-based measuring methods, and the measuring efficiency is low and inconvenient so some kinds of digital and portable measuring methods or instruments are needed. Based on the basic math theory, this paper designed and manufactured a portable, digital and remote controlled measuring mobile small vehicle, which assembled with angle measuring sensor for angle measurement and Hall sensor for horizontal distance measuring. MCU LM3S615 calculated the height and horizontal distance data gotten from these sensors. The measuring process is simple, the measuring results are more accurate and the measuring efficiency is higher than traditional measure instruments. The accuracy of height and distance measurement can reach 99.06% and 98.06%.
上传时间: 2013-10-30
上传用户:jackandlee
介绍一种基于C8051单片机的动态心电监护系统。该系统由两部分组成:以C8051F320单片机为核心的数据采集装置和以PC机为平台的分析处理系统。硬件电路功耗低,由单片机自带的USB接口将数据传送给PC机。软件平台采用LabVIEW可视化虚拟仪器系统开发平台,将传统仪器的功能模块集成到计算机中,用户可通过修改虚拟仪器的程序改变其功能。采用USB接口实时传输心电数据,并将数据采集模块设计为计算机外设,使该系统高速快捷、小巧便携。 Abstract: In this design,a low-cost ECG electrocardiogram monitoring system is introduced,which consists of two parts:data acquisition device based on C8051F320and PC terminal as the analysis and processing system.The system is low-power consumption,the data is transmitted to the PC terminal by USB interface of the C8051F320.By using the visible virtual instrument system developing platform LabVIEW,the traditional instruments function modules are integrated into the computer,so the user can modify virtual instrument software to change its function to meet their needs.Using USB in-terface to realize real-time ECG data transmission,in addition,ECG data acquisition module is designed as the computer peripheral,which makes the syetem high-speed and portable.
上传时间: 2013-11-13
上传用户:zhangzhenyu
介绍一种基于CAN总线的牵引变电站自动化系统通讯规约的设计,CAN通讯规约采用标准帧,报文采用主动发送和发送查询两种处理形式。该设计在城市轻轨与地铁牵引变电站中的应用表明:可实现间隔层和通讯处理层的数据快速、可靠的交换,提高牵引变电站的安全性和稳定性 。 Abstract: This paper firstly presents a kind of design dealing with communicational protocol to the traction substation automation system based on CAN bus,and then comes up with the ideas that all frames of CAN communicational protocol should adopt the standard frame,and that messages be processed by two ways:sending initiatively and sending quiries.Subway and light rail application shows that the use of the CAN bus is possible to exchange data quickly and reliably between the layers of the middle and the communicational processing,hence to improve the safety and stability of traction substations.
上传时间: 2013-11-07
上传用户:bs2005
Bootloader是微处理器上电时运行的第一段代码,它可以通过通信接口实现对微处理器内部应用程序的更新升级,为网络化嵌入式产品的应用程序升级带来极大的便利。由于目前没有统一嵌入式系统的Bootloader。基于NEC 78K0系列单片机自编程原理,设计出一个适用于78K0/Fx2系列单片机的Bootloader,并能够通过单片机串口在线升级应用程序。 Abstract: Bootloader is the first piece of code executed after microprocessor startup. It makes the embedded product’s firmware update conveniently through communication interface. However, no unified bootloader is available for all kinds of microprocessor products. Based on the principle of self-programming NEC 78K0s’ series, a useful Bootloader which is suitable for 78K0/Fx2s’ series MCU is designed,the design can update the application through serial ports.
标签: Bootloader MCU 自编程
上传时间: 2013-10-26
上传用户:fang2010
大家好!单片机人才是集软件、电子技术于一体的复合型人才,并且技术连续性好,越老越吃香,不会像计算机软件那样两三年就要更新换代,随着仿真技术的发展,学习单片机技术的成本和难度已经和软件相当,“中关村单片机实验室”的培训帮您将学过的理论知识迅速转化为实践技能。实验环境、实践项目,培训内容都是围绕着初学者常见的困惑设置,相信我当初的困惑,也是每个初学者的困惑,解决这个问题,是我办学的动力和教学的方向。 自学考试作为成才的途径,考试难度也在逐年加大,由于教学资源的限制,自考生的实践机会不是很多,我们实验室可以接受学生到我们实验室做“电工、模拟电子、数字电子、计算机接口技术、数据库、C语言、FoxPro、数据结构、自动化控制等实验,我们的专业指导,一定能弥补自学路上的实践环节的不足,促进学习兴趣和融会贯通理论知识。
上传时间: 2014-12-03
上传用户:dgann
摘要:本文以两相双极式步进电机为例,介绍了一种利用单片机自带的PWM模块实现步进电机细分驱动的方法。该方法充分利用单片机的PWM硬件资源,通过配置硬件PWM模块,产生占空比不同的方波,在电机线圈内产生近似正弦波的阶梯型电流。与常用的恒频脉宽调制方式相比,该方法不需要EI/A转换器和锯齿波发生器,不仅有利于简化电路和节约成本,而且能提高细分精度和电机运行平稳性,适用于需要精密控制的仪器仪表。关键词:PWM;细分驱动;步进电机;单片机
上传时间: 2014-01-21
上传用户:dalidala
针对医用充气式保温毯的温度控制要求,提出其温度控制闭环系统的结构,系统的硬件电路主要由温度传感器、单片机及RS232通讯模块等组成。采用PWM方法控制晶闸管导通时间的方式来改变加热丝的加热时间、采用自适应模糊PID控制方法实现保温毯气囊出气温度的自动调节与控制。将整个控制过程分为两个阶段:自动调节初始阶段,加热丝加热的占空比为100%;当温度达到一定值后转入自适应模糊PID控制阶段,由相应控制量来决定加热丝加热的占空比,实现气体温度的调节。通过MATLAB仿真分析表明,所采用的自适应模糊PID控制方法优于常规的PID控制,具有良好的适应性和鲁棒性,可明显提高系统的稳态精度。
上传时间: 2013-10-13
上传用户:520
设计并制作了一种智能音控小车。以凌阳单片机SPCE061A为核心控制部件,以减速直流电机LS17RU419i、电机驱动芯片L298N、红外线光电传感器ST178等为主要元件,开发了系统的硬件和智能控制软件,其中软件包括小车避障及路径控制软件、语音识别及播放软件。智能音控小车的运行状态表明该设计方案是可行的。
上传时间: 2014-01-19
上传用户:wenwiang
描述ATtiny15/L是一款基于AVRRISC的低功耗CMOS的8位单片机。通过在一个时钟周期内执行一条指令,ATtiny15/L可以取得接近1MIPS/MHz的性能,从而使得设计人员可以在功耗和执行速度之间取得平衡。AVR核将32个工作寄存器和丰富的指令集联结在一起。所有的工作寄存器都与ALU算逻单元直接相连,允许在一个时钟周期内执行的单条指令同时访问两个独立的寄存器。这种结构提高了代码效率,使AVR得到了比普通CISC单片机高将近10倍的性能。ATtiny15/L具有4个单端及一个20倍增益的差分ADC通道。高速PWM输出使得ATtiny15/L十分适合于电池充电器应用和电源调节电路。
上传时间: 2014-12-27
上传用户:yinglimeng