Today’s society has high requirements for college students’ innovation ability. The laboratory provides a good learning platform for students, but the opening hours of the laboratory are limited, which is not convenient for students to do experiments after class and before holidays. In addition, the laboratory management system is not perfect, there are often problems such as instrument damage, aging but not timely maintenance.

In this design, the Ethernet module of PIC32 is used as the bridge to connect with the external network, and the systematic management of the laboratory (model) is realized. The system can remotely open the access control of the laboratory through Ethernet, and monitor the working status of various equipment and instruments in the laboratory. In the laboratory, can bus with simple physical structure and low cost is used to realize the connection and communication of each equipment in the laboratory.

The purpose of this system is to make it convenient for teachers and students. Even in holidays, teachers can provide students with an experimental platform, and they can understand various conditions of the laboratory without going to the laboratory. It provides a new management mode for school experimental teaching, greatly reduces the management funds of the school, and solves the problem that the instrument is damaged and the maintenance is not timely.

The system has a broad application prospect, and its application in the laboratory platform is only one aspect. The design idea can be applied in smart home, factory flow shop, etc.

Project content

2.1 project summary

This design uses the PIC32 Ethernet module in the laboratory to communicate with the outside world and monitor the working status of the whole laboratory in real time. In addition, PIC32 as the control core of the system, integrated scheduling laboratory equipment, in order to achieve the effect of safety and energy saving. The peripheral module can open and close the entrance guard of the laboratory, adjust the light of the laboratory according to the external light intensity, and control the temperature control system in the laboratory. The design involves light (such as indoor light intensity intelligent control), electricity (such as equipment power management), temperature (such as constant temperature control) and other signal processing, at the same time to achieve automatic management, to achieve the requirements of intelligent laboratory.

2.2 project module introduction

This design mainly includes: Ethernet remote communication module, mainly responsible for the communication between remote PC and MCU; MCU control module is mainly responsible for information collection, communication, coordination and control among modules; The access control system module completes the opening and closing of the simulation laboratory platform door under specific conditions, and reports its status to MCU; The indoor power control module mainly monitors and controls the status of indoor power supply, and feeds back the power supply information of various devices to MCU in time; The light control module is mainly responsible for monitoring, adjusting and controlling the indoor light intensity of the simulation laboratory; The intelligent heating control module can not only work independently according to the preset mode, but also receive commands from can bus MCU and work according to its requirements.

2.3 design objectives

2.3.1 remote control

This design mainly realizes the remote monitoring and control of the laboratory, at the same time, the design is also compatible with the local control management operation. Because PIC32 has rich on-chip resources, it can use the system Ethernet host to realize convenient Ethernet communication, and the remote PC can directly manage the system operation. Taking the laboratory platform model as an example, when the user (teacher) needs to open the laboratory, he / she can give instructions directly through the remote PC and communicate with Ethernet. When the MCU receives the instructions from the user, it can transmit the control signal through CAN bus according to the specific requirements. After the access control system identifies the corresponding information, it can open the door of the laboratory.

2.3.2 local real time monitoring

This design can realize the overall monitoring of the whole laboratory environment. When the device works normally, each module sends status report to MCU through CAN bus every other period of time. MCU makes corresponding decision according to the feedback information received, and sends the next step command to the corresponding device. In this way, the intelligent management of the whole experimental platform can be realized.

Structure diagram of the system

The whole system takes PIC32 as the core, uses Ethernet to realize the communication with the outside world, and uses CAN bus connection inside the system.

The block diagram of the system is shown in the figure below

Design of CAN bus system based on Ethernet

Figure 1 system structure diagram a

Design of CAN bus system based on Ethernet

Figure 2 system structure B

The design principle of the system software is based on event triggering

Design of CAN bus system based on Ethernet

Figure 3 system software flow chart a

Design of CAN bus system based on Ethernet

Figure 4 system software flow chart B

Leave a Reply

Your email address will not be published. Required fields are marked *