Wheelchair control system and method

By integrating chassis attitude control, environmental perception and closed-loop control modules on electric wheelchairs, the passability and safety of electric wheelchairs under uneven road conditions is solved, safety and stability are improved, driving technical requirements are reduced, and it is suitable for Various users.

CN118948546AInactive Publication Date: 2024-11-15REHAND MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832738.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing electric wheelchairs are limited in passability and safety under uneven road conditions, and limited vision leads to an increased risk of collision. Traditional open-loop control systems have poor handling and stability during uneven roads, requiring higher driving technical requirements.

Method used

Adopt a wheelchair control system including chassis attitude control module, environment perception module, closed-loop control module, input and decision module, drive module and user interface module, and use gyroscope sensor, wide-angle camera, ultrasonic ranging sensor and PID closed-loop control algorithm to real-time Detect and adjust the chassis attitude, provide real-time obstacle information and a friendly operating interface, and automatically adjust the motor speed and direction.

Benefits of technology

Improves the safety and stability of wheelchairs, reduces driving technical requirements, enhances user experience and applicability, and is suitable for a variety of electric wheelchairs, regardless of whether the user has specific driving needs or physical limitations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118948546A_ABST
    Figure CN118948546A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wheelchairs and discloses a wheelchair control system and method.The wheelchair control system comprises a chassis posture control module, an environment sensing module, a closed-loop control module, an input and decision module, a driving module and a user interface module. The posture of the wheelchair chassis can be detected and adjusted in real time, it is ensured that the wheelchair runs within a safe angle range, so that accidents caused by the unstable posture of the chassis are prevented, the environment sensing module provides real-time obstacle information through a wide-angle camera and an ultrasonic distance measuring sensor, a user is helped to better avoid obstacles, and the user experience is improved. Particularly, under the condition that the visual field is limited, the driving safety is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wheelchairs, and in particular to a wheelchair control system and method. Background Art

[0002] Nowadays, there are a large number of people with limited mobility who need to use wheelchairs to move around. People with limited mobility can be some patients or disabled people. With the improvement of people's living standards, electric wheelchairs are becoming more and more popular, and ordinary people can also use electric wheelchairs to move around. Disabled people are the main users of electric wheelchairs. For disabled friends, the existing wheelchairs still have the following problems:

[0003] (1) Passability and safety issues: The passability and mobility safety of electric wheelchairs are affected under different road conditions, such as uneven ground, steep slopes, or when there are motor vehicles. This may make it difficult for the wheelchair to pass through some areas with complex road conditions, or it may be easy to cause safety accidents during driving;

[0004] (2) Collision problems caused by limited vision: When people with cervical curvature or certain physical disabilities drive electric wheelchairs, they may find it difficult to detect pedestrians, motor vehicles or other obstacles around them due to limited vision, which may easily cause the wheelchair to collide with other objects, increasing safety risks;

[0005] (3) Control system problems: Traditional open-loop control systems have problems when facing uneven roads. For example, the two driving wheels are subject to different resistances, causing the wheelchair to deviate from the predetermined speed. This will reduce the controllability and stability of the electric wheelchair. This places higher technical requirements on the driver and may require more training and adaptation time.

[0006] Therefore, it is necessary to design a wheelchair control system and method to solve the above problems. Summary of the invention

[0007] The purpose of the present invention is to solve the shortcomings of the prior art and to propose a wheelchair control system and method.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] A wheelchair control system includes the following modules:

[0010] Chassis attitude control module: uses the gyroscope sensor installed on the chassis to detect the attitude angle of the wheelchair chassis in real time. When the attitude angle is detected to exceed the preset safety threshold, the module will automatically lower the wheelchair's driving gear to ensure that the wheelchair travels within a safe angle range;

[0011] Environmental perception module: The wide-angle cameras installed around the wheelchair capture real-time images of the wheelchair's surroundings and display these images to the user. Ultrasonic distance sensors are used to measure the distance of obstacles around the wheelchair. These distance information will be quantified to determine whether the wheelchair can safely pass through certain areas, providing the driver with real-time obstacle avoidance reference;

[0012] Closed-loop control module: Set up a closed-loop control system for the chassis movement of the intelligent electric wheelchair. When the resistance of the two wheels is inconsistent, the chassis motor speed can still be consistent with the planned speed. This module receives the position information of the joystick, the speed level information, the distance information between the electric wheelchair and the obstacle, and the actual speed information of the left and right wheels. Through the speed PID closed-loop speed planning, the pulse width modulation (PWM) signals of the left and right wheel motors of the chassis are calculated respectively;

[0013] Input and decision module: responsible for obtaining the position information of the joystick, determining the movement direction and speed of the electric wheelchair, and receiving the speed level information selected by the user. According to the information provided by the input submodule, the obstacle distance information provided by the environment perception module, and the actual speed information of the left and right wheels obtained by the closed-loop control module, it performs decision calculations and outputs corresponding control signals.

[0014] Driving module: receives the PWM signal from the decision module and converts it into the corresponding driving signal to drive the motors of the left and right wheels respectively by controlling the speed and direction of the motors;

[0015] User interface module: provides users with a friendly operating interface, displays the real-time status, speed, and direction information of the wheelchair, and accepts user operating instructions, including speed adjustment, direction control, etc., and passes these instructions to the input and decision module for processing.

[0016] As a preferred technical solution of the present invention, the input and decision module includes the following units:

[0017] Joystick position information acquisition unit: obtains the X and Y coordinate values ​​of the joystick in the two-dimensional coordinate system through ADC conversion, that is, the user's control input of the wheelchair, and provides it to the control system to guide the movement direction and speed of the wheelchair;

[0018] Kinematic model and target speed calculation unit: Based on the X and Y coordinate values ​​of the joystick and the kinematic model of the chassis, the target speeds of the left and right wheels (VT1 and VT2) are calculated to determine the target speed of the wheelchair moving forward, backward or turning in response to the user's control;

[0019] PID speed closed-loop control unit: compares the deviation between the actual speed and the target speed, and adjusts the pulse width of the motor through the PID control algorithm to make the actual speed consistent with the target speed;

[0020] Ultrasonic distance measurement data acquisition and safety warning unit: obtains four-channel ultrasonic distance measurement data through the Modbus protocol and sets the safety threshold B. When the measured ultrasonic distance is lower than the safety threshold B, it issues a warning to the user, indicating that there are obstacles or dangers around the wheelchair to prevent collisions and accidents.

[0021] Gyroscope sensor data acquisition and safety control: The gyroscope sensor data installed on the chassis is acquired through the IIC protocol, including the X, Y, and Z Euler angles of the chassis, and the safety thresholds C, D, and E are set. When the tilt angle of the chassis exceeds the set threshold, the running gear of the chassis is automatically lowered to prevent the safety hazard of imbalance or tipping of the wheelchair due to tilt;

[0022] Camera image acquisition and display module unit: acquires real-time images from cameras around the wheelchair and displays them in front of the driver, expanding the driver's field of view, especially for users with limited field of view, providing additional environmental perception and safe driving support.

[0023] A wheelchair control method comprises the following steps:

[0024] Step 1: Chassis posture detection and adjustment

[0025] The chassis attitude control module uses a gyroscope sensor to detect the attitude angle of the wheelchair chassis in real time. When the detected attitude angle exceeds the preset safety threshold, the chassis attitude control module automatically lowers the wheelchair's driving gear. By lowering the gear, the wheelchair is ensured to travel within a safe angle range, thereby improving the wheelchair's stability and safety.

[0026] Step 2: Environmental perception and display

[0027] The environmental perception module captures real-time images of the wheelchair's surroundings through a wide-angle camera and displays these images to the user. At the same time, it uses an ultrasonic ranging sensor to measure the distance of obstacles around the wheelchair, quantifies the obstacle distance information, and provides the driver with real-time obstacle avoidance reference;

[0028] Step 3: Information input and decision making

[0029] The input and decision module obtains the position information of the joystick, determines the movement direction and speed of the electric wheelchair, and receives the speed level information selected by the user. It performs decision calculation based on the joystick position information, speed level information, obstacle distance information provided by the environment perception module, and actual speed information of the left and right wheels obtained by the closed-loop control module, and outputs the corresponding control signal according to the decision result.

[0030] Step 4: Closed-loop speed planning and PWM signal generation

[0031] The closed-loop control module receives the control signal, joystick position information, speed level information, obstacle distance information and actual speed information of the left and right wheels provided by the input and decision module, calculates the target speed of the left and right wheel motors of the chassis through the speed PID closed-loop speed planning, and calculates the pulse width modulation (PWM) signals of the left and right wheel motors of the chassis according to the target speed;

[0032] Step 5: Driving the Motor

[0033] The drive module receives the PWM signal from the closed-loop control module, converts the PWM signal into a corresponding drive signal, drives the motors of the left and right wheels respectively, and realizes the precise movement of the electric wheelchair by controlling the speed and direction of the motors;

[0034] Step 6: User Interface Interaction

[0035] The user interface module provides users with a friendly operating interface, displays the real-time status, speed, direction and other information of the wheelchair, and at the same time, accepts user operation instructions, including speed adjustment, direction control, etc., and passes the user operation instructions to the input and decision module for processing, thereby realizing interaction between the user and the wheelchair.

[0036] The present invention has the following beneficial effects:

[0037] 1. Improve safety: The chassis posture control module can detect and adjust the posture of the wheelchair chassis in real time to ensure that the wheelchair travels within a safe angle range, thereby preventing accidents caused by unstable chassis posture. The environmental perception module provides real-time obstacle information through a wide-angle camera and ultrasonic ranging sensor to help users better avoid obstacles, especially in the case of limited vision, which greatly improves driving safety;

[0038] 2. Enhanced stability: When the resistance on the two wheels is inconsistent, the closed-loop control module can ensure that the chassis motor speed is consistent with the planned speed through the speed PID closed-loop speed planning, thereby enhancing the stability of the wheelchair and improving the smoothness of driving;

[0039] 3. Improve user experience: The user interface module provides a friendly operation interface, allowing users to intuitively understand the real-time status, speed, direction and other information of the wheelchair, and conveniently adjust the speed and direction, which improves the user experience. The real-time image provided by the wide-angle camera expands the user's field of view, allowing users to better perceive the surrounding environment, further improving the comfort and convenience of driving;

[0040] 4. Reduce driving skill requirements: The closed-loop control system and intelligent decision-making module can automatically handle many complex driving tasks, such as speed adjustment, direction control, etc., which reduces the requirements for the driver's skill level and enables more users to drive wheelchairs easily;

[0041] 5. Improve applicability: This control solution is applicable to all types of electric wheelchairs, and users can get a good driving experience regardless of whether they have specific driving needs or physical limitations;

[0042] 6. Easy to maintain and upgrade: The system adopts a modular design, and each module has clear functions, which is easy to maintain and upgrade. With the continuous advancement of technology, the system can be easily upgraded and improved to adapt to more complex environments and user needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a structural schematic diagram of a wheeled chassis;

[0044] Figure 2 It is a schematic diagram of the vehicle body movement;

[0045] Figure 3 It is a schematic diagram of a two-dimensional joystick signal;

[0046] Figure 4 A system structure diagram of a wheelchair control system proposed by the present invention;

[0047] Figure 5 This is the signal diagram of the speed steering two-dimensional joystick output. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0049] Reference Figure 1-5 , a wheelchair control system, comprising the following modules:

[0050] Chassis attitude control module: uses the gyroscope sensor installed on the chassis to detect the attitude angle of the wheelchair chassis in real time. When the attitude angle is detected to exceed the preset safety threshold, the module will automatically lower the wheelchair's driving gear to ensure that the wheelchair travels within a safe angle range;

[0051] Environmental perception module: The wide-angle cameras installed around the wheelchair capture real-time images of the wheelchair's surroundings and display these images to the user. Ultrasonic distance sensors are used to measure the distance of obstacles around the wheelchair. These distance information will be quantified to determine whether the wheelchair can safely pass through certain areas, providing the driver with real-time obstacle avoidance reference;

[0052] Closed-loop control module: Set up a closed-loop control system for the chassis movement of the intelligent electric wheelchair. When the resistance of the two wheels is inconsistent, the chassis motor speed can still be consistent with the planned speed. This module receives the position information of the joystick, the speed level information, the distance information between the electric wheelchair and the obstacle, and the actual speed information of the left and right wheels. Through the speed PID closed-loop speed planning, the pulse width modulation (PWM) signals of the left and right wheel motors of the chassis are calculated respectively;

[0053] Input and decision module: responsible for obtaining the position information of the joystick, determining the movement direction and speed of the electric wheelchair, and receiving the speed level information selected by the user. According to the information provided by the input submodule, the obstacle distance information provided by the environment perception module, and the actual speed information of the left and right wheels obtained by the closed-loop control module, the decision calculation is performed and the corresponding control signal is output. The input and decision module includes the following units:

[0054] Joystick position information acquisition unit: obtains the X and Y coordinate values ​​of the joystick in the two-dimensional coordinate system through ADC conversion, that is, the user's control input of the wheelchair, and provides it to the control system to guide the movement direction and speed of the wheelchair;

[0055] Kinematic model and target speed calculation unit: Based on the X and Y coordinate values ​​of the joystick and the kinematic model of the chassis, the target speeds of the left and right wheels (VT1 and VT2) are calculated to determine the target speed of the wheelchair moving forward, backward or turning in response to the user's control;

[0056] PID speed closed-loop control unit: compares the deviation between the actual speed and the target speed, and adjusts the pulse width of the motor through the PID control algorithm to make the actual speed consistent with the target speed;

[0057] Ultrasonic distance measurement data acquisition and safety warning unit: obtains four-channel ultrasonic distance measurement data through the Modbus protocol and sets the safety threshold B. When the measured ultrasonic distance is lower than the safety threshold B, it issues a warning to the user, indicating that there are obstacles or dangers around the wheelchair to prevent collisions and accidents.

[0058] Gyroscope sensor data acquisition and safety control: The gyroscope sensor data installed on the chassis is acquired through the IIC protocol, including the X, Y, and Z Euler angles of the chassis, and the safety thresholds C, D, and E are set. When the tilt angle of the chassis exceeds the set threshold, the running gear of the chassis is automatically lowered to prevent the safety hazard of imbalance or tipping of the wheelchair due to tilt;

[0059] Camera image acquisition and display module unit: acquires real-time images from the cameras around the wheelchair and displays them in front of the driver, expanding the driver's field of view, especially for users with limited field of view, providing additional environmental perception and safe driving support;

[0060] like Figure 1 As shown in the figure, the wheeled chassis of the R9 project is configured as follows. It is driven by two independently driven wheels (the other two universal support wheels are not analyzed). The chassis motion forms are linear motion or circular motion: when v1 = v2: the chassis moves in a straight line, at this time o_motion is at infinity, V = v1 = v2; when v1! = v2: when v1 and v2 are in the same direction, the chassis moves in a circle around the distant center v_motion. The robot moves in a circle, at this time:

[0061]

[0062] Where H is the distance between the two driving wheels, R is the moving radius of the two wheel centers, when V1 and V2 are of opposite signs or one of them is zero: the differential robot rotates around a point on its own H segment, and its angular velocity is:

[0063]

[0064] The above formula can be used to solve the relationship between the speed of the two wheels and V1 and ω at the center of the two wheels when the robot performs circular motion. Solving V1 and ω when v1 and v2 are known is called forward kinematics:

[0065]

[0066] Knowing V, and ω to solve v1, v2 is called inverse kinematics:

[0067]

[0068] like Figure 5 As shown, the two-dimensional voltage coordinate (X, Y) and the two-dimensional angular velocity coordinate (θ, V) are given by the following conversion relationship; set the maximum speed of a certain gear to V_max, K1 is the forward acceleration coefficient; K2 is the steering acceleration coefficient; where V represents the center of mass speed of the wheelchair chassis, then: V = K1*V_max*(Y-2.5) / 2.5; V∈(-Vmax,Vmax); θ = K2*90°*(X-2.5) / 2.5; θ∈(-90°,90°); the left wheel linear velocity is V1, the angular velocity is w1, the right wheel linear velocity is V2, The angular velocity is w2; the wheel radius is r, the driving wheel spacing is H, and the turning radius is R; then from the chassis kinematic model, it is easy to deduce: wheel center speed: V = (V1 + V2) / 2, turning radius: R = V / ω = (H * (V1 + V2)) / (2 * (V1-V2), that is, given V and R, V1 and V2 can be confirmed. V1 = V + H / 2 * V / R, V2 = VH / 2 * V / R So far, the turning radius R is missing, and the equation can be solved. If the functional relationship between the turning radius R and the turning angle θ is established, the left and right wheel speeds can be solved; discuss three cases:

[0069] (1) θ = 0, V ≠ 0, that is, the electric wheelchair is required to move in a straight line with a speed of V. At this time, the center of mass of the wheelchair body has a speed of V = V1 = V2, and R = ∞;

[0070] (2) θ≠0, V≠0, that is, the electric wheelchair is required to turn, and the turning radius R is between 0 and ∞. At this time, the left and right motors should achieve speed following;

[0071] (3) When θ≠0 and V=0, the electric wheelchair is required to rotate in place with a turning radius of zero, and the motion controller needs to ensure that the linear velocity of the left and right wheels V1=-V2;

[0072] (4) Θ=0, V=0: the wheelchair is stationary; V1=V2=0.

[0073] Driving module: receives the PWM signal from the decision module and converts it into the corresponding driving signal to drive the motors of the left and right wheels respectively by controlling the speed and direction of the motors;

[0074] User interface module: provides users with a friendly operating interface, displays the real-time status, speed, and direction information of the wheelchair, and accepts user operating instructions, including speed adjustment, direction control, etc., and passes these instructions to the input and decision module for processing.

[0075] A wheelchair control method comprises the following steps:

[0076] Step 1: Chassis posture detection and adjustment

[0077] The chassis attitude control module uses a gyroscope sensor to detect the attitude angle of the wheelchair chassis in real time. When the detected attitude angle exceeds the preset safety threshold, the chassis attitude control module automatically lowers the wheelchair's driving gear. By lowering the gear, the wheelchair is ensured to travel within a safe angle range, thereby improving the wheelchair's stability and safety.

[0078] Step 2: Environmental perception and display

[0079] The environmental perception module captures real-time images of the wheelchair's surroundings through a wide-angle camera and displays these images to the user. At the same time, it uses an ultrasonic ranging sensor to measure the distance of obstacles around the wheelchair, quantifies the obstacle distance information, and provides the driver with real-time obstacle avoidance reference;

[0080] Step 3: Information input and decision making

[0081] The input and decision module obtains the position information of the joystick, determines the movement direction and speed of the electric wheelchair, and receives the speed level information selected by the user. It performs decision calculation based on the joystick position information, speed level information, obstacle distance information provided by the environment perception module, and actual speed information of the left and right wheels obtained by the closed-loop control module, and outputs the corresponding control signal according to the decision result.

[0082] Step 4: Closed-loop speed planning and PWM signal generation

[0083] The closed-loop control module receives the control signal, joystick position information, speed level information, obstacle distance information and actual speed information of the left and right wheels provided by the input and decision module, calculates the target speed of the left and right wheel motors of the chassis through the speed PID closed-loop speed planning, and calculates the pulse width modulation (PWM) signals of the left and right wheel motors of the chassis according to the target speed;

[0084] Step 5: Driving the Motor

[0085] The drive module receives the PWM signal from the closed-loop control module, converts the PWM signal into a corresponding drive signal, drives the motors of the left and right wheels respectively, and realizes the precise movement of the electric wheelchair by controlling the speed and direction of the motors;

[0086] Step 6: User Interface Interaction

[0087] The user interface module provides users with a friendly operating interface, displays the real-time status, speed, direction and other information of the wheelchair, and at the same time, accepts user operation instructions, including speed adjustment, direction control, etc., and passes the user operation instructions to the input and decision module for processing, thereby realizing interaction between the user and the wheelchair.

[0088] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A wheelchair control system, characterized in that: Includes the following modules: Chassis attitude control module: uses the gyroscope sensor installed on the chassis to detect the attitude angle of the wheelchair chassis in real time. When the attitude angle is detected to exceed the preset safety threshold, the module will automatically lower the wheelchair's driving gear to ensure that the wheelchair travels within a safe angle range; Environmental perception module: The wide-angle cameras installed around the wheelchair capture real-time images of the wheelchair's surroundings and display these images to the user. Ultrasonic distance sensors are used to measure the distance of obstacles around the wheelchair. These distance information will be quantified to determine whether the wheelchair can safely pass through certain areas, providing the driver with real-time obstacle avoidance reference; Closed-loop control module: Set up a closed-loop control system for the chassis movement of the intelligent electric wheelchair. When the resistance of the two wheels is inconsistent, the chassis motor speed can still be consistent with the planned speed. This module receives the position information of the joystick, the speed level information, the distance information between the electric wheelchair and the obstacle, and the actual speed information of the left and right wheels. Through the speed PID closed-loop speed planning, the pulse width modulation (PWM) signals of the left and right wheel motors of the chassis are calculated respectively; Input and decision module: responsible for obtaining the position information of the joystick, determining the movement direction and speed of the electric wheelchair, and receiving the speed level information selected by the user. According to the information provided by the input submodule, the obstacle distance information provided by the environment perception module, and the actual speed information of the left and right wheels obtained by the closed-loop control module, it performs decision calculations and outputs corresponding control signals. Driving module: receives the PWM signal from the decision module and converts it into the corresponding driving signal to drive the motors of the left and right wheels respectively by controlling the speed and direction of the motors; User interface module: provides users with a friendly operating interface, displays the real-time status, speed, and direction information of the wheelchair, and accepts user operating instructions, including speed adjustment, direction control, etc., and passes these instructions to the input and decision module for processing.

2. A wheelchair control system according to claim 1, characterized in that: The input and decision module includes the following units: Joystick position information acquisition unit: obtains the X and Y coordinate values ​​of the joystick in the two-dimensional coordinate system through ADC conversion, that is, the user's control input of the wheelchair, and provides it to the control system to guide the movement direction and speed of the wheelchair; Kinematic model and target speed calculation unit: Based on the X and Y coordinate values ​​of the joystick and the kinematic model of the chassis, the target speeds of the left and right wheels (VT1 and VT2) are calculated to determine the target speed of the wheelchair moving forward, backward or turning in response to the user's control; PID speed closed-loop control unit: compares the deviation between the actual speed and the target speed, and adjusts the pulse width of the motor through the PID control algorithm to make the actual speed consistent with the target speed; Ultrasonic distance measurement data acquisition and safety warning unit: obtains four-channel ultrasonic distance measurement data through the Modbus protocol and sets the safety threshold B. When the measured ultrasonic distance is lower than the safety threshold B, it issues a warning to the user, indicating that there are obstacles or dangers around the wheelchair to prevent collisions and accidents. Gyroscope sensor data acquisition and safety control: The gyroscope sensor data installed on the chassis is acquired through the IIC protocol, including the X, Y, and Z Euler angles of the chassis, and the safety thresholds C, D, and E are set. When the tilt angle of the chassis exceeds the set threshold, the running gear of the chassis is automatically lowered to prevent the safety hazard of imbalance or tipping of the wheelchair due to tilt; Camera image acquisition and display module unit: acquires real-time images from cameras around the wheelchair and displays them in front of the driver, expanding the driver's field of view, especially for users with limited field of view, providing additional environmental perception and safe driving support.

3. A wheelchair control method, based on the wheelchair control system according to any one of claims 1-2, characterized in that: The following steps are involved: Step 1: Chassis posture detection and adjustment The chassis attitude control module uses a gyroscope sensor to detect the attitude angle of the wheelchair chassis in real time. When the detected attitude angle exceeds the preset safety threshold, the chassis attitude control module automatically lowers the wheelchair's driving gear. By lowering the gear, the wheelchair is ensured to travel within a safe angle range, thereby improving the wheelchair's stability and safety. Step 2: Environmental perception and display The environmental perception module captures real-time images of the wheelchair's surroundings through a wide-angle camera and displays these images to the user. At the same time, it uses an ultrasonic ranging sensor to measure the distance of obstacles around the wheelchair, quantifies the obstacle distance information, and provides the driver with real-time obstacle avoidance reference; Step 3: Information input and decision making The input and decision module obtains the position information of the joystick, determines the movement direction and speed of the electric wheelchair, and receives the speed level information selected by the user. It performs decision calculation based on the joystick position information, speed level information, obstacle distance information provided by the environment perception module, and actual speed information of the left and right wheels obtained by the closed-loop control module, and outputs the corresponding control signal according to the decision result. Step 4: Closed-loop speed planning and PWM signal generation The closed-loop control module receives the control signal, joystick position information, speed level information, obstacle distance information and actual speed information of the left and right wheels provided by the input and decision module, calculates the target speed of the left and right wheel motors of the chassis through the speed PID closed-loop speed planning, and calculates the pulse width modulation (PWM) signals of the left and right wheel motors of the chassis according to the target speed; Step 5: Driving the Motor The drive module receives the PWM signal from the closed-loop control module, converts the PWM signal into a corresponding drive signal, drives the motors of the left and right wheels respectively, and realizes the precise movement of the electric wheelchair by controlling the speed and direction of the motors; Step 6: User Interface Interaction The user interface module provides users with a friendly operating interface, displays the real-time status, speed, direction and other information of the wheelchair, and at the same time, accepts user operation instructions, including speed adjustment, direction control, etc., and passes the user operation instructions to the input and decision module for processing, thereby realizing interaction between the user and the wheelchair.