以仓库智能改造为背景,主要介绍单片机和上位机之间通信网络和通信协议的选择,MODBUS协议通信指令和功能码使用,重点阐述了基于RS-485总线的MODBUS通信协议在上位机和单片机之间的串行通信,实现上位机对单片机设备的远程控制和信息采集的功能。Based on the intelligent warehouse transformation as the background,mainly introduces between MCU and PC communication network and the choice of communication protocol,instruction and the function code using the MODBUS protocol communication,expounds the MODBUS communication protocol based on RS-485 bus serial communication between PC and single chip microcomputer,PC remote control of single chip computer equipment and the function of information collection.
上传时间: 2022-03-26
上传用户:
基于药物治疗在临床治疗中的重要性,分析目前服药提醒装置存在的不足,以STM32F103VET6单片机为控制核心,设计了一种多功能电子药箱。该系统包括显示模块、语音模块和数据存储模块。显示模块通过触摸屏电路和LED指示灯电路,与语音模块相配合,实现了服药提醒及指导的功能;数据存储模块通过EEPROM存储电路,能够实现掉电时服药信息不丢失的功能。并且为了实现电子药箱的智能化控制,开发了手机APP,两者之间可通过WIFI进行数据通信。经测试,该药箱能够有效地帮助慢性病患者按时、定量、正确服用药物,适合在家庭中推广使用,具有较高的应用价值和实践意义。Based on the importance of drug therapy in clinical treatment, this paper analyzes the shortcomings of current drug reminder devices, and designs a multi-function electronic medicine box with STM32 F103 VET6 microcontroller as the control core. The system includes a display module, a voice module, and a data storage module. The display module cooperates with the voice module through the touch screen circuit and the LED indicator circuit to realize the function of reminding and guiding the medicine;the data storage module can realize the function of not losing the medication information when the power is off through the EEPROM storage circuit.After testing, the medicine box can effectively help chronic diseases patients to take drugs on time, in a quantitative and correct manner,and is suitable for popularization in the family, and has high application value and practical significance.
标签: 电子药箱
上传时间: 2022-03-27
上传用户:
温度控制如今已成为当代社会研究的热点之一,而温度检测在现代设备参数检测中也是一项极其重要的技术,应用十分广泛。与传统的测温方法相比,红外测温方法具有时间短、精度高、使用简单方便等优点。本文以环境温度为被测对象,设计了以STC89C52单片机为控制中心的红外测温装置,能够实现对目标温度的实时采集、处理、显示和报警等功能。本设计主要是由STC89C52单片机、红外测温传感器、LCD1602液晶显示器、按键和蜂鸣器等部分组成,采用非接触的方式对目标温度进行实时检测。Temperature control has become one of the hotspots in contemporary social research,and temperature detection is an extremely important technology in modern equipment parameter detection.Compared with traditional method,the infrared temperature measuring method has advantages of short time,high precision and convenient operation,etc.This paper consider environment temperature as research objects and designs an infrared temperature measuring device which employs the STC89C52singlechipas-control center,and it can realize timely collection,processing,display and alarm function of the target temperature.The design is mainly composed of STC89C52 singlechip,infrared temperature sensor,LCD1602monitor,keys and buzzer,etc.This design detects the target temperature by non-contact method.
上传时间: 2022-03-27
上传用户:jiabin
LED 线阵显示装置, 分为 LED 线性旋转显示主机和图文录入器两部分。主机用直流电机带动由红绿 LED 组成的线阵旋转, 同时线阵按照时序依次切换显示状态, 在固定区域利用视觉暂留效果形成 16×16 点阵, 用以显示图文;图文录入器用 HMI 触控屏作为人机交互界面, 实现图文录入和回放功能。主机与图文录入器通过无线通信方式进行信息交互,可由图文录入器控制主机切换不同工作任务, 以及改变线阵显示内容。The LED linear array display device is divided into two parts:the one is the main unit used to display content,and the other one is used to input the contents.The main unit is driven by a DC motor to rotate the linear array composed by red and green light emitting diodes.At the same time,the 16×16 dot matrix that switching the display state according to the time sequence on the main unit displays pictures and texts in the fixed area,by using the visual temporary effect.The HMI touch screen is used as human machine interface to realize the function that input and playback pictures and texts.The two parts of the device communicate with each other through wireless communication.The image and text input controller can control the main unit to switch different tasks and change the content of linear array displayed.
标签: stc12c5a60s2 单片机 led
上传时间: 2022-03-28
上传用户:jiabin
本文首次设计并验证了基于macom三合一芯片设计的光模块电路,该电路旨在提供一种满足SFF-8472中规定的数字诊断功能的低成本SFP+模块。电路采用激光器驱动、限幅放大器、控制器以及时钟恢复单元集成的单芯片,在保证高精度数字诊断功能基础上,实现了低成本高可靠的特点。该电路在光接收接口组件与激光器驱动和限幅放大器单元的限幅放大器部分之间接入滤波器来提高模块的灵敏度及信号质量。在控制器单元的数字电位器的引脚上采用外加电阻的方式避免出现上电不发光的故障问题。该研究结果为下一代SFP-DD光模块设计与开发工作,奠定了一定的理论与实践基础。This paper designs and validates the optical module circuit based on the MACOM Trinity chip for the first time.This circuit aims to provide a low-cost SFP module which meets the digital diagnosis function specified in SFF-8472.The circuit uses a single chip integrated with laser driver,limiting amplifier,controller and clock recovery unit.On the basis of ensuring high precision digital diagnosis function,it achieves the characteristics of low cost and high reliability.The circuit connects a filter between the optical receiving interface module and the limiting amplifier part of the laser driver and limiting amplifier unit to improve the sensitivity and signal quality of the module.The pin of the digital potentiometer in the controller unit is equipped with an external resistance to avoid the problem of power failure.The research results lay a theoretical and practical foundation for optical module design in high-speed data center.
上传时间: 2022-04-03
上传用户:
The GL823K integrates a high speed 8051 microprocessor and a high efficiency hardware engine for the best data transfer performance between USB and flash card interfaces. Its pin assignment design fits to card sockets to provide easier PCB layout. Inside the chip, it integrates 5V to 3.3V regulator, 3.3V to 1.8V regulator and power MOSFETs and it enables the function of on-chip clock source (OCCS) which means no external 12MHz XTAL is needed and that effectively reduces the total BOM cost.
上传时间: 2022-04-27
上传用户:qdxqdxqdxqdx
超声波换能器作为一种实用的检测手段,能实现声波所携带的信息和电能之间转换。它的性能优良,价格低廉,操作方便,易于调试,因此在工农业生产中发挥着重要的作用。但目前换能器驱动电路的发射频率多为40 kHz,本文针对1 MHz的超声波换能器电路进行了设计,主要介绍了它的发射驱动电路和接收驱动电路的设计方案,并对它们的功能进行了详细地说明。最后搭建实验平台,并对电路的输入、输出模块进行了测试。实验结果表明,换能器电路运行良好,可以为超声波高精度测量领域的应用提供参考。As a practical means of detection, ultrasonic transducer can realize the conversion between theinformation carried by sound wave and electric energy.It has the advantages of excellent performance,low cost, convenient operation and debugging, so plays an important role in industrial and agriculturalproduction.However, the transmitting frequency of the driving circuit for most transducer is 40 kHz.Thecircuit of 1 MHz ultrasonic transducer is designed In this paper. It mainly introduces the emissive drivingcircuit and the receiving circuit design and the detailed function of them. Finally, the experimentalplatform is built, and the circuit of input and output were tested. Experiments show that the transducer' s...
上传时间: 2022-04-28
上传用户:
The JW® 7805 is a low noise low-dropout (LDO) voltage regulator with enable function that operates from 1.8V to 5.5V. It provides up to 300mA of output current and offers low-power operation in miniaturized packaging. JW7805 supports fixed output voltage 0.9V, 1.0V, 1.05V, 1.1V,1.2V, 1.3V, 1.35V, 1.5V, 1.8V, 1.85V, 2.1V, 2.2V, 2.3V, 2.5V, 2.6V, 2.7V, 2.8V, 2.85V, 2.9V, 3.0V,3.1V, 3.3V, 3.6V, 4.2V, 4.4V and 5.0V. The features of low quiescent current as low as 6uA and almost zero disable current are ideal for powering the battery equipment. JW7805’s low output noise and high PSRR are also friendly to RF systems.
标签: JW7805
上传时间: 2022-05-06
上传用户:slq1234567890
基于DSP28035的高速永磁无刷直流电机驱动系统,包括论文和软硬设计资料。摘要参赛作品为基于DSP28035的高速永磁无刷直流电机驱动系统。该系统以一台额定转速60 krpm的高速永磁无刷直流电机、交错并联的Buck电路以及全桥电路为硬件平台,以DSP28035为控制核心,实现了调压调速功能和基于坐标变换的无位置传感器新技术。为实现该系统要求,本作品充分利用了DSP28035的资源例如:CLA模块,模拟比较器、HPWM模块以及AD转换模块等。AbstractThis work is the drive system for a high speed permanent magnet burshless dc motor based on DSP28035. The hardware platform consists of a BLDC motor(rated speed is 60000rpm), a Buck circuit and an inverter. Under the control of DSP28035, this system can achieve the goal of adjusting the motor’s speed with voltage and the function of sensorless control based on the coordinate transformation. By making full use of resources of the core, such as CLA, analog comparator, HPWM and AD converters, the whole system can meet the requirements.1 引言高速永磁无刷直流电机驱动系统由于基波频率较高(一般在1kHZ以上),利用逆变桥斩波进行调速的控制方式通常会受到开关管开关频率的限制,因此该系统多采用三相全桥前级加Buck电路进承担调压调速的功能,而三相全桥主要承担逻辑换相的功能。然而,传统Buck电路所需电感的体积较大,增加了系统的体积,降低了系统的功率密度。
上传时间: 2022-05-08
上传用户:bluedrops
If register should be written or read.This value is passed to the calback functions which support either reading or writing register values. Writing means that the application registers should be updated and reading means that the modbus protocol stack needs to know the current register values.See also: eMBRegHoldingCB(), eMBRegCoilsCB(), eMBRegDiscreteCB() and eMBReglnputCB().Enumeration values: MB_REG_READ Read register values and pass to protocol stack.MB_REG_WRITE Update register values.Note: Note all ports implement this function.A port which wants to get an callback must define the macro MB_PORT_HAS_CLOSE to 1.Returns: If the resources where released it return eMBErrorCode:: MB_ENOERR. If the protocol stack is not in the disabled state it returns eMBErrorCode:: MB_EILLSTATE.Examples: LINUX/demo.c, MCF5235TCP/demo.c, STR71XTCP/demo.c, WIN32/demo. cpp, and WIN32TCP/demo. cpp.his function disables processing of Modbus frames.Returns: If the protocol stack has been disabled
标签: FreeModbus
上传时间: 2022-05-31
上传用户: