液位检测实验装置的CAN总线通信系统设计  被引量:1

Design of CAN Bus Communication System for Liquid Level Detection Experimental Device

在线阅读下载全文

作  者:彭斯媛 卓旭升[1] PENG Siyuan;ZHUO Xusheng(School of Electrical Information,Wuhan Institute of Technology,Wuhan 430000,China)

机构地区:[1]武汉工程大学电气信息学院,武汉430000

出  处:《自动化与仪表》2024年第5期94-98,共5页Automation & Instrumentation

摘  要:为了实现多个液位传感器能够同时给上位机进行数据的传输,并且对于数据进行分析后可对仪器进行标定,该文设计了一个基于CAN总线和虚拟仪器LabVIEW的液位检测的实验装置。选用STM32F107单片机作为微处理器,利用单片机内部的AD转换电路设计模拟信号与数字信号的转换,加入TJA1050作为CAN收发器,设计了CAN总线的通信接口。系统使用USB-CAN分析仪将硬件与PC机相接,使得可以使用LabVIEW设计人机交互界面进行数据的接受与分析,从而准确检测出实时液位高低与电压电流大小。由于传感器会受到环境因素的影响,另外还有人工测量的误差和仪器本身的误差,所以在系统中还使用了Matlab对数据进行拟合,达到了对仪器进行标定的目的。CAN总线与LabVIEW相结合,使得设计的系统可以同时连接多个传感器,并且可以方便的连接不同的传感器进行测量。In order to realize the data transmission of multiple liquid level sensors to the host computer at the same time,and to calibrate the instrument after analyzing the data,this paper designs an intelligent sensor liquid level measurement and control system based on CAN bus and virtual instrument LabVIEW.STM32F107 single chip microcomputer is used as the microprocessor,the AD conversion circuit inside the single chip microcomputer is used to design the conversion of analog signal and digital signal,and TJA1050 is added as the CAN transceiver to design the communication interface of CAN bus.The system uses the USB-CAN analyzer to connect the hardware to the PC,so that the human-computer interaction interface can be designed by LabVIEW for data acceptance and analysis,so as to accurately detect the real-time level of the liquid level and the voltage and current size.Because the sensor will be affected by environmental factors,in addition to the error of manual measurement and the error of the instrument itself,Matlab is also used in the system to fit the data and achieve the purpose of calibrating the instrument.The combination of CAN bus and LabVIEW makes the designed system can connect multiple sensors at the same time,and can easily connect different sensors for measurement.

关 键 词:CAN总线 虚拟仪器LabVIEW STM32F107单片机 TJA1050 

分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象