Abstract:In order to solve the problems of traditional electric nursing bed, such as simplicity of control mode, complex signal routing, serious signal interference and poor system stability, the idea of distributed control is proposed. Using STM32 as the main control chip, each different control unit implements respectively the function of motion control, detection control, command input, terminal centralized display and control. Control units communicate with each other through CAN bus, which forms a distributed control system. The realization principle, hardware design scheme and software design flow of each control unit are introduced in detail. The system fully realizes the movement of the bed body, including lifting, tilting and stretching; bed body attitude recognition, including tilt angle calculation and guardrail position recognition; synchronous display of the bed status and data; control command input function. The experimental test and practical application show that the system has stable performance and rapid action response. It conforms to the design specifications and can meet the practical application requirements. Also the advancement of application of CAN bus in electric nursing bed control system is verified.