Control and detection method and device of automobile seat and automobile seat
By obtaining the current information of the car seat motor and judging its rotation direction and movement state, the problem that the prior art cannot effectively diagnose the motor operating state is solved, the safety and consistency of seat movement is achieved, and the functional safety of the car is improved.
Patent Information
- Application Number
- CN202510611154.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-12
- Publication Date
- 2025-06-27
AI Technical Summary
The prior art cannot effectively diagnose whether the operating status of a car seat motor is consistent with the driver's request and cannot meet the requirements of car functional safety, resulting in unanticipated seat movements, affecting the personal safety of the driver and passengers.
By obtaining the current flowing through the motor, determining the rotation direction and movement status of the motor, determining whether the movement of the car seat meets expectations, and if it is inconsistent, the motor will stop moving and alarm.
It effectively avoids mismoving the car seat, ensures that the seat movement is consistent with the driver's request, improves the functional safety of the car, and protects the personal safety of the driver and passengers.
Smart Images

Figure CN120207177A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automotive safety control, and particularly to a control and detection method and device for an automotive seat, and an automotive seat. Background Art
[0002] For vehicle drivers, the adjustment of vehicle seats is a commonly used function. Since the movement of the seat involves the personal safety of users and belongs to safety components in vehicles, its movement must be strictly controlled. According to the automotive functional safety standard ISO 26262, vehicle manufacturers will put forward the following functional safety requirements for seat adjustment: during driving, the seat should not have unexpected movements. The so-called unexpected movements refer to the situation where the seat moves when the driver does not operate or request seat adjustment; or when responding to the driver's request, the seat moves in the opposite direction. The above unexpected movements may cause personal injuries to the driver and passengers. For example, when the driver is driving a vehicle on the highway, if the seat moves backward unexpectedly, it may cause the driver to be unable to step on the brake pedal; if the backrest moves forward unexpectedly, it may cause the driver's line of sight to be blocked. Both of the above situations will affect the personal safety of the driver and passengers. In related technologies, the motor drive chip can only diagnose failures such as open circuit or short circuit of the motor, but cannot effectively diagnose whether the operating state of the motor is consistent with the driver's request, and cannot meet the requirements of automotive functional safety. Summary of the Invention
[0003] The object of the present invention is to provide a control and detection method and device for an automotive seat, and an automotive seat, which determine the rotation direction of the motor according to the current flowing through the motor. The rotation direction of the motor represents the moving direction of the automotive seat, and further determines whether the movement of the automotive seat meets the expectation, so as to avoid unexpected movement of the automotive seat and affect the driving of the driver.
[0004] To solve the above technical problems, the present invention provides a control and detection method for an automotive seat, including:
[0005] Determine the target moving direction of the automotive seat;
[0006] Generate a drive signal according to the target moving direction, and send the drive signal to a motor drive device so that the motor drive device drives the motor to rotate and drives the automotive seat to move;
[0007] Obtain the current flowing through the motor during the rotation of the motor collected by a current sampling circuit;
[0008] Judge whether the moving state of the automotive seat is consistent with the target moving direction according to the magnitude and direction of the current;
[0009] When the moving state of the vehicle seat is consistent with the target moving direction, it is determined that the vehicle seat moves normally;
[0010] When the moving state of the vehicle seat is inconsistent with the target moving direction, the motor is controlled to stop moving and an alarm is given.
[0011] On the other hand, the vehicle seat includes switches for controlling the vehicle seat to move horizontally forward, horizontally backward, the backrest of the vehicle seat to move forward and the backrest to move backward. The motor includes a horizontal motor and a backrest motor. The motor drive device includes a motor drive chip and a motor drive circuit. The motor drive circuit includes a horizontal motor drive circuit and a backrest motor drive circuit;
[0012] Determining the target moving direction of the vehicle seat includes:
[0013] Judging whether the switch is triggered;
[0014] Based on the triggered switch, the corresponding target moving direction is determined;
[0015] Generating a drive signal according to the target moving direction and sending the drive signal to the motor drive chip so that the motor drive chip drives the motor to rotate and drives the vehicle seat to move, includes:
[0016] When the target moving direction is that the vehicle seat moves horizontally forward or horizontally backward, a horizontal drive signal is generated and the horizontal drive signal is sent to the motor drive chip so that the motor drive chip drives the horizontal motor to rotate and drives the vehicle seat to move forward or backward;
[0017] When the target moving direction is that the backrest of the vehicle seat moves horizontally forward or horizontally backward, a backrest drive signal is generated and the backrest drive signal is sent to the motor drive chip so that the motor drive chip drives the backrest motor to rotate and drives the backrest of the vehicle seat to move forward or backward.
[0018] On the other hand, the horizontal motor drive circuit and the backrest motor drive circuit both include a first controllable switch, a second controllable switch, a third controllable switch, and a fourth controllable switch. The first ends of the first controllable switch and the second controllable switch are both connected to a power supply. The second end of the first controllable switch is connected to the first end of the third controllable switch, and the common connection end is connected to the first end of the motor. The second end of the second controllable switch is connected to the first end of the fourth controllable switch, and the common connection end is connected to the second end of the motor. The second ends of the third controllable switch and the fourth controllable switch are connected, and the common connection end is grounded. The control ends of the first controllable switch, the second controllable switch, the third controllable switch, and the fourth controllable switch are all connected to the motor drive chip;
[0019] Generating a drive signal according to the target movement direction and sending the drive signal to the motor drive chip so that the motor drive chip drives the motor to rotate and drives the vehicle seat to move includes:
[0020] Generating a drive signal according to the target movement direction and sending the drive signal to the motor drive chip so that the motor drive chip controls the first controllable switch and the fourth controllable switch to conduct simultaneously and the second controllable switch and the third controllable switch to turn off simultaneously, driving the motor to rotate forward, or controls the first controllable switch and the fourth controllable switch to turn off simultaneously and the second controllable switch and the third controllable switch to conduct simultaneously, driving the motor to rotate in reverse.
[0021] On the other hand, the current sampling circuit includes a first resistor and an amplifying circuit. The first resistor is connected in series with the motor. The first end of the first resistor is connected to the positive-phase input terminal of the amplifying circuit, and the second end of the first resistor is connected to the negative-phase input terminal of the amplifying circuit;
[0022] Obtaining the current of the motor collected by the current sampling circuit includes:
[0023] Obtaining the voltage value output by the output terminal of the amplifying circuit, and the absolute value of the voltage value is positively correlated with the current of the motor.
[0024] To solve the above technical problems, the present invention also provides a control and detection device for a vehicle seat, including:
[0025] A memory for storing a computer program;
[0026] A processor for implementing the steps of the above control and detection method for the vehicle seat when executing the computer program.
[0027] To solve the above technical problems, the present invention further provides an automotive seat, which includes the control and detection device of the above automotive seat, and further includes a motor, a motor driving device, and switches for controlling the automotive seat to move horizontally forward, horizontally backward, the backrest of the automotive seat to move forward, and the backrest to move backward. The motor includes a horizontal motor and a backrest motor. The motor driving device includes a motor driving chip and a motor driving circuit. The motor driving circuit includes a horizontal motor driving circuit and a backrest motor driving circuit;
[0028] The motor driving chip is used to generate a horizontal driving signal or a backrest driving signal based on the triggered switch, and the motor driving chip is used to control the horizontal motor driving circuit to drive the horizontal motor to rotate based on the horizontal driving signal or control the backrest motor driving circuit to drive the backrest motor to rotate based on the backrest driving signal.
[0029] On the other hand, both the horizontal motor driving circuit and the backrest motor driving circuit include a first controllable switch, a second controllable switch, a third controllable switch, and a fourth controllable switch;
[0030] The first ends of the first controllable switch and the second controllable switch are both connected to the power supply. The second end of the first controllable switch is connected to the first end of the third controllable switch, and the common connection end is connected to the first end of the motor. The second end of the second controllable switch is connected to the first end of the fourth controllable switch, and the common connection end is connected to the second end of the motor. The second ends of the third controllable switch and the fourth controllable switch are connected, and the common connection end is grounded. The control ends of the first controllable switch, the second controllable switch, the third controllable switch, and the fourth controllable switch are all connected to the motor driving chip.
[0031] On the other hand, the current sampling circuit includes a first resistor and an amplifying circuit;
[0032] The first resistor is connected in series with the motor. The first end of the first resistor is connected to the positive input terminal of the amplifying circuit, and the second end of the first resistor is connected to the negative input terminal of the amplifying circuit. The output terminal of the amplifying circuit is connected to the processor and is used to output a voltage value. The absolute value of the voltage value is positively correlated with the current of the motor.
[0033] On the other hand, the amplifying circuit includes a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, and an operational amplifier;
[0034] The first end of the second resistor is connected to the power supply. The second end of the second resistor is respectively connected to the first end of the first resistor, the first end of the third resistor, and the first end of the fourth resistor. The second end of the third resistor is grounded. The second end of the fourth resistor is connected to the non-inverting input terminal of the operational amplifier. The first end of the fifth resistor is connected to the second end of the first resistor. The second end of the fifth resistor is connected to the inverting input terminal of the operational amplifier and the first end of the sixth resistor. The second end of the sixth resistor is connected to the output terminal of the operational amplifier;
[0035] The operational amplifier is used to output a voltage value, and the absolute value of the voltage value is positively correlated with the current of the motor.
[0036] On the other hand, the current sampling circuit further includes a filtering circuit, and the filtering circuit includes at least one of a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor, and a seventh resistor;
[0037] The first end of the first capacitor is connected to the non-inverting input terminal of the operational amplifier and the first end of the third capacitor. The first end of the second capacitor is connected to the inverting input terminal of the operational amplifier and the second end of the third capacitor. The second ends of the first capacitor and the second capacitor are both grounded. The first end of the seventh resistor is connected to the output terminal of the operational amplifier. The second end of the seventh resistor is connected to the processor and the first end of the fourth capacitor. The second end of the fourth capacitor is grounded. The first end of the fifth capacitor is connected to the power supply. The second end of the fifth capacitor is connected to the power supply terminal of the operational amplifier;
[0038] The first capacitor, the second capacitor, the third capacitor, the fourth capacitor, the fifth capacitor, and the seventh resistor are used for filtering.
[0039] This application provides a control and detection method, device, and vehicle seat for a vehicle seat, which relates to the field of vehicle safety control. It includes determining the target movement direction of the vehicle seat; generating a drive signal according to the target movement direction and sending the drive signal to a motor drive device so that the motor drive device drives the motor to rotate and drives the vehicle seat to move; obtaining the current flowing through the motor when the motor rotates collected by a current sampling circuit; judging whether the movement state of the vehicle seat is consistent with the target movement direction according to the magnitude and direction of the current; when the movement state of the vehicle seat is consistent with the target movement direction, determining that the vehicle seat moves normally. Determine the rotation direction of the motor according to the current flowing through the motor, and the rotation direction of the motor represents the movement direction of the vehicle seat, so as to further determine whether the movement of the vehicle seat meets the expectation and avoid the misoperation of the vehicle seat, which affects the driving of the driver. Description of the Drawings
[0040] To more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required in the prior art and the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0041] Figure 1 Flow chart of a control and detection method for an automotive seat provided by the present invention;
[0042] Figure 2 Structure diagram of an automotive seat provided by the present invention;
[0043] Figure 3 Structure diagram of a motor rotating forward provided by the present invention;
[0044] Figure 4 Structure diagram of a motor rotating backward provided by the present invention;
[0045] Figure 5 Structure diagram of a control and detection device for an automotive seat provided by the present invention;
[0046] Figure 6 Structure diagram of a current sampling circuit when the motor rotates forward provided by the present invention;
[0047] Figure 7 Structure diagram of a current sampling circuit when the motor rotates backward provided by the present invention. Detailed implementation manners
[0048] The core of the present invention is to provide a control and detection method, device and automotive seat for an automotive seat, determine the rotation direction of the motor according to the current flowing through the motor, the rotation direction of the motor represents the moving direction of the automotive seat, and then determine whether the movement of the automotive seat meets the expectation, avoiding misoperation of the automotive seat and affecting the driving of the driver.
[0049] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts belong to the scope of protection of the present invention.
[0050] Figure 1 Flow chart of a control and detection method for an automotive seat provided by the present invention. The control and detection method for the automotive seat includes:
[0051] S11: Determine the target movement direction of the vehicle seat;
[0052] S12: Generate a drive signal according to the target movement direction and send the drive signal to the motor drive device, so that the motor drive device drives the motor to rotate and drives the vehicle seat to move;
[0053] S13: Obtain the current flowing through the motor during the rotation of the motor collected by the current sampling circuit;
[0054] S14: Determine whether the movement state of the vehicle seat is consistent with the target movement direction according to the magnitude and direction of the current; if so, proceed to step S15, if not, proceed to step S16;
[0055] S15: Determine that the vehicle seat moves normally;
[0056] S16: Control the motor to stop moving and give an alarm.
[0057] For vehicle drivers, the adjustment of vehicle seats is a common function. Since the movement of the seat involves the personal safety of users and belongs to the safety components in the vehicle, its movement must be strictly controlled.
[0058] According to the automotive functional safety standard ISO 26262, vehicle manufacturers will put forward the following functional safety requirements for seat adjustment:
[0059] During driving, the seat should not have unexpected movements. The so-called unexpected movements refer to the situation where the seat moves when the driver does not operate or request seat adjustment; or when responding to the driver's request, the seat moves in the opposite direction. The above unexpected movements may cause personal injuries to the driver and passengers.
[0060] For example, when the driver is driving a vehicle on the highway, 1) the unexpected backward movement of the seat may cause the driver to be unable to step on the brake pedal; 2) the unexpected forward movement of the backrest may cause the driver's line of sight to be blocked. Both of the above situations will affect the personal safety of the driver and passengers.
[0061] The adjustment of the vehicle seat is driven by the movement of the motor, and the motor is generally driven by a full-bridge circuit. Therefore, the working current and movement state of the motor need to be diagnosed, and it is required that the diagnostic circuit for the working current and movement state of the motor is independent of the motor drive module to avoid common cause failures and improve the coverage rate of the diagnostic mechanism.
[0062] Therefore, in this application, the target moving direction of the vehicle seat is first determined. There can be various moving directions for the vehicle seat. For example, the entire vehicle seat moves forward or backward, or the front and rear positions of the vehicle seat remain unchanged while the backrest of the vehicle seat moves forward or backward. Different motors at different positions are driven according to different target moving directions. Further, both forward and backward movements are achieved through the forward and reverse rotations of the motor, and the rotation of the motor is controlled by the motor drive chip sending PWM waves. After the MCU processor determines the target moving direction of the vehicle seat, it sends a drive signal to the motor drive chip, and then the motor drive chip controls the rotation of the motor based on the drive signal. After the motor rotates, it drives the vehicle seat or the backrest of the vehicle seat to move.
[0063] After driving the vehicle seat or the backrest of the vehicle seat to move, it is necessary to determine whether the vehicle seat or the backrest of the vehicle seat moves in the expected direction. Since both the vehicle seat and the backrest of the vehicle seat are driven by motors, the current flowing through the motor can characterize the rotation direction of the motor and whether the working state of the motor can drive the vehicle seat or the backrest of the vehicle seat. This application uses a current sampling circuit to sample the current of the motor to obtain the direction and magnitude of the current flowing through the motor, and then determines whether the motor drives the vehicle seat to move in the expected direction. If the vehicle seat does not move in the expected direction, an alarm needs to be given to prompt the driver that the vehicle seat is in abnormal movement.
[0064] This application provides a method for controlling and detecting a vehicle seat, which relates to the field of vehicle safety control. It includes determining the target moving direction of the vehicle seat; generating a drive signal according to the target moving direction and sending the drive signal to the motor drive device so that the motor drive device drives the motor to rotate and drive the vehicle seat to move; obtaining the current flowing through the motor during the rotation of the motor collected by the current sampling circuit; judging whether the moving state of the vehicle seat is consistent with the target moving direction according to the magnitude and direction of the current; when the moving state of the vehicle seat is consistent with the target moving direction, determining that the vehicle seat moves normally. Determine the rotation direction of the motor according to the current flowing through the motor. The rotation direction of the motor characterizes the moving direction of the vehicle seat, and then determine whether the movement of the vehicle seat meets the expectation, avoiding the misoperation of the vehicle seat and affecting the driving of the driver.
[0065] Based on the above embodiments:
[0066] Figure 2 It is a schematic structural diagram of a vehicle seat provided by the present invention;
[0067] In some embodiments, the vehicle seat includes switches for controlling the vehicle seat to move horizontally forward, horizontally backward, the backrest of the vehicle seat to move forward, and the backrest to move backward. The motor includes a horizontal motor and a backrest motor. The motor drive device includes a motor drive chip and a motor drive circuit. The motor drive circuit includes a horizontal motor drive circuit and a backrest motor drive circuit;
[0068] Determining the target movement direction of the vehicle seat includes:
[0069] Determining whether the switch is triggered;
[0070] Based on the triggered switch, determining the corresponding target movement direction;
[0071] Generating a drive signal according to the target movement direction and sending the drive signal to the motor drive chip so that the motor drive chip drives the motor to rotate and drives the vehicle seat to move, including:
[0072] When the target movement direction is the vehicle seat moving horizontally forward or horizontally backward, generating a horizontal drive signal and sending the horizontal drive signal to the motor drive chip so that the motor drive chip drives the horizontal motor to rotate and drives the vehicle seat to move forward or backward;
[0073] When the target movement direction is the backrest of the vehicle seat moving horizontally forward or horizontally backward, generating a backrest drive signal and sending the backrest drive signal to the motor drive chip so that the motor drive chip drives the backrest motor to rotate and drives the backrest of the vehicle seat to move forward or backward.
[0074] Specifically, four switches are provided, and the four switches respectively correspond to four different needs of the user. When the switch is pressed, after the processor determines the pressed switch, a corresponding drive signal is generated and sent to the motor drive chip. Then, the motor drive chip controls the horizontal motor or the backrest motor to move, and further adjusts the seat or the seat backrest.
[0075] The specific adjustment method is as follows:
[0076] When the horizontal forward switch is pressed, the MCU will detect a low-level signal, send a drive signal, and control the corresponding switch of the full-bridge module of the horizontal motor to conduct through the drive chip. At this time, the horizontal motor installed under the seat rotates forward and drives the seat to move forward.
[0077] When the horizontal backward switch is pressed, the MCU will detect a low-level signal, send a drive signal, and control the corresponding switch of the full-bridge module of the horizontal motor to conduct through the drive chip. At this time, the horizontal motor installed under the seat rotates in reverse and drives the seat to move backward.
[0078] Press the forward backrest switch, the MCU will detect a low-level signal, send a drive signal, and control the corresponding switch of the full-bridge module of the backrest motor to conduct through the drive chip. At this time, the backrest motor assembled in the seat back rotates forward, driving the seat to move forward.
[0079] Press the backward backrest switch, the MCU will detect a low-level signal, send a drive signal, and control the corresponding switch of the full-bridge module of the backrest motor to conduct through the drive chip. At this time, the backrest motor assembled in the seat back rotates backward, driving the seat to move backward.
[0080] It should also be noted that the correspondence between the forward and reverse rotation of the motor and the forward and backward movement of the motor is not fixed. It is also possible that the reverse rotation of the motor corresponds to forward movement, and the forward rotation of the motor corresponds to backward movement; this is related to the wiring method and control method, but the rotation of the motor in one direction can only correspond to the movement of the seat in one direction.
[0081] It should also be noted that when more than one switch is pressed, the priorities of the horizontal forward switch, horizontal backward switch, forward backrest switch, and backward backrest switch can be set preferentially, and they are controlled in order from high to low priority. For example, the horizontal is adjusted first, and then the backrest is adjusted. It can also be controlled in the order of pressing.
[0082] Furthermore, when the horizontal forward switch and the horizontal backward switch are pressed simultaneously, or the forward backrest switch and the backward backrest switch are pressed simultaneously, it can be ignored and considered as an incorrect control. It can also be in accordance with the priority level, such as forward first and then backward, or backward first and then forward. It can also be controlled in the order of pressing first and then later. This application does not make too many limitations here.
[0083] Figure 3 It is a schematic structural diagram of the forward rotation of the motor provided by the present invention;
[0084] Figure 4 It is a schematic structural diagram of the reverse rotation of the motor provided by the present invention;
[0085] In some embodiments, both the horizontal motor drive circuit and the backrest motor drive circuit include a first controllable switch Q1, a second controllable switch Q2, a third controllable switch Q3, and a fourth controllable switch Q4. The first ends of the first controllable switch Q1 and the second controllable switch Q2 are both connected to the power supply. The second end of the first controllable switch Q1 is connected to the first end of the third controllable switch Q3, and the common connection end is connected to the first end of the motor. The second end of the second controllable switch Q2 is connected to the first end of the fourth controllable switch Q4, and the common connection end is connected to the second end of the motor. The second end of the third controllable switch Q3 is connected to the second end of the fourth controllable switch Q4, and the common connection end is grounded. The control ends of the first controllable switch Q1, the second controllable switch Q2, the third controllable switch Q3, and the fourth controllable switch Q4 are all connected to the motor drive chip;
[0086] Generate a drive signal according to the target movement direction and send the drive signal to the motor drive chip so that the motor drive chip drives the motor to rotate and drives the vehicle seat to move, including:
[0087] Generate a drive signal according to the target movement direction and send the drive signal to the motor drive chip so that the motor drive chip controls the first controllable switch Q1 and the fourth controllable switch Q4 to conduct simultaneously and the second controllable switch Q2 and the third controllable switch Q3 to turn off simultaneously, driving the motor to rotate forward, or controls the first controllable switch Q1 and the fourth controllable switch Q4 to turn off simultaneously and the second controllable switch Q2 and the third controllable switch Q3 to conduct simultaneously, driving the motor to rotate in reverse.
[0088] The first controllable switch Q1, the second controllable switch Q2, the third controllable switch Q3, and the fourth controllable switch Q4 are MOSFET (metal oxide semiconductor field effect transistor) switches. The two half-bridges of the first controllable switch Q1 & the third controllable switch Q3 and the second controllable switch Q2 & the fourth controllable switch Q4 constitute a full-bridge drive architecture for the motor. MOSFETs have the advantages of being easy to control and having a large current-carrying capacity, and are widely used in seat motor drive circuits.
[0089] M1 is a seat-related motor, and the movement of the motor drives various adjustments of the seat (such as horizontal, backrest);
[0090] During normal operation, the driver will operate the seat switch, and the switch signal is input to the MCU. After receiving the input signal, the MCU sends relevant control instructions to the motor drive chip, and then turns on the corresponding MOSFET in the full-bridge circuit to drive the motor to act.
[0091] The motor drive chip and the MCU communicate through SPI (Serial Peripheral Interface). The MCU configures the registers of the motor drive chip through SPI, maps the PWM to the corresponding output drive ports of the chip through internal control, and then turns on or off the corresponding MOSFET switches.
[0092] Specifically, when the first controllable switch Q1 and the fourth controllable switch Q4 are turned on and the second controllable switch Q2 and the third controllable switch Q3 are turned off at the same time, the current flows from the 12V power supply through the first controllable switch Q1, the motor, and the fourth controllable switch Q4 in sequence, and the motor rotates forward, driving the seat to adjust in one direction, such as Figure 3 shown.
[0093] When the second controllable switch Q2 and the third controllable switch Q3 are turned on and the first controllable switch Q1 and the fourth controllable switch Q4 are turned off at the same time, the current flows from the 12V power supply through the second controllable switch Q2, the motor, and the third controllable switch Q3 in sequence, and the motor rotates in reverse, driving the seat to adjust in the opposite direction.
[0094] The adjustment of the overall position of the seat and the adjustment of the seat back are both in the above manner, and this application is explained in a general way here.
[0095] In some embodiments, the current sampling circuit includes a first resistor R1 and an amplifier circuit. The first resistor R1 is connected in series with the motor. The first end of the first resistor R1 is connected to the non-inverting input terminal of the amplifier circuit, and the second end of the first resistor R1 is connected to the inverting input terminal of the amplifier circuit.
[0096] Obtaining the current of the motor collected by the current sampling circuit includes:
[0097] Obtaining the voltage value output by the output terminal of the amplifier circuit, and the absolute value of the voltage value is positively correlated with the current of the motor.
[0098] When the motor operates correctly, the corresponding parameters are shown in Table 1, and Table 1 is the motor operation parameter table.
[0099] Table 1
[0100]
[0101] After obtaining the sampled voltage, determine whether the motor operates as expected based on the sampled voltage.
[0102] Figure 5 FIG. is a schematic structural diagram of a control and detection device for an automotive seat provided by the present invention. The control and detection device for the automotive seat includes:
[0103] A memory 21 for storing a computer program;
[0104] A processor 22 for implementing the steps of the above-mentioned control and detection method for the automotive seat when executing the computer program.
[0105] For the introduction of the control and detection device for the automotive seat provided in this application, please refer to the above embodiments and will not be elaborated here.
[0106] This application also provides an automotive seat, which includes the above-mentioned control and detection device for the automotive seat, and further includes a motor, a motor driving device, and switches for controlling the automotive seat to move forward horizontally, move backward horizontally, the backrest of the automotive seat to move forward, and the backrest to move backward. The motor includes a horizontal motor and a backrest motor. The motor driving device includes a motor driving chip and a motor driving circuit. The motor driving circuit includes a horizontal motor driving circuit and a backrest motor driving circuit;
[0107] The motor driving chip is used to generate a horizontal driving signal or a backrest driving signal based on the triggered switch, and the motor driving chip is used to control the horizontal motor driving circuit to drive the horizontal motor to rotate based on the horizontal driving signal or control the backrest motor driving circuit to drive the backrest motor to rotate based on the backrest driving signal.
[0108] In some embodiments, both the horizontal motor drive circuit and the backrest motor drive circuit include a first controllable switch Q1, a second controllable switch Q2, a third controllable switch Q3, and a fourth controllable switch Q4;
[0109] The first ends of the first controllable switch Q1 and the second controllable switch Q2 are both connected to the power supply. The second end of the first controllable switch Q1 is connected to the first end of the third controllable switch Q3, and the common connection point is connected to the first end of the motor. The second end of the second controllable switch Q2 is connected to the first end of the fourth controllable switch Q4, and the common connection point is connected to the second end of the motor. The second end of the third controllable switch Q3 is connected to the second end of the fourth controllable switch Q4, and the common connection point is grounded. The control ends of the first controllable switch Q1, the second controllable switch Q2, the third controllable switch Q3, and the fourth controllable switch Q4 are all connected to the motor drive chip.
[0110] In some embodiments, the current sampling circuit includes a first resistor R1 and an amplifier circuit;
[0111] The first resistor R1 is connected in series with the motor. The first end of the first resistor R1 is connected to the non-inverting input terminal of the amplifier circuit, and the second end of the first resistor R1 is connected to the inverting input terminal of the amplifier circuit. The output terminal of the amplifier circuit is connected to the processor and is used to output a voltage value. The absolute value of the voltage value is positively correlated with the current of the motor.
[0112] In some embodiments, the amplifier circuit includes a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, and an operational amplifier U1;
[0113] The first end of the second resistor R2 is connected to the power supply. The second end of the second resistor R2 is respectively connected to the first end of the first resistor R1, the first end of the third resistor R3, and the first end of the fourth resistor R4. The second end of the third resistor R3 is grounded. The second end of the fourth resistor R4 is connected to the non-inverting input terminal of the operational amplifier U1. The first end of the fifth resistor R5 is connected to the second end of the first resistor R1. The second end of the fifth resistor R5 is connected to the inverting input terminal of the operational amplifier U1 and the first end of the sixth resistor R6. The second end of the sixth resistor R6 is connected to the output terminal of the operational amplifier U1;
[0114] The operational amplifier U1 is used to output a voltage value. The absolute value of the voltage value is positively correlated with the current of the motor.
[0115] The first resistor R1 is a sampling resistor. The first resistor R1 and the motor are in the same current loop, and the working current of the motor is equal to the current flowing through the first resistor R1. Therefore, the voltage drop across the first resistor R1 is ∆U = U A -U B=R1×Imotor. The resistance value of the first resistor R1 is generally in the order of milliohms, and a commonly used design is 5 milliohms. The second resistor R2 and the third resistor R3 form a resistor voltage division circuit, which can provide a stable bias voltage for the positive electrode of the operational amplifier U1. Generally, the resistance values of the second resistor R2 and the third resistor R3 are equal, and the bias voltage value is 2.5V. The second resistor R2, the third resistor R3, the fourth resistor R4, the fifth resistor R5, the sixth resistor R6 and the operational amplifier U1 together constitute a current acquisition and amplification circuit. According to the circuit principle, the voltage at the output end of the operational amplifier U1 is calculated as:
[0116] .
[0117] During circuit design, it is necessary to ensure that: the resistance values of the second resistor R2 and the third resistor R3 are equal, the resistance values of the fourth resistor R4 and the fifth resistor R5 are equal, and the resistance value of the sixth resistor R6 is equal to the parallel resistance value of the second resistor R2 and the third resistor R3. That is: R2 = R3, R4 = R5, R6=(R2×R3) / (R2 + R3);
[0118] Therefore, the simplified formula is ;
[0119] Since U A -U B is the voltage across the sampling resistor, so the finally easily understandable formula is:
[0120] ;
[0121] In the above formula: R6 / R5 is the amplification factor of the operational amplifier U1, Imotor is the current across the motor, and 2.5V is the bias voltage. Since the voltage acquisition range of the MCU is generally 0 - 5V, it is necessary to adjust the parameters of R6 / R5 and R1 according to the normal operating current range of the motor to ensure that the MCU can recognize the current in the full operating range of the motor.
[0122] In some embodiments, the current sampling circuit further includes a filtering circuit, and the filtering circuit includes at least one of the first capacitor C1, the second capacitor C2, the third capacitor C3, the fourth capacitor C4, the fifth capacitor C5 and the seventh resistor R7;
[0123] The first terminal of the first capacitor C1 is connected to the non-inverting input terminal of the operational amplifier U1 and the first terminal of the third capacitor C3. The first terminal of the second capacitor C2 is connected to the inverting input terminal of the operational amplifier U1 and the second terminal of the third capacitor C3. The second terminals of the first capacitor C1 and the second capacitor C2 are both grounded. The first terminal of the seventh resistor R7 is connected to the output terminal of the operational amplifier U1. The second terminal of the seventh resistor R7 is connected to the processor and the first terminal of the fourth capacitor C4. The second terminal of the fourth capacitor C4 is grounded. The first terminal of the fifth capacitor C5 is connected to the power supply. The second terminal of the fifth capacitor C5 is connected to the power supply terminal of the operational amplifier U1;
[0124] The first capacitor C1, the second capacitor C2, the third capacitor C3, the fourth capacitor C4, the fifth capacitor C5 and the seventh resistor R7 are used for filtering.
[0125] The first capacitor C1, the second capacitor C2 and the third capacitor C3 are all filter capacitors, which filter out the interference in the voltage and improve the quality of the voltage signals of each loop. The fourth capacitor C4 and the seventh resistor R7 form a filter circuit, which can effectively filter out the interference in the voltage signal at the output terminal of the operational amplifier U1 and ensure that the MCU collects a stable voltage value. By adjusting the values of the fourth capacitor C4 and the seventh resistor R7, different voltage signal filtering times are formed to meet the requirements of different products.
[0126] The MCU can know the working current of the motor at this time by analyzing the collected voltage value, realizing the function of monitoring the current; and can combine the state of the switch at this time to judge whether the motion state of the motor is abnormal. If it is abnormal, the MCU will turn off the motor action or give an alarm.
[0127] Assume that the MCU analog-to-digital converter is 12-bit, then the ADC value is: , when Uc = 2.5V, .
[0128] Figure 6 It is a schematic structural diagram of a current sampling circuit for the forward rotation of a motor provided by the present invention;
[0129] When the motor rotates forward, the first controllable switch Q1 and the fourth controllable switch Q4 are turned on, and the direction of the current is as shown by the arrow. The voltage at points A and B at both ends of the motor is , and the voltage at the corresponding MCU diagnostic port point is: .
[0130] Therefore, when rotating forward, the value of U C is greater than 2.5V. The voltage value range of the MCU port is: 2.5~5V, and the range of the MCU ADC value: 2048~4096.
[0131] The MCU converts the collected voltage value into an AD value. According to the corresponding relationship between the AD value and the voltage, the working current of the motor can be read in real time, realizing the function of monitoring the forward rotation current of the motor. The MCU converts the collected voltage value into an AD value and compares it with the actual input state of the switch. If the switch input at this time is to make the motor rotate forward and the voltage value corresponding to the MCU AD value is greater than 2.5V, the motor works normally; if the switch input at this time is to make the motor rotate in reverse or there is no switch input and the voltage value corresponding to the MCU AD value is less than or equal to 2.5V, the motor works abnormally, and the control module will alarm the whole vehicle.
[0132] Figure 7 It is a schematic structural diagram of a current sampling circuit when the motor rotates in reverse provided by the present invention.
[0133] When the motor rotates in reverse, the second controllable switch Q2 and the third controllable switch Q3 are turned on, and the direction of the current is as shown by the red arrow. The voltage at points A and B at both ends of the motor , and the voltage at the corresponding MCU diagnostic port point is: .
[0134] Therefore, when the motor rotates in reverse, the value of U C is less than 2.5V, and the voltage value range of the MCU port is: 0~2.5V. The range of the MCU ADC value is 0~2048.
[0135] The MCU converts the collected voltage value into an AD value. According to the corresponding relationship between the AD value and the voltage, the working current of the motor can be read in real time, realizing the function of monitoring the forward rotation current of the motor. The MCU converts the collected voltage value into an AD value and compares it with the actual input state of the switch. If the switch input at this time is to make the motor rotate forward and the voltage value corresponding to the MCU AD value is less than 2.5V, the motor works normally; if the switch input at this time is to make the motor rotate in reverse or there is no switch input and the voltage value corresponding to the MCU AD value is greater than or equal to 2.5V, the motor works abnormally, and the control module will alarm the whole vehicle.
[0136] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0137] Those skilled in the art may further realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present invention.
[0138] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling and detecting a vehicle seat, characterized in that: include: Determine the target movement direction of the car seat; generating a driving signal according to the target moving direction, and sending the driving signal to a motor driving device so that the motor driving device drives the motor to rotate and drives the car seat to move; Acquiring a current sampling circuit that is collected and flows through the motor when the motor rotates; determining whether the moving state of the car seat is consistent with the target moving direction according to the magnitude and direction of the current; When the moving state of the automobile seat is consistent with the target moving direction, determining that the automobile seat moves normally; When the moving state of the car seat is inconsistent with the target moving direction, the motor is controlled to stop moving and an alarm is sounded.
2. The control and detection method of the vehicle seat according to claim 1, characterized in that: The car seat comprises a switch for controlling the car seat to move forward horizontally, backward horizontally, and the backrest of the car seat to move forward and backward, the motor comprises a horizontal motor and a backrest motor, the motor driving device comprises a motor driving chip and a motor driving circuit, and the motor driving circuit comprises a horizontal motor driving circuit and a backrest motor driving circuit; Determine the target movement direction of the car seat, including: Determining whether the switch is triggered; Determining a corresponding target moving direction according to the triggered switch; Generate a drive signal according to the target moving direction, and send the drive signal to a motor drive chip so that the motor drive chip drives the motor to rotate and drives the car seat to move, including: When the target moving direction is horizontally forward or horizontally backward of the car seat, a horizontal driving signal is generated, and the horizontal driving signal is sent to the motor driving chip, so that the motor driving chip drives the horizontal motor to rotate, thereby driving the car seat to move forward or backward; When the target moving direction is that the backrest of the car seat moves horizontally forward or backward, a backrest drive signal is generated and sent to the motor drive chip so that the motor drive chip drives the backrest motor to rotate, thereby driving the backrest of the car seat to move forward or backward.
3. The control and detection method of the vehicle seat according to claim 2, characterized in that: The horizontal motor drive circuit and the backrest motor drive circuit each include a first controllable switch, a second controllable switch, a third controllable switch and a fourth controllable switch, the first ends of the first controllable switch and the second controllable switch are both connected to a power supply, the second end of the first controllable switch is connected to the first end of the third controllable switch and the common end connected is connected to the first end of the motor, the second end of the second controllable switch is connected to the first end of the fourth controllable switch and the common end connected is connected to the second end of the motor, the second end of the third controllable switch is connected to the second end of the fourth controllable switch and the common end connected is grounded, and the control ends of the first controllable switch, the second controllable switch, the third controllable switch and the fourth controllable switch are all connected to the motor drive chip; Generate a drive signal according to the target moving direction, and send the drive signal to a motor drive chip so that the motor drive chip drives the motor to rotate and drives the car seat to move, including: A drive signal is generated according to the target moving direction, and the drive signal is sent to the motor drive chip, so that the motor drive chip controls the first controllable switch and the fourth controllable switch to be turned on at the same time and the second controllable switch and the third controllable switch to be turned off at the same time, driving the motor to rotate forward, or controls the first controllable switch and the fourth controllable switch to be turned off at the same time and the second controllable switch and the third controllable switch to be turned on at the same time, driving the motor to rotate reversely.
4. The control and detection method for a vehicle seat according to any one of claims 1 to 3, characterized in that: The current sampling circuit includes a first resistor and an amplifier circuit, the first resistor is connected in series with the motor, a first end of the first resistor is connected to a non-phase input end of the amplifier circuit, and a second end of the first resistor is connected to an inverting input end of the amplifier circuit; The current of the motor collected by the current sampling circuit is obtained, including: A voltage value outputted from an output terminal of the amplifier circuit is obtained, wherein an absolute value of the voltage value is positively correlated with a current of the motor.
5. A control and detection device for a car seat, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the control and detection method of the vehicle seat as described in any one of claims 1 to 4 when executing the computer program.
6. A car seat, characterized in that: The control and detection device for the automobile seat as claimed in claim 5 further comprises a motor, a motor driving device and a switch for controlling the automobile seat to move forward horizontally, backward horizontally, and the backrest of the automobile seat to move forward and backward, wherein the motor comprises a horizontal motor and a backrest motor, the motor driving device comprises a motor driving chip and a motor driving circuit, and the motor driving circuit comprises a horizontal motor driving circuit and a backrest motor driving circuit; The motor driving chip is used to generate a horizontal driving signal or a backrest driving signal based on the triggered switch, and the motor driving chip is used to control the horizontal motor driving circuit to drive the horizontal motor to rotate based on the horizontal driving signal or control the backrest motor driving circuit to drive the backrest motor to rotate based on the backrest driving signal.
7. The vehicle seat according to claim 6, characterized in that: The horizontal motor driving circuit and the backrest motor driving circuit each include a first controllable switch, a second controllable switch, a third controllable switch and a fourth controllable switch; The first ends of the first controllable switch and the second controllable switch are both connected to a power supply, the second end of the first controllable switch is connected to the first end of the third controllable switch, and the common end connected is connected to the first end of the motor, the second end of the second controllable switch is connected to the first end of the fourth controllable switch, and the common end connected is connected to the second end of the motor, the second end of the third controllable switch is connected to the second end of the fourth controllable switch, and the common end connected is grounded, and the control ends of the first controllable switch, the second controllable switch, the third controllable switch and the fourth controllable switch are all connected to the motor drive chip.
8. The vehicle seat according to claim 6 or 7, characterized in that: The current sampling circuit includes a first resistor and an amplifier circuit; The first resistor is connected in series with the motor, the first end of the first resistor is connected to the non-phase input end of the amplifier circuit, the second end of the first resistor is connected to the inverting input end of the amplifier circuit, and the output end of the amplifier circuit is connected to the processor of the control and detection device of the car seat for outputting a voltage value, and the absolute value of the voltage value is positively correlated with the current of the motor.
9. The vehicle seat according to claim 8, characterized in that: The amplifying circuit includes a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor and an operational amplifier; The first end of the second resistor is connected to a power supply, the second end of the second resistor is respectively connected to the first end of the first resistor, the first end of the third resistor and the first end of the fourth resistor, the second end of the third resistor is grounded, the second end of the fourth resistor is connected to the non-inverting input terminal of the operational amplifier, the first end of the fifth resistor is connected to the second end of the first resistor, the second end of the fifth resistor is connected to the inverting input terminal of the operational amplifier and the first end of the sixth resistor, and the second end of the sixth resistor is connected to the output terminal of the operational amplifier; The operational amplifier is used to output a voltage value, and the absolute value of the voltage value is positively correlated with the current of the motor.
10. The vehicle seat according to claim 9, characterized in that The current sampling circuit further includes a filter circuit, and the filter circuit includes at least one of a first capacitor, a second capacitor, a third capacitor, a fourth capacitor, a fifth capacitor and a seventh resistor; The first end of the first capacitor is connected to the non-inverting input terminal of the operational amplifier and the first end of the third capacitor, the first end of the second capacitor is connected to the inverting input terminal of the operational amplifier and the second end of the third capacitor, the second end of the first capacitor and the second end of the second capacitor are both grounded, the first end of the seventh resistor is connected to the output terminal of the operational amplifier, the second end of the seventh resistor is connected to the processor and the first end of the fourth capacitor, the second end of the fourth capacitor is grounded, the first end of the fifth capacitor is connected to the power supply, and the second end of the fifth capacitor is connected to the power supply terminal of the operational amplifier; The first capacitor, the second capacitor, the third capacitor, the fourth capacitor, the fifth capacitor and the seventh resistor are used for filtering.