Train simulation device
By designing a communication simulation device using a microcontroller and a serial port, the risk and troublesome problems of manual operation in the prior art are solved, and efficient and safe train passing simulation is achieved.
Patent Information
- Application Number
- CN202421655384.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-14
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2034-07-14
AI Technical Summary
In the prior art, manual up-and-drag wheel axle simulator is required, which leads to troublesome and dangerous operation, and it is impossible to efficiently simulate the real-time situation of the train passing on the railway.
A train simulation device is designed, using microcontroller technology to output PWM waveform similar to sine wave simulated magnetic steel signals, and output vehicle number information corresponding to the simulated magnetic steel signals through the serial communication module to avoid manual operation.
It effectively simulates the real-time situation of trains passing on railways while ensuring personnel safety, improves the accuracy and safety of simulation, and is suitable for simulating trains of various speeds and models.
Smart Images

Figure CN223022786U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of simulation devices, in particular to a train simulation device. Background Art
[0002] In order to obtain the real-time situation of a train passing on a railway track, generally four axle sensors are installed on the railway track in sequence, two in a group. One group is installed far away as the start-up sensor, and the other group is installed near the trackside equipment as the trackside sensor. Currently, in order to simulate a passing train, a wheel axle simulator is required to send signals to the sensors at the trackside, and it is necessary to manually go onto the track to knock on the wheel axle simulator. This is not only troublesome but also dangerous. Content of the Utility Model
[0003] By providing a train simulation device, the utility model solves the technical problem in the prior art that it is necessary to manually go onto the track to knock on the wheel axle simulator, and achieves the technical effect of efficiently simulating the real-time situation of a train passing on a railway track while ensuring the safety of personnel.
[0004] The utility model provides a train simulation device, including: a first single-chip microcomputer, a switch component, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a first capacitor, a second capacitor, an operational amplifier and a serial communication module; the signal input end of the first single-chip microcomputer is connected to the signal output end of the switch component; the signal output end of the first single-chip microcomputer is connected to the first end of the first resistor; the second end of the first resistor is connected to the first end of the second resistor; the second end of the second resistor is connected to the first end of the third resistor; the second end of the third resistor is connected to the negative pole of the operational amplifier; the first end of the first capacitor is connected between the first resistor and the second resistor, and the second end of the first capacitor is grounded; the first end of the second capacitor is connected between the second resistor and the third resistor, and the second end of the second capacitor is grounded; the first end of the fourth resistor is connected to the negative pole of the operational amplifier, and the second end of the fourth resistor is connected to the output end of the operational amplifier; the first end of the fifth resistor is connected to the power supply, the second end of the fifth resistor is connected to the first end of the sixth resistor, and the second end of the sixth resistor is grounded; the first end of the seventh resistor is connected to the negative pole of the operational amplifier, and the second end of the seventh resistor is connected between the fifth resistor and the sixth resistor; the positive pole of the operational amplifier is grounded; the serial output end of the first single-chip microcomputer is connected to the serial input end of the serial communication module.
[0005] Specifically, it further includes: a crystal oscillator, a third capacitor and a fourth capacitor; the first end of the crystal oscillator is connected to the first crystal oscillator terminal of the first single-chip microcomputer, and the second end of the crystal oscillator is connected to the second crystal oscillator terminal of the first single-chip microcomputer; the first end of the third capacitor is connected to the first end of the crystal oscillator, and the second end of the third capacitor is grounded; the first end of the fourth capacitor is connected to the second end of the crystal oscillator, and the second end of the fourth capacitor is grounded.
[0006] Specifically, the serial communication module includes: a second single-chip microcomputer, a first signal converter and a second signal converter; the serial port output terminal of the first single-chip microcomputer is connected to the serial port input terminal of the first signal converter, and the serial port output terminal of the first signal converter is connected to the serial port input terminal of the second single-chip microcomputer; the serial port output terminal of the second single-chip microcomputer is connected to the serial port input terminal of the second signal converter.
[0007] One or more technical solutions provided in the present invention have at least the following technical effects or advantages:
[0008] Adopting the single-chip microcomputer technology, by outputting PWM, a waveform similar to a sine wave is generated to simulate the output of the magnetic steel signal. At the same time, the vehicle number information corresponding to the simulated magnetic steel signal is output through the serial communication module, effectively avoiding the situation in the prior art where it is necessary to manually tap the axle simulator on the track. In addition, the present invention can set input parameters according to its own needs to simulate various speeds and various types of trains, and sequentially give the signal sequence when the train passes through the sensor, greatly improving the applicability. Description of the Drawings
[0009] Figure 1 It is the circuit diagram of the first single-chip microcomputer U1 part in the train simulation device provided by the embodiment of the present invention;
[0010] Figure 2 It is the circuit diagram of the PWM waveform output part for simulating the magnetic steel signal in the train simulation device provided by the embodiment of the present invention;
[0011] Figure 3 It is the circuit diagram of the serial communication module part in the train simulation device provided by the embodiment of the present invention. Specific Embodiment
[0012] The embodiment of the present invention provides a train simulation device, which solves the technical problem in the prior art that it is necessary to manually tap the axle simulator on the track, and realizes the technical effect of efficiently simulating the real-time situation of the train passing on the railway on the premise of ensuring personnel safety.
[0013] In order to better understand the above technical solutions, the above technical solutions will be described in detail below in conjunction with the accompanying drawings of the specification and specific embodiments.
[0014] As Figure 1 and Figure 2 shown, the train simulation device provided by the embodiment of the present utility model includes: a first single-chip microcomputer U1, a switch component, a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, a first capacitor C1, a second capacitor C2, an operational amplifier, and a serial communication module; the signal input end of the first single-chip microcomputer U1 is connected to the signal output end of the switch component; the signal output end of the first single-chip microcomputer U1 is connected to the first end of the first resistor R1; the second end of the first resistor R1 is connected to the first end of the second resistor R2; the second end of the second resistor R2 is connected to the first end of the third resistor R3; the second end of the third resistor R3 is connected to the negative pole of the operational amplifier; the first end of the first capacitor C1 is connected between the first resistor R1 and the second resistor R2, and the second end of the first capacitor C1 is grounded; the first end of the second capacitor C2 is connected between the second resistor R2 and the third resistor R3, and the second end of the second capacitor C2 is grounded; the first end of the fourth resistor R4 is connected to the negative pole of the operational amplifier, and the second end of the fourth resistor R4 is connected to the output end of the operational amplifier; the first end of the fifth resistor R5 is connected to the power supply, the second end of the fifth resistor R5 is connected to the first end of the sixth resistor R6, and the second end of the sixth resistor R6 is grounded; the first end of the seventh resistor R7 is connected to the negative pole of the operational amplifier, and the second end of the seventh resistor R7 is connected between the fifth resistor R5 and the sixth resistor R6; the positive pole of the operational amplifier is grounded; the serial port output end of the first single-chip microcomputer U1 is connected to the serial port input end of the serial communication module. The power supply end of the first single-chip microcomputer U1 is connected to the power supply, and the grounding end of the first single-chip microcomputer U1 is grounded. The output end of the operational amplifier outputs the PWM waveform of the simulated magnet steel signal, and the serial port output end of the serial communication module outputs the car number information corresponding to the PWM waveform of the simulated magnet steel signal.
[0015] It should be noted here that in this embodiment, there are two-way PWM waveforms of the magnet steel signal output, and these two-way PWM waveforms of the magnet steel signal output are output through the signal connector JP. Among them, the PWM 1 waveform output of the first-way magnet steel signal is composed of the first resistor R1, the second resistor R2, the third resistor R3, the first capacitor C1, the second capacitor C2, the fourth resistor R4, the fifth resistor R5, the sixth resistor R6, the seventh resistor R7, and the operational amplifier U5. The PWM 2 waveform output of the second-way magnet steel signal is composed of the eighth resistor R8, the ninth resistor R9, the tenth resistor R10, the fifth capacitor C5, the sixth capacitor C6, the eleventh resistor R11, the twelfth resistor R12, the thirteenth resistor R13, the fourteenth resistor R14, and the operational amplifier U6. The specific structure of the PWM 2 waveform output of the second-way magnet steel signal is the same as that of the PWM 1 waveform output of the first-way magnet steel signal, and will not be elaborated here.
[0016] Specifically describe the structure of the embodiment of the present utility model, which further includes: crystal oscillator Y1, third capacitor C3 and fourth capacitor C4; the first end of the crystal oscillator Y1 is connected to the first crystal oscillator terminal of the first single-chip microcomputer U1, and the second end of the crystal oscillator Y1 is connected to the second crystal oscillator terminal of the first single-chip microcomputer U1; the first end of the third capacitor C3 is connected to the first end of the crystal oscillator Y1, and the second end of the third capacitor C3 is grounded; the first end of the fourth capacitor C4 is connected to the second end of the crystal oscillator Y1, and the second end of the fourth capacitor C4 is grounded.
[0017] As Figure 3 shown, specifically describe the structure of the serial communication module. The serial communication module includes: second single-chip microcomputer U3, first signal converter J2 and second signal converter P6; the serial port output terminal of the first single-chip microcomputer U1 is connected to the serial port input terminal of the first signal converter J2, and the serial port output terminal of the first signal converter J2 is connected to the serial port input terminal of the second single-chip microcomputer U3; the serial port output terminal of the second single-chip microcomputer U3 is connected to the serial port input terminal of the second signal converter P6. The power supply terminal of the second single-chip microcomputer U3 is connected to the power supply, the grounding terminal of the second single-chip microcomputer U3 is grounded, and the capacitor terminal of the second single-chip microcomputer U3 is connected to a capacitor.
[0018] In this embodiment, the model of the first single-chip microcomputer U1 is STC12C5616AD, the model of the second single-chip microcomputer U3 is MAX232, the model of the operational amplifier is TLC227, the model of the first signal converter J2 is XH-2.54-2, and the model of the second signal converter P6 is DB9.
[0019] The working process of the embodiment of the present utility model is as follows:
[0020] 1. Connect a 220V power cord to the analog device;
[0021] 2. Connect one end of the magnetic steel signal line to the magnetic steel output interface of the analog device, and the other end to the acquisition device; connect one end of the serial port line to the vehicle number output interface of the analog device, and the other end to the acquisition device;
[0022] 3. Press the power switch and then press the start vehicle connection switch S1. After pressing the start vehicle connection switch S1, a low-level signal is given to the P2.2 pin of the first single-chip microcomputer (STC12C5616AD) U1. Then, the internal part of the first single-chip microcomputer U1 enters the waveform simulation process. The simulated square waveform is output as the waveform of PWM 1 through the P3.5 pin of the first single-chip microcomputer U1, and the waveform of PWM2 is output through the P2.4 pin of the first single-chip microcomputer U1. The PWM 1 waveform signal output by the first single-chip microcomputer U1 is shunted through the first resistor R1, the second resistor R2, the third resistor R3, the first capacitor C1, and the second capacitor C2, and then enters the fourth resistor R4 and the seventh resistor R7 and the operational amplifier (TLC227) U5 respectively to process, filter, and amplify the PWM 1 simulated vehicle passing waveform signal, and the OUT1 signal is output through the 8th pin of the operational amplifier U5. At the same time, the PWM 2 waveform signal output by the first single-chip microcomputer U1 is shunted through the eighth resistor R8, the ninth resistor R9, the tenth resistor R10, the fifth capacitor C5, and the sixth capacitor C6, and then enters the eleventh resistor R11 and the fourteenth resistor R14 and the operational amplifier (TLC227) U6 respectively to process, filter, and amplify the PWM 2 simulated vehicle passing waveform signal, and the OUT2 signal is output through the 14th pin of the operational amplifier U6. The amplified waveforms OUT1 and OUT2 are connected and output through the JP port. At the same time, the first single-chip microcomputer U1 enters the serial port chip (MAX232) U3 through the read signal of pin 2 and the write signal of pin 1 of J2 to convert the transmitted data signal into the RS-232 standard level, and receives the data signal from the RS-232 standard level of the read signal of pin 2 and the write signal of pin 3 of P6, and then converts it into the TTL / CMOS standard level to realize the output of the vehicle number information corresponding to the PWM waveform of the simulated magnetic steel signal.
[0023] The train simulation device provided by the embodiment of the present invention can output the waveform of the magnetic steel signal when simulating the passing of a vehicle. There are 2 magnetic steel signal lights and 1 power indicator light to indicate the working state of the simulator. There is a power switch and a start vehicle connection switch, with simple operation and convenient use. Moreover, in order to meet the various different needs of customers, parameters can be set according to their own needs. The parameters that can be set include: vehicle speed, distance between magnetic steels, number of simulated vehicles, vehicle type, vehicle number, etc.
[0024] Details not described in the embodiments of the present invention are all well-known technologies in the technical field. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the purpose and scope of the technical solutions of the present invention, and they should all be covered within the scope of the claims of the present invention.
Claims
1. A train simulation device, characterized in that: include: A first single-chip microcomputer, a switch component, a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a first capacitor, a second capacitor, an operational amplifier and a serial communication module; the signal input end of the first single-chip microcomputer is connected to the signal output end of the switch component; the signal output end of the first single-chip microcomputer is connected to the first end of the first resistor; the second end of the first resistor is connected to the first end of the second resistor; the second end of the second resistor is connected to the first end of the third resistor; the second end of the third resistor is connected to the negative electrode of the operational amplifier; the first end of the first capacitor is connected between the first resistor and the second resistor, and the second end of the first capacitor is grounded ; The first end of the second capacitor is connected between the second resistor and the third resistor, and the second end of the second capacitor is grounded; the first end of the fourth resistor is connected to the negative electrode of the operational amplifier, and the second end of the fourth resistor is connected to the output end of the operational amplifier; the first end of the fifth resistor is connected to the power supply, the second end of the fifth resistor is connected to the first end of the sixth resistor, and the second end of the sixth resistor is grounded; the first end of the seventh resistor is connected to the negative electrode of the operational amplifier, and the second end of the seventh resistor is connected between the fifth resistor and the sixth resistor; the positive electrode of the operational amplifier is grounded; the serial port output end of the first single-chip microcomputer is connected to the serial port input end of the serial communication module.
2. The train simulation device according to claim 1, characterized in that: Also includes: A crystal oscillator, a third capacitor and a fourth capacitor; the first end of the crystal oscillator is connected to the first crystal oscillator end of the first single-chip microcomputer, and the second end of the crystal oscillator is connected to the second crystal oscillator end of the first single-chip microcomputer; the first end of the third capacitor is connected to the first end of the crystal oscillator, and the second end of the third capacitor is grounded; the first end of the fourth capacitor is connected to the second end of the crystal oscillator, and the second end of the fourth capacitor is grounded.
3. The train simulation device according to claim 1 or 2, characterized in that: The serial port communication module includes: a second single-chip microcomputer, a first signal converter and a second signal converter; the serial port output end of the first single-chip microcomputer is connected to the serial port input end of the first signal converter, and the serial port output end of the first signal converter is connected to the serial port input end of the second single-chip microcomputer; the serial port output end of the second single-chip microcomputer is connected to the serial port input end of the second signal converter.