Design of CAN Bus Communication System for Liquid Level Detection Experi-mental Device
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 micro-computer 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 instru-ment 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 busvirtual instrument LabVIEWSTM32F107 MCUTJA1050