Automobile active anti-collision simulation device and control method thereof

文档序号:9638 发布日期:2021-09-17 浏览:40次 中文

1. An automobile active anti-collision simulation device is characterized by comprising a direct current motor for simulating the rotation of wheels, a Hall sensor which is assembled on an output shaft of the direct current motor through a simulation component and used for recording the revolution number of the direct current motor, a laser ranging sensor for detecting the distance between the laser ranging sensor and a front obstacle, a control module and an execution module;

the Hall sensor and the laser ranging sensor are in communication connection with the input end of the control module, and the execution module is in communication connection with the output end of the control module;

the execution module comprises an execution driver in communication connection with the control module and a stepping motor driven by the execution driver, and an output shaft of the stepping motor rotates to simulate the brake pedal to brake in a rotating mode so as to simulate the deceleration process.

2. The active anti-collision simulation device for the automobile according to claim 1, wherein the simulation assembly comprises a disk mounted on an output shaft of the dc motor and a magnetic bead mounted on the disk, and the hall sensor is mounted on the disk to detect rotation of the magnetic bead.

3. The active anti-collision simulator for vehicle according to claim 1, wherein said brake pedal is mounted to an output shaft of said stepping motor through a clutch.

4. The active anti-collision simulation device for automobile according to claim 1, wherein the output shaft of the stepping motor is provided with a blade for observing the rotation of the output shaft.

5. The active collision avoidance simulation device of claim 1, wherein the execution module further comprises an audible and visual alarm.

6. The active anti-collision simulation device for an automobile according to claim 3, further comprising a display module communicatively connected to the control module for displaying vehicle speed information and front obstacle distance information.

7. The active anti-collision simulation device for an automobile according to claim 6, wherein the display module is electrically connected with a potentiometer for detecting the position of the brake pedal to display the position of the potentiometer.

8. The automobile active anti-collision simulation device according to claim 7, wherein the control module is an STM32F103C8T6 single chip microcomputer; the laser ranging sensor is a 905nm laser semiconductor laser; the display module is a 0.96-inch OLED display screen, and the type of the executive driver is a TB6600 driver.

9. The active anti-collision simulation device for the automobile according to claim 8, further comprising a power supply module, wherein the power supply module is used for reducing the voltage of 12V direct current to 5V and 3.3V through the LM2576 voltage-stabilizing chip.

10. The control method of an active collision avoidance simulation apparatus for an automobile according to claim 1,

the Hall sensor detects vehicle speed information and transmits the vehicle speed information to the control module, and the laser ranging sensor detects front obstacle distance information and transmits the front obstacle distance information to the control module;

the control module calculates a safe distance according to the received vehicle speed information and compares the received front obstacle distance information with the safe distance;

if the distance information of the front obstacle is smaller than the safe distance, the control module transmits the information to an execution driver in the execution module, the execution driver drives a stepping motor to rotate and simulates the rotation of a brake pedal, so that the vehicle speed is reduced, and the collision is avoided.

Background

The electronic technology information technology is rapidly developed, and the electronic technology is widely applied to the aspect of automobile safety.

The active safety protection in the automobile safety protection is to prevent accidents by using a sensing system for the surrounding environment before the accidents occur. The casualties of people are reduced, the occurrence of automobile safety accidents is effectively avoided, and property loss is reduced.

The Chinese invention patent (publication number: CN 204373921U) discloses an automobile active anti-collision simulation test device, wherein a control circuit is connected with an electromagnetic valve controller of an electric control starting brake system on a test bed, and the brake is realized by controlling the electromagnetic valve to act on a pneumatic brake system. However, in this simulation test device, if a person touches the brake pedal, the brake fluid pressure or the air pressure circuit is affected, and the braking effect is affected.

In addition, above-mentioned car initiative anticollision analogue test device, the cost is higher, is not suitable for the teaching of school to use.

Disclosure of Invention

The invention aims to overcome the defect that an automobile active anti-collision device in the prior art is unreasonable in design and inconvenient for students to observe, and provides an automobile active anti-collision simulation device which comprises a Hall sensor, a laser ranging sensor, a control module and an execution module; the execution module comprises an execution driver in communication connection with the control module and a stepping motor driven by the execution driver, and an output shaft of the stepping motor rotates to simulate the brake pedal to brake in a rotating mode so as to simulate the deceleration process.

When the brake pedal is touched artificially, the brake fluid or the air pressure loop can not be influenced, the artificial interference can be effectively eliminated, and the teaching progress is prevented from being influenced by the accidental touch of the student.

The invention further aims to provide a control method of the automobile active anti-collision simulation device.

The technical scheme adopted for realizing the purpose of the invention is as follows:

an automobile active anti-collision simulation device comprises a direct current motor for simulating the rotation of wheels, a Hall sensor which is assembled on an output shaft of the direct current motor through a simulation assembly and used for recording the revolution number of the direct current motor, a laser ranging sensor for detecting the distance between the laser ranging sensor and a front obstacle, a control module and an execution module;

the Hall sensor and the laser ranging sensor are in communication connection with the input end of the control module, and the execution module is in communication connection with the output end of the control module;

the execution module comprises an execution driver in communication connection with the control module and a stepping motor driven by the execution driver, and an output shaft of the stepping motor rotates to simulate the brake pedal to brake in a rotating mode so as to simulate the deceleration process.

In the above technical scheme, the analog component includes a disc mounted on the output shaft of the dc motor and a magnetic bead mounted on the disc, and the hall sensor is mounted on the disc in a fitting manner so as to detect the rotation of the magnetic bead.

In the above technical solution, the brake pedal is mounted on the output shaft of the stepping motor through a clutch.

In the above technical solution, the output shaft of the stepping motor is provided with a blade convenient for observing the rotation of the output shaft.

In the above technical solution, the execution module further includes an audible and visual alarm.

In the technical scheme, the vehicle-mounted intelligent parking system further comprises a display module, and the display module is in communication connection with the control module to display vehicle speed information and front obstacle distance information.

In the above technical solution, the display module is electrically connected to a potentiometer for detecting the pedal position to display the pedal position.

In the technical scheme, the control module is an STM32F103C8T6 single-chip microcomputer; the laser ranging sensor is a 905nm laser semiconductor laser; the display module is a 0.96-inch OLED display screen, and the type of the executive driver is a TB6600 driver.

In the technical scheme, the direct current voltage regulator further comprises a power supply module, and the power supply module is used for reducing the voltage of 12V direct current to 5V and 3.3V through the LM2576 voltage-stabilizing chip.

In another aspect of the present invention, a method for controlling the active collision avoidance simulation apparatus for a vehicle,

the Hall sensor detects vehicle speed information and transmits the vehicle speed information to the control module, and the laser ranging sensor detects front obstacle distance information and transmits the front obstacle distance information to the control module;

the control module calculates a safe distance according to the received vehicle speed information and compares the received front obstacle distance information with the safe distance;

if the distance information of the front obstacle is smaller than the safe distance, the control module transmits the information to an execution driver in the execution module, the execution driver drives a stepping motor to rotate and simulates the rotation of a brake pedal, so that the vehicle speed is reduced, and the collision is avoided.

Compared with the prior art, the invention has the beneficial effects that:

1. the invention provides an automobile active anti-collision simulation device, which comprises a Hall sensor, a laser ranging sensor, a control module and an execution module, wherein the Hall sensor is connected with the laser ranging sensor; the execution module comprises an execution driver connected with the output end of the control module in a communication mode and a stepping motor driven by the execution driver, and an output shaft of the stepping motor rotates to simulate the position change of the throttle pedal so as to simulate the speed reduction process. Because step motor control brake pedal, when the people for touching brake pedal, can not influence brake fluid or atmospheric pressure return circuit, can effectively get rid of the jamming, prevent that the unexpected touching of student from influencing the teaching progress.

2. The invention provides an automobile active anti-collision simulation device, which simulates the rotation of wheels by using a direct current motor, installs blades on an output shaft of a stepping motor to simulate the movement of a pedal, and selects a singlechip with relatively low cost, thereby reducing the cost of the simulation device, reducing the teaching expenditure and being beneficial to popularization.

Drawings

FIG. 1 shows a minimal system of a single chip;

FIG. 2 is a schematic diagram of the overall structure of the active anti-collision simulation device for an automobile;

FIG. 3 illustrates a method for controlling an active collision avoidance simulation apparatus for a vehicle;

FIG. 4 shows a Hall effect circuit;

fig. 5 shows a stepping motor driving circuit.

Detailed Description

The present invention will be described in further detail with reference to specific examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

Example 1

An automobile active anti-collision simulation device is shown in fig. 2 and comprises a direct current motor for simulating the rotation of wheels, a Hall sensor (namely a vehicle speed measuring sensor) which is assembled on an output shaft of the direct current motor through a simulation assembly and used for recording the revolution number of the direct current motor, a laser distance measuring sensor used for detecting the distance between the laser distance measuring sensor and a front obstacle, a control module and an execution module;

the Hall sensor and the laser ranging sensor are in communication connection with the input end of the control module, and the execution module is in communication connection with the output end of the control module;

the execution module comprises an execution driver in communication connection with the control module and a stepping motor driven by the execution driver, and an output shaft of the stepping motor rotates to simulate the brake pedal to brake in a rotating mode so as to simulate the deceleration process.

Particularly, the analog component includes the installation the epaxial disc of DC motor's output with install the magnetic bead on the disc, the laminating of hall sensor is installed the rotation in order to detect the magnetic bead on the disc.

A disc is installed on an output shaft of the direct current motor, a magnetic bead is installed on the disc, and the direct current motor rotates to drive the disc to rotate. When the magnetic beads on the disc approach the Hall sensor, the external magnetic field around the Hall element is increased, and the circuit outputs low level; the magnetic beads continuously rotate, the magnetic field is gradually reduced, and when the magnetic field is smaller than a set threshold value, the circuit outputs high level. The motor rotates for a circle to generate a pulse, and the number of the pulses is accumulated by adopting the external interruption of the singlechip. When the designed Hall sensor generates a pulse signal, after the pin of the connected singlechip detects a low level, the singlechip enters an interrupt service function, a variable is set, and the number of pulses is accumulated in the function every time the low level plus 1 is detected. And starting the function of the singlechip timer, setting the interruption generated every three seconds, and dividing the accumulated pulse number in three seconds by three seconds to obtain the rotating speed of the motor per second.

Specifically, the brake pedal is mounted on an output shaft of the stepping motor through a clutch and directly used for students to observe.

In the control method of the active anti-collision simulation device for the automobile, as shown in fig. 3, the hall sensor detects the speed information and transmits the speed information to the control module, and the laser ranging sensor detects the distance information of the front obstacle and transmits the distance information to the control module;

the control module calculates a safe distance according to the received vehicle speed information and compares the received front obstacle distance information with the safe distance;

if the distance information of the front obstacle is smaller than the safe distance, the control module transmits the information to an execution driver in the execution module, the execution driver drives a stepping motor to rotate and simulates the rotation of a brake pedal, so that the vehicle speed is reduced, and the collision is avoided.

According to the active anti-collision simulation device for the automobile, the direct current motor is adopted to simulate the rotation of the wheels, the speed of the automobile is simulated by the rotating speed of the output shaft of the direct current motor, and the teaching cost is reduced.

The direct current motor is in communication connection with the control module through the MOS tube, a buck converter is built by utilizing the MOS tube, and the control of the rotating speed of the direct current motor is realized by controlling the duty ratio. Specifically, the control module outputs PWM waves, and the on-off of the MOS tube is controlled by adjusting the duty ratio of the PWM waves, so that the rotating speed of the direct current motor is adjusted.

The output shaft of the stepper motor rotates to simulate the change in position of the brake pedal and thus simulate the deceleration process. When the brake pedal is touched artificially, brake fluid or atmospheric pressure return circuit can not be influenced, can effectively get rid of the jamming, prevent that the unexpected touching of student from influencing the teaching progress.

Example 2

Preferably, as shown in fig. 2, the execution module further comprises an audible and visual alarm. And sending an alarm to the driver to remind the driver to react.

Preferably, the vehicle-mounted intelligent parking system further comprises a display module which is in communication connection with the control module to display vehicle speed information and front obstacle distance information. The vehicle speed information and the front barrier distance monitored by the laser ranging sensor and the Hall sensor are displayed on the display module in real time, a driver is effectively reminded, different safety control strategies are formulated, and safe driving of a vehicle is achieved.

Preferably, the display module is electrically connected to a potentiometer for detecting the pedal position to display the position thereof. The potentiometer utilizes a slide rheostat and a resistor to divide voltage and then is connected to a PA4 pin of the single chip microcomputer, and the pin can be configured as a voltage AD conversion pin to convert a changed voltage analog quantity into a digital quantity so as to detect the position of the brake pedal.

Preferably, or in order to save cost, the output shaft of the stepping motor is provided with a blade which is convenient for observing the rotation of the output shaft, so that the rotation of the output shaft of the stepping motor is convenient to observe, and the rotation of the blade is used for simulating the movement of the throttle pedal to realize the teaching purpose.

Example 3

This embodiment is based on embodiments 1 and 2 and describes the circuit connection relationship thereof.

The control module adopts STM32F103C8T6 singlechip, and STM32F103C8T6 singlechip's numerous advantages:

firstly, the price is not expensive, and the student learning machine is suitable for students to learn.

Second, and most peripherals. STM32 possesses features including: 2 × SPI, 3 × USART, 2 × I2C, 1 × CAN, 37 × IO port, 2 × ADC, 1 × DAC and other peripherals and functions, and has extremely high integration level.

Third, rich models. The package with QFN, LQFP, BGA and the like can be selected. The ST company also provides single-chip microcomputers that can be adapted to various operating conditions.

Fourth, super priority. The 16-level programmable priority can meet various processing requirements and better process various logic relationships.

Fifth, outstanding power consumption control. The STM32 single chip microcomputer can close part of inapplicable functions, improve the speed and reduce the power consumption.

The minimum system of the single chip microcomputer is shown in fig. 1 and mainly comprises a power supply circuit, a reset circuit, a crystal oscillator circuit, a debugging and downloading interface and the like. The minimum system of the single chip microcomputer is provided with a voltage stabilizing chip and a MircoUSB interface for power supply, the problem that the RTC does not start to vibrate in the prior art is solved by adopting a low-load RTC crystal oscillation scheme, and the SWD debugging interface is adopted for facilitating debugging and downloading. The reset circuit plays an important role in the system and can reset the program when the program runs off.

The laser ranging sensor adopts a 905nm laser semiconductor laser, and is a standardized product with high integration level, micro power consumption and low weight, which can be used by various devices. The laser wavelength is 905nm, which is safe for human eyes, by adopting a metallized shell design for ensuring the electromagnetic compatibility and the standardization of a mechanical structure. The distance measurement range can reach 3.5m-1600m, the distance measurement resolution is 0.1m, and the power consumption is less than 160 mW. The sensor adopts a serial communication mode to transmit data, and the baud rate is 9600.

The laser emitting circuit comprises a pulse input circuit, a high-speed switch MOSFET, a laser emitting diode, an energy storage capacitor, a selectable current resistor and the like. This circuit completes the conversion of the electrical signal to an optical signal. The output optical signal is transmitted to a target object after being focused by a lens, and then the reflected optical signal is processed by the lens to be received by a TOF receiver.

In the circuit, a T (transmitting) pin is connected with a PA3 pin of the singlechip, and an R (receiving) pin is connected with a PA2 pin of the singlechip.

The hall sensor uses the hall effect for measurement. The Hall element ES3144 is adopted for detection, the Hall element is a semiconductor element capable of detecting a magnetic field, and can also detect metal materials in the range of the magnetic field, so that the Hall element has the advantages of accuracy in detection, approximate square wave output waveform, no need of an external voltage comparator, low power consumption and high detection frequency. When a vertical magnetic field is applied to a thin semiconductor plate which is energized, a voltage appears across the lateral sides of the plate, as shown by VH in fig. 4, which is called hall effect, and VH is called hall voltage. In the figure, working current I is conducted between C1 and C2, C1 and C2 are called current electrodes, Hall voltage VH is extracted between C3 and C4, and C3 and C4 are called sensitive electrodes.

The Hall speed measuring module adopts a Hall switch circuit which is also called as a Hall digital circuit and consists of a voltage stabilizer, a Hall chip, a differential amplifier, a Schmitt trigger and an output stage. When the external magnetic field intensity is larger, the circuit outputs low level, the magnetic induction intensity is continuously increased, and the conducting state is still kept. When the intensity of the external magnetic field is small, a high level is output. According to the design, a disc is installed on a direct current motor shaft, magnetic beads are installed on the disc, and the direct current motor rotates to drive the disc to rotate. When the magnetic beads rotate to be close to the Hall element, the external magnetic field around the Hall element is increased, and the circuit outputs a low level; when the magnetic beads continue to rotate, the external magnetic field around the Hall element is reduced, and the circuit outputs high level. And outputting a pulse every time the motor rotates one circle, capturing the pulse by the singlechip, and calculating the speed of the vehicle.

In the circuit, a DO pin of the Hall sensor is connected with a PA0 pin of the singlechip.

For automobile braking, a four-wire two-phase stepping motor is used for controlling braking, and a TB6600 driver is used for driving. The driver adopts 32-bit DSP technology, micro steps are subdivided into 16 types, the step number is 6400 steps/per revolution, the working peak value range is 2.8A-10A, the output current is totally 8 types, and the application requirements of most occasions can be met. By adopting the built-in micro-segmentation technology, the high-segmentation effect can be achieved even under the micro-segmentation condition, the operation is stable at low, medium and high speeds, and the noise is low. The protection of half current, overcurrent, overvoltage and the like is realized. As shown in fig. 5, the input signals are three in number: step pulse signal, direction level signal, enable signal. There are two methods for inputting signal interface, common anode and common cathode.

In the circuit, a PUL pin is connected with a PB12 pin of a singlechip; the DIR pin is connected with a PB13 pin of the singlechip; the EN pin is connected with a PB14 pin of the singlechip.

The base terminal of the transistor in the audible and visual alarm is connected with the PC15 terminal of the singlechip.

The display module adopts a 0.96-inch OLED display screen, and the screen has the advantages of low power consumption, clear display, low price and the like. The display module is connected with a potentiometer to display the position of the throttle pedal. The serial communication is carried out with the singlechip, the connecting wire is few, the hardware design is simple, and the errors and the interference are reduced. The screen has a wide voltage supply range, and supports 5V and 3.3V power supplies. The screen is internally provided with a boosting chip, and the screen can normally work even if the voltage is lower than 3.3V. The light emitting diodes are adopted in the screen, a backlight source is not needed, and only a place to be displayed needs to be lightened. Not only increases the reliability of use but also reduces power consumption. And an spi serial communication mode is adopted, so that the circuit is simple in wiring and convenient to use.

Because the power consumption voltage of each module in the system is different, 5V is needed to supply power to the direct current motor, 3.3V is needed to supply power to the single chip microcomputer, the OLED display screen and the laser ranging module, and 12V is needed to supply power to the stepping motor driver. The system also comprises a power supply module, wherein 12V direct current of the automobile storage battery is adopted for supplying power, and the voltage of 12V is reduced to 5V and 3.3V by utilizing the voltage stabilizing chip to supply power to each module. The LM2576 voltage-reducing switch type integrated voltage-stabilizing chip is used for converting 12V voltage into 5V voltage, 3A current can be efficiently output for a long time, a simple voltage-reducing circuit can be formed by few peripheral elements, and a reference voltage-stabilizing circuit, a thermal shutdown circuit and the like are arranged in the chip. The capacitors C1 and C2 in the voltage reduction peripheral circuit have the functions of filtering and stabilizing voltage, and the inductor L1 has the function of filtering and can store certain energy. D1 uses a schottky diode, which has a very high frequency and acts as a free-wheeling in the circuit, dissipating the back emf generated in the inductor, protecting the circuit. AMS1117 is adopted to convert 5V voltage into 3.3V voltage, the chip is low in price, the peripheral circuit is simple, the output voltage is stable, and the output current reaches 1A. The capacitor is used for absorbing noise waves in the circuit, so that the voltage output by the chip is stable, and the filter capacitor plays a role in stabilizing voltage.

In the MOS tube driving circuit, a G pin of an MOS tube is connected with a PB5 pin of the singlechip.

The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种酒店运营管理模拟教学系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!