CN108508763B - Control system and control device of multi-type simulated train based on nested track - Google Patents

Control system and control device of multi-type simulated train based on nested track Download PDF

Info

Publication number
CN108508763B
CN108508763B CN201810413244.0A CN201810413244A CN108508763B CN 108508763 B CN108508763 B CN 108508763B CN 201810413244 A CN201810413244 A CN 201810413244A CN 108508763 B CN108508763 B CN 108508763B
Authority
CN
China
Prior art keywords
track
output port
type
signal
train
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810413244.0A
Other languages
Chinese (zh)
Other versions
CN108508763A (en
Inventor
张骏驰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Baimou Industrial Co ltd
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201810413244.0A priority Critical patent/CN108508763B/en
Publication of CN108508763A publication Critical patent/CN108508763A/en
Application granted granted Critical
Publication of CN108508763B publication Critical patent/CN108508763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Train Traffic Observation, Control, And Security (AREA)
  • Electric Propulsion And Braking For Vehicles (AREA)

Abstract

本发明涉及一种基于嵌套式轨道的多类型仿真火车的控制系统及控制装置,控制系统包括:嵌套式轨道,嵌套式轨道包括:用于运行第一类型仿真火车的AB轨道和用于运行第二类型仿真火车的AC轨道,AB轨道和AC轨道共同使用一条A道轨;控制装置,控制装置包括:控制第一类型仿真火车在AB轨道上运行的控制器,控制器中集成有控制第二类型仿真火车在AC轨道行运行的控制电路;第一类型仿真火车,第一类型仿真火车根据第一输出端口和第二输出端口输出的信号在AB轨道上运行;第二类型仿真火车,根据控制器的第一输出端口和第三输出端口输出的信号在AC轨道上运行。上述系统可以使得一台控制装置控制目前所有制式的火车模型,节省成本,提高用户体验性。

Figure 201810413244

The invention relates to a control system and a control device for a multi-type simulated train based on a nested track. The control system includes: a nested track, and the nested track includes: an AB track for running a first type of simulated train and a For the AC track running the second type of simulated train, the AB track and the AC track share one A track; the control device, the control device includes: a controller for controlling the first type of simulated train to run on the AB track, the controller is integrated with a A control circuit for controlling the second type of simulated train to run on the AC track; the first type of simulated train, the first type of simulated train runs on the AB track according to the signals output by the first output port and the second output port; the second type of simulated train , operates on the AC rail according to the signals output by the first output port and the third output port of the controller. The above system enables one control device to control all current train models, saving costs and improving user experience.

Figure 201810413244

Description

Nested track-based multi-type simulation train control system and control device
Technical Field
The invention relates to the field of control of simulated train models, in particular to a control system and a control device of a multi-type simulated train based on nested tracks.
Background
As shown in fig. 1, AB is two rails used by one model of simulated train and AC is two rails used by another model of simulated train, integrating ABC together may enable more than two models of simulated trains to be run.
In the prior art, a common DCC (Direct Digital Control) controller outputs two ac square wave signals with different periods and duty ratios of 50%, and a common analog controller outputs a PWM signal, and when the two controllers share one of the rails, the analog signal system needs to be changed to match the Digital signal.
The analog controller and the DCC controller are two different products, wherein the analog controller can control an analog train, and the digital controller can control a digital train. Most of the existing n-proportion trains are analog trains, and most of the HO-proportion trains are digital trains.
Both DCC controllers and conventional analog controllers in the prior art are disposed beside the track for outputting electrical signals onto the track or a train running on the track receives signals from above the track. The analog train changes speed and running direction according to the signal, and the digital train judges the signal according to a preset DCC protocol to execute different instructions.
The electricity used by the current simulated trains running on all the tracks comes from the tracks, namely the tracks are equivalent to two electric wires, the motors and the lights are not directly connected to the wheels in the simulated trains, and the traveling direction and the speed are changed through the current direction and the voltage; the digital train is internally provided with a singlechip, square wave signals of two periods on the track can be converted into 0 or 1, and the square wave signals are decoded by the singlechip to execute corresponding actions, such as turning on a light, sounding, advancing and the like.
For this reason, how to run analog trains and digital trains on the nested tracks shown in fig. 1 is a technical problem to be solved at present.
Disclosure of Invention
The invention aims to provide a control system and a control device of a multi-type simulation train based on nested tracks, which can realize that one control device can control train models of all current systems to run on the nested tracks, and effectively save cost.
In order to achieve the purpose, the invention adopts the main technical scheme that:
a nested track based control system for a multi-type simulated train, comprising:
a nested track, the nested track comprising: an AB track for running a first type of simulated train and an AC track for running a second type of simulated train, wherein the AB track and the AC track share a single A track;
a control device, the control device comprising: the controller is used for controlling the first type simulation train to run on the AB track, and a control circuit used for controlling the second type simulation train to run on the AC track is integrated in the controller;
the first output port M1A of the controller is connected with the track A, the second output port M1B is connected with the track B, and the third output port M1C is connected with the track C;
wherein the first output port M1A and the second output port M1B output signals for controlling the operation of the first type of simulated train, and the first output port M1A and the third output port M1C output signals for controlling the operation of the second type of simulated train;
the signal output by the third output port M1C is a signal processed by the controller according to the signal output by the first output port;
a first type of simulated train running on the AB track according to signals output by the first and second output ports M1A and M1B;
a second type of simulated train that runs on the AC track according to signals output by the first output port M1A and a third output port M1C.
Optionally, the control device further comprises:
a communication module connected to the controller, the communication module for communicating with the controller by an external device to control the first type simulated train and/or the second type simulated train.
Optionally, the a track of the nested tracks comprises an a main track segment and an a programming track segment;
the B track comprises a B main track section and a B programming track section;
the first output port M1A of the controller is connected with an A main rail section, and the second output port M1B of the controller is connected with a B main rail section;
the controller is also provided with a fourth output port M2A and a fifth output port M2B;
the fourth output port M2A is connected to the A programming rail segment and the fifth output port M2B is connected to the B programming rail segment.
Alternatively, the first type simulated train may be a digital train;
the second type of simulated train may be a simulated train. In the embodiment, the first type and the second type are distance descriptions, the track gauge can be adjusted to adapt to other types according to actual needs, and signals output by the control device can meet the signal specifications of various train models in the current market.
The present embodiment is not limited to the first type and the second type, and may also be adapted to a third type of the BC track gauge, and the present embodiment is not limited thereto.
Alternatively, the track pitch of the AB track is 16.5mm, the track pitch of the AC track is 9mm, and the track pitch of the BC track is 6.5mm (the track itself in this embodiment has a certain width).
Optionally, the controller comprises: an Atmega328 singlechip;
a sixteenth pin of the Atmega328 singlechip outputs a first square wave signal corresponding to the first output port M1A and the second output port M1B, a fifth pin outputs a first enable signal, the first square wave signal and the first enable signal are both input into a first area of a control circuit, and the control circuit outputs alternating current square wave signals of the first output port M1A and the second output port M1B according to the first square wave signal and the first enable signal;
a fifteenth pin of the Atmega328 singlechip outputs a third square wave signal corresponding to the third output port M1C, a twelfth pin outputs a third enable signal, the third square wave signal and the third enable signal are both input to a third area of the control circuit, and the control circuit outputs a signal of the third output port M1C according to the third square wave signal and the third enable signal.
Optionally, the eleventh pin of the Atmega328 singlechip further outputs a second square wave signal, the seventeenth pin further outputs a second enable signal, the second square wave signal and the second enable signal are input to the second region of the control circuit, and the control circuit outputs signals of a fourth output port (M2A) and a fifth output port (M2B) according to the second square wave signal and the second enable signal;
and/or the signals of the first output port to the fifth output port are all alternating current square wave signals which meet the technical specification of the NMRA train model.
Optionally, the control circuit comprises:
the first logic circuit receives a first square wave signal and a first enable signal, the first logic circuit outputs square wave signals in the same phase and opposite directions to a first MOS tube driver, and the first MOS tube driver drives MOS tubes to output alternating current square wave signals of the first output port (M1A) and the second output port (M1B);
when a third enable signal received by the triode is high level, a third wave signal enters a second MOS tube driver through the triode, and the second MOS tube driver drives another MOS tube to output a signal of a third output port (M1C);
and/or
The first square wave signal and the third square wave signal are input into a second logic circuit and an integrated circuit integrated with a logic gate circuit and an MOS tube; the signal processed by the second logic circuit is input to the integrated circuit, and the integrated circuit outputs signals of a fourth output port (M2A) and a fifth output port (M2B).
In a second aspect, an embodiment of the present invention further provides a control device for a nested track-based multi-type simulated train, where the control device includes: the controller controls the first type simulation train to run on the AB track, and the control circuit controls the second type simulation train to run on the AC track;
a first output port M1A of the control device is connected with the track A of the nested track, a second output port M1B is connected with the track B of the nested track, and a third output port M1C is connected with the track C of the nested track;
wherein the first output port M1A and the second output port M1B output signals for controlling the operation of a first type of simulated train, and the third output port M1C output signals for controlling the operation of a second type of simulated train;
the signal output by the third output port M1C is a signal processed by the control device according to the signal output by the first output port.
Optionally, the control device is further provided with a fourth output port M2A and a fifth output port M2B;
the fourth output port M2A is connected to the A programming rail segment of the nested track, and the fifth output port M2B is connected to the B programming rail segment of the nested track.
Optionally, a communication module is integrated in the control device, an external device inputs an instruction through the communication module, and the control device controls the first type simulated train and/or the second type simulated train to run on the nested track according to the instruction.
Optionally, the communication module is bluetooth.
Has the advantages that:
the control system can enable one controller arranged beside the nested track to control train models of all systems at present to run on the nested track, for example, a digital train and a simulation train run on the nested track in parallel.
That is to say, the control system of the embodiment of the invention can realize that the HO proportion train model and the n proportion train model run together on the set track and can be controlled independently, and the two train models can run stably.
Drawings
FIG. 1 is a schematic view of nested tracks in an embodiment of the invention;
FIG. 2 is a waveform diagram of a port output of a track-coupled control device of nested tracks according to an embodiment of the present invention;
fig. 3 to fig. 5 are schematic circuit diagrams of a part of a control device according to the present invention.
Detailed Description
For a better understanding of the present invention, reference will now be made in detail to the present invention by way of specific embodiments thereof.
Example one
Referring to the nested track of fig. 1, the control system of the nested track-based multi-type simulated train of the present embodiment includes:
a nested track, the nested track comprising: an AB track for running a first type of simulated train and an AC track for running a second type of simulated train, wherein the AB track and the AC track share a single A track.
The gauge between the AC rails in this embodiment is 9mm, which is used to adapt to a train model of n scale; the gauge between the AB rails was 16.5mm, which was used to accommodate the HO scale train model described below.
The HO proportional train in this embodiment is larger in size, may be a digital train, and conforms to digital command control (DCC standard), for example, the digital controller may output ac square wave signals of two periods of 116ms and 200ms to the track according to the DCC specification, where the period 116ms represents 1 and the period 200ms represents 0. The train model with the n proportion can be a simulated train, and the simulation controller can realize reversing and speed regulation through PWM signals in two directions. The motor and the lamp light are directly connected to the wheel, and the traveling direction and speed are changed by the current direction and voltage on the track. The digital code or the single chip microcomputer is arranged in the digital code or the single chip microcomputer, alternating current square wave signals on the track can be decoded, and command actions such as turning on a light, advancing and the like can be executed after decoding.
A control device, the control device comprising: the controller is used for controlling the first type simulation train to run on the AB track, and a control circuit used for controlling the second type simulation train to run on the AC track is integrated in the controller;
the first output port M1A of the controller is connected with the track A, the second output port M1B is connected with the track B, and the third output port M1C is connected with the track C;
wherein the first output port M1A and the second output port M1B output signals for controlling the operation of the first type of simulated train, and the third output port M1C output signals for controlling the operation of the second type of simulated train;
the signal output by the third output port M1C is a signal processed by the controller according to the signal output by the first output port;
a first type of simulated train running on the AB track according to signals output by the first and second output ports M1A and M1B;
a second type of simulated train that runs on the AC track according to signals output by the first output port M1A and a third output port M1C.
In this embodiment, the port M1A outputs a high duty ratio of 50%, and if the analog train needs to travel, the port M1C outputs a duty ratio of 40%, or 60%, as shown in fig. 2. If the analog train stops, the port M1A and the port M1C output high-level duty ratio 50% of the same phase, and therefore the digital train and the analog train can run on the nested track.
In this embodiment, the duty ratio of the signal input at the M1C port may be changed greatly relative to the signal input at the M1A port, for example, the duty ratio may be changed from 2% to 50% in a step-by-step manner, or may be changed from 50% to 98% in a step-by-step manner, so that the speed of the simulated train may be controlled to continuously increase, and the simulation may be implemented or adjusted according to various requirements.
In the embodiment, the duty ratio of the input signal of the port M1C is adjusted by programming, a program is input at the electronic equipment or the fixed terminal side, and then an instruction is sent to the controller, so that the controller compiles the instruction to control the analog train or the digital train.
In an optional implementation manner, the control device may further include:
a communication module connected to the controller, the communication module for communicating with the controller by an external device to control the first type simulated train and/or the second type simulated train.
For example, the first type of simulated train of the present embodiment may be a digital train (e.g., a digital train of the HO scale); the second type of simulated train may be a simulated train (e.g., an n-scale simulated train).
The control system can be applied to the existing mainstream train models with two proportions, namely, HO proportion (1: 87) track gauge of 16.5mm and n proportion (1: 160) track gauge of 9mm, the two track gauges are overlapped to form a 3-track set rail, and the track gauge between the BC is 6.5 mm. Because the volume of the train with the n proportion is smaller, most of the trains are analog trains at present, namely, the voltage is high in speed, and vice versa; HO ratio train volume is great, and most are digital car at present, can output two kinds of periods of square wave as two kinds of different digital signals by controlling means, as shown in fig. 2, compile into the data packet transmission. After the control system is applied, trains with two proportions can be parallelly connected on the same set rail track without conflict.
Fig. 2 shows a waveform diagram of each port output, wherein the left side is in a stationary state and the right side is in an AC track driving state, i.e., a simulated train traveling state.
Further, in the specific implementation process, if the user wants to communicate with the control device of the control system through the electronic device or the fixed terminal according to the need of the user to control the simulated train to change and adjust the speed, etc., at this time, the communication module of the control device in this embodiment may be bluetooth, infrared or data communication, etc., which is not limited in this embodiment and is set as needed. For example, in the programmed track section of the nested track, the user sends the digital train or the analog train running speed or the like to the control device through the mobile terminal. Or the user sends an instruction for adjusting the analog or digital train model to the control device through the fixed computer, so that the control device sends out a signal of the nested track according to the instruction, and the analog or digital train executes the signal.
At this time, the track a in the nested track comprises a main track section a and a programming track section a;
the B track comprises a B main track section and a B programming track section;
the first output port M1A of the controller is connected with an A main rail section, and the second output port M1B of the controller is connected with a B main rail section;
the controller is also provided with a fourth output port M2A and a fifth output port M2B;
the fourth output port M2A is connected to the A programming rail segment and the fifth output port M2B is connected to the B programming rail segment.
In other embodiments, the controller may further be provided with a sixth output port M3A and a seventh output port M3B, which may input a low-voltage signal, and the like, and this embodiment is not limited thereto and may be adjusted according to actual needs.
The controller comprises a single chip microcomputer, the Bluetooth module receives instructions from external equipment (such as electronic equipment or a fixed terminal) and the single chip microcomputer analyzes the instructions and compiles the instructions into different data packets to be sent to the track.
That is, the chip machine in this embodiment can convert the information sent by the user into the information conforming to the DCC protocol, thereby enabling the above-mentioned two types of simulated train identification adjustment.
The track gauge of the AB rail shown in FIG. 1 is 16.5mm, and the track gauge of the AC rail is 9 mm.
For better illustration, as shown in fig. 2 to 5: the controller includes: an Atmega328 singlechip;
a sixteenth pin (shown as a 16-pin D1R1 in FIG. 3) of the Atmega328 singlechip outputs a first square wave signal corresponding to the first output port M1A and the second output port M1B; the fifth pin outputs a first enabling signal, the first square wave signal and the first enabling signal are input into a first area of a control circuit, and the control circuit outputs alternating current square wave signals of the first output port M1A and the second output port M1B according to the first square wave signal and the first enabling signal;
a fifteenth pin (e.g., a 15-pin D1R3 shown in fig. 3) of the Atmega328 singlechip outputs a third square wave signal corresponding to the third output port M1C, a twelfth pin outputs a third enable signal, both the third square wave signal and the third enable signal are input to a third area of a control circuit, and the control circuit outputs a signal of the third output port M1C according to the third square wave signal and the third enable signal;
the eleventh pin of the Atmega328 singlechip also outputs a second square wave signal, the seventeenth pin also outputs a second enable signal, the second square wave signal and the second enable signal are input into a second area of the control circuit, and the control circuit outputs signals of a fourth output port M2A and a fifth output port M2B according to the second square wave signal and the second enable signal;
and/or the signals of the first output port to the fifth output port are all alternating current square wave signals which meet the technical specification of the NMRA train model.
Further, the control circuit of the present embodiment (as shown in fig. 4 and 5) includes:
the first logic circuit receives a first square wave signal and a first enable signal, the first logic circuit outputs square wave signals with the same phase and the opposite direction to a first MOS tube driver, and the first MOS tube driver drives MOS tubes to output alternating-current square wave signals of the first output port M1A and the second output port M1B;
when the third enable signal received by the triode is at a high level, the third wave signal enters the second MOS transistor driver through the triode, and the second MOS transistor driver drives another MOS transistor to output a signal of the third output port M1C.
In conjunction with fig. 3 and 4:
when the Atmega328 single chip microcomputer receives a command through TTL communication and needs to send data "0", a PWM1 (a first enable signal) gives a high level, that is, the ports M1A and M1B are opened, a DIR1 (a first square wave signal) outputs a square wave with a duty ratio of 50% and a period of 200mS, the signal is firstly divided into two paths, one path of the signal is inverted twice IN a nor circuit (a first region of a control circuit) and the other path of the signal is inverted once IN the nor circuit to obtain two PWM square waves with the same phase and opposite directions, the two paths of signals respectively enter an IN pin of a MOS tube driver (a first MOS tube driver) with a serial number of IR2104S, the MOS tube driver drives the MOS tube to output an alternating current signal with a peak voltage of 200mS as an input voltage, such as ports M1A and M1B shown IN fig. 5.
Emulating instructions
1) When the control is turned on and a simulated vehicle driving instruction is not received, namely PWM1 (a first enabling signal), PWM2 (a second enabling signal) and PWM3 (a third enabling signal) are high level, DIR1 (a first square wave signal) and DIR3 (a third square wave signal) output PWM square waves with the same phase and the same period by a Timer1 clock of a single chip microcomputer, a DIR1 signal is firstly divided into two paths, wherein one path is inverted twice IN a NOR gate circuit (a first area of a control circuit) and the other path is inverted once IN the NOR gate circuit to obtain two PWM square waves with the same phase and opposite directions, the two paths of signals respectively enter an IN pin of a MOS tube driver (a first MOS tube driver) with the serial number of IR2104S and are driven by the MOS tube driver to be output, the DIR3 signal enters a collector of a triode with the serial number of 9014, and the triode is a passage because the PWM3 is high level, the DIR3 signal enters the IN pin of the MOS tube driver, and driving the corresponding mos tube output by the mos tube driver.
2) When the controller receives a command to control the simulated vehicle to drive, the controller assumes that 50% of speed is required to drive to the left, the output of DIR1 is kept unchanged, DIR3 is controlled by a variable to output PWM square waves with the duty ratio of 25%, the signals enter the collector of a triode (the right area of figure 4), the triode is a channel because the PWM3 is at a high level, the DIR3 signals enter the IN pin of a mos tube driver through the triode, and the mos tube driver drives the mos tube to output square wave signals (to the ground) with the duty ratio of 25%.
In an alternative implementation, as shown in fig. 3 and 5, the first square wave signal and the third square wave signal are input to a second logic circuit, an integrated circuit integrated with a logic gate circuit and a MOS transistor (U3 in fig. 5); the signal processed by the second logic circuit is input to the integrated circuit, and the integrated circuit outputs signals of the fourth output port M2A and the fifth output port M2B.
It should be noted that TX and RX in fig. 3 are used to connect external devices so as to input commands for controlling the analog train and the digital train.
The digital train in the embodiment is internally provided with a singlechip and an operational amplifier, and a special digital chip can be adopted to identify square wave signals, namely digital signals. Because the existing digital train can realize the simultaneous control of a plurality of trains and the simulation train can not realize the simultaneous control of a plurality of trains,
the embodiment of the invention solves the problem that vehicles with two proportions share one rail A through the set rails (shown in figure 1) of three rails, the rail B is independently used for HO proportion, and the rail C is independently used for n proportion, so that the vehicles with two proportions are independently controlled without mutual influence.
In addition, fig. 3 to fig. 5 are all drawings represented by symbols that can be recognized by a draftsman, and some abbreviated symbols in the single chip microcomputer, the integrated circuit or the logic circuit are recognized symbols in the industry.
Example two
The embodiment of the invention also provides a control device of the multi-type simulation train based on the nested track, which comprises the following components: the controller is used for controlling the first type simulation train to run on the AB track, and a control circuit used for controlling the second type simulation train to run on the AC track is integrated in the controller;
the first output port M1A of the controller is connected with the track A of the nested track, the second output port M1B is connected with the track B of the nested track, and the third output port M1C is connected with the track C of the nested track;
wherein the first output port M1A and the second output port M1B output signals for controlling the operation of a first type of simulated train, and the third output port M1C output signals for controlling the operation of a second type of simulated train;
the signal output by the third output port M1C is a signal processed by the controller according to the signal output by the first output port.
The controller in this embodiment is further provided with a fourth output port M2A and a fifth output port M2B;
the fourth output port M2A is connected to the A programming rail segment of the nested track, and the fifth output port M2B is connected to the B programming rail segment of the nested track.
In a specific implementation process, the controller of this embodiment may include a single chip, such as an Atmega328 single chip.
The 16 pins of the Atmega328 single chip microcomputer (shown in fig. 3) of the present embodiment output square wave signals corresponding to the main rail a and the main rail B, and the square wave signals are input to the port M1A and the MIB through the MOS transistor through the first region of the control circuit, and the square wave signals of the main rail C are output by the 15 pins, and are input to the port M1C through the corresponding MOS transistor through the triode;
square wave signals of the programming track A and the programming track B are output by 11 pins, and the C track running simulation vehicle does not have the programming problem; the output enable signals of the main rails A and B are output by the pin 16, the output enable signal of the main rail C is output by the pin 12, and the output enable signals of the programming rails A and B are output by the pin 17.
With specific reference to fig. 3 to 5: fig. 3 is a schematic diagram showing the integration of a single chip microcomputer, fig. 4 is a schematic diagram showing a part of the structure of a control circuit connected to the single chip microcomputer in fig. 3, and fig. 5 is a schematic diagram showing a circuit structure of connection of part of pins of the single chip microcomputer; in fig. 3 to 5, the control circuit is formed in addition to the one-chip microcomputer shown in fig. 3, and fig. 4 shows a first region in which the control circuit is formed.
Wherein, the output of DIR1 and DIR2 in FIG. 3 is a square wave signal which correspondingly connects two DIR1 and two DIR2 in FIG. 5; PWM1 in FIG. 3 and PWM3 in FIG. 3 are both connected to corresponding PWM1, PWM3 in FIG. 5;
wherein M1A, M1B, M1C, M2A, M2B, M3A, M3B shown in fig. 4 and 5 are all ports connecting nested tracks;
the nested track of the present embodiment includes a main track segment, a programming track segment, or a low voltage track segment, etc.
In fig. 5, DIR1 and DIR2 on the left side are inverted by a gate circuit and input to an integrated circuit.
It should be noted that fig. 3 to fig. 5 are schematic structural diagrams of an actual single chip microcomputer, where the schematic structural diagrams include serial numbers, and information about each resistor and voltage, PWM1, PWM2, PWM3, and the like in the diagrams correspond to enable signals in the above embodiments, and are not square wave signals, and D1R1, DIR2, and DIR3 in the diagrams correspond to square wave signals.
Further, a communication module is integrated in the controller, an external device inputs instructions through the communication module, and the controller controls the first type simulation train and/or the second type simulation train to run on the nested track according to the instructions.
For example, the communication module may be bluetooth, infrared, wireless, etc. The embodiment is provided with a Bluetooth module which is used for converting 5V into 3.3V low voltage and is connected with the singlechip for matching.
After the controller of the embodiment is connected with the nested track, the function that a 1: 87 HO ratio train model and a 1: 160 n ratio train model run together on the nested track and can be controlled independently can be realized, and the function is initiated in related products globally.
The specific control method can be as follows: when the n-proportion train does not run, the C rail is matched with the A rail to output the square wave signals with the same frequency and the same phase, when the n-proportion train needs to advance, the C rail outputs the square wave signals with the same frequency and the advanced phase as the A rail, otherwise, when the n-proportion train needs to retreat, the C rail outputs the square wave signals with the same frequency and the delayed phase as the A rail, and meanwhile, in order to simulate reality, the signal phase is changed into a change process, so that the train runs more smoothly.
It can be understood that the controller of the present embodiment has 5 output ports, i.e., M1A, M1B, M1C, M2A, and M2B;
wherein M1A and M1B are digitally controlled for 16.5 gauge trains, and M1A and M1C are controlled for 9mm gauge simulated trains by the following method.
The invention can realize the complementary interference operation of vehicles with two track gauges on the set track consisting of 3 tracks.
In the prior art, each simulated train corresponds to one controller and cannot be used simultaneously. The controller mainly changes the output mode of the analog signal, realizes digital simulation integration, has three main outputs, and further can output an alternating-current square wave signal according to the DCC specification. The third output port of the controller is matched with the square wave signal of the A rail to adjust the phase of the C rail, the phase advance simulates the forward running of the vehicle, the phase lag simulates the reverse running of the vehicle, and the advancing speed or the lagging speed is higher.
Specifically, the following are mentioned: reference numerals 1 to 28 shown in fig. 3 refer to pin numbers of the single chip microcomputer, and reference numerals 1 to 20 of L298P in fig. 5 refer to connection numbers of the integrated circuit, which are not repeated.
Finally, it should be noted that: the above-mentioned embodiments are only used for illustrating the technical solution of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1.一种基于嵌套式轨道的多类型仿真火车的控制系统,其特征在于,包括:1. a control system based on the multi-type simulation train of nested track, is characterized in that, comprises: 嵌套式轨道,所述嵌套式轨道包括:用于运行第一类型仿真火车的AB轨道和用于运行第二类型仿真火车的AC轨道,其中所述AB轨道和AC轨道共同使用一条A道轨;A nested track, the nested track includes: an AB track for running a first type of simulated train and an AC track for running a second type of simulated train, wherein the AB track and the AC track share one A track rail; 控制装置,所述控制装置包括:控制第一类型仿真火车在AB轨道上运行的控制器,所述控制器中集成有控制第二类型仿真火车在AC轨道上运行的控制电路;a control device, the control device comprises: a controller for controlling the first type of simulated train to run on the AB track, and a control circuit for controlling the second type of simulated train to run on the AC track is integrated in the controller; 所述控制器的第一输出端口(M1A)连接A道轨、第二输出端口(M1B)连接B道轨,第三输出端口(M1C)连接C道轨;The first output port (M1A) of the controller is connected to the A track, the second output port (M1B) is connected to the B track, and the third output port (M1C) is connected to the C track; 其中,所述第一输出端口(M1A)和第二输出端口(M1B)输出控制所述第一类型仿真火车运行的信号,所述第一输出端口(M1A)和第三输出端口(M1C)输出控制第二类型仿真火车运行的信号;Wherein, the first output port (M1A) and the second output port (M1B) output signals for controlling the operation of the first type of simulated train, and the first output port (M1A) and the third output port (M1C) output A signal that controls the operation of the second type of simulated train; 所述第三输出端口(M1C)输出的信号为所述控制器根据所述第一输出端口输出的信号进行处理后的信号;The signal output by the third output port (M1C) is a signal processed by the controller according to the signal output by the first output port; 第一类型仿真火车,所述第一类型仿真火车根据所述第一输出端口(M1A)和第二输出端口(M1B)输出的信号在所述AB轨道上运行;A first type of simulated train, the first type of simulated train runs on the AB track according to the signals output by the first output port (M1A) and the second output port (M1B); 第二类型仿真火车,所述第二类型仿真火车根据所述第一输出端口(M1A)和第三输出端口(M1C)输出的信号在所述AC轨道上运行;A second type of simulated train running on the AC track according to the signals output by the first output port (M1A) and the third output port (M1C); 所述嵌套式轨道中的A道轨包括A主轨段和A编程轨段;The A track in the nested track includes an A main track segment and an A programming track segment; B道轨包括B主轨段和B编程轨段;B track includes B main track segment and B programming track segment; 所述控制器的第一输出端口(M1A)连接A主轨段,所述控制器的第二输出端口(M1B)连接B主轨段;The first output port (M1A) of the controller is connected to the A main rail segment, and the second output port (M1B) of the controller is connected to the B main rail segment; 所述控制器还设置有第四输出端口(M2A)和第五输出端口(M2B);The controller is further provided with a fourth output port (M2A) and a fifth output port (M2B); 所述第四输出端口(M2A)连接所述A编程轨段,所述第五输出端口(M2B)连接所述B编程轨段。The fourth output port (M2A) is connected to the A programming track segment, and the fifth output port (M2B) is connected to the B programming track segment. 2.根据权利要求1所述的控制系统,其特征在于,所述控制装置还包括:2. The control system according to claim 1, wherein the control device further comprises: 连接所述控制器的通信模块,所述通信模块用于外部设备与所述控制器通信,以控制所述第一类型仿真火车和/或第二类型仿真火车。A communication module connected to the controller, the communication module is used for an external device to communicate with the controller to control the first type simulated train and/or the second type simulated train. 3.根据权利要求2所述的控制系统,其特征在于,所述第一类型仿真火车为数码火车;3. The control system according to claim 2, wherein the first type of simulated train is a digital train; 第二类型仿真火车为模拟火车。The second type of simulated train is a simulated train. 4.根据权利要求3所述的控制系统,其特征在于,AB轨道的轨距为16.5mm,AC轨道的轨距为9mm,BC轨道的轨距为6.5mm。4 . The control system according to claim 3 , wherein the gauge of the AB track is 16.5 mm, the gauge of the AC track is 9 mm, and the gauge of the BC track is 6.5 mm. 5 . 5.根据权利要求3或4所述的控制系统,其特征在于,所述控制器包括:Atmega328单片机;5. The control system according to claim 3 or 4, wherein the controller comprises: an Atmega328 single-chip microcomputer; 所述Atmega328单片机的第十六引脚输出对应所述第一输出端口(M1A)和所述第二输出端口(M1B)的第一方波信号,第五引脚输出第一使能信号,所述第一方波信号和所述第一使能信号均输入到控制电路的第一区域中,控制电路根据所述第一方波信号和所述第一使能信号输出所述第一输出端口(M1A)和所述第二输出端口(M1B)的交流方波信号;The sixteenth pin of the Atmega328 microcontroller outputs the first square wave signal corresponding to the first output port (M1A) and the second output port (M1B), and the fifth pin outputs the first enable signal, so the Both the first square wave signal and the first enable signal are input into the first area of the control circuit, and the control circuit outputs the first output port according to the first square wave signal and the first enable signal (M1A) and the AC square wave signal of the second output port (M1B); 所述Atmega328单片机的第十五引脚输出对应所述第三输出端口(M1C)的第三方波信号,第十二引脚输出第三使能信号,所述第三方波信号和所述第三使能信号均输入到控制电路的第三区域,所述控制电路根据所述第三方波信号和所述第三使能信号输出所述第三输出端口(M1C)的信号。The fifteenth pin of the Atmega328 microcontroller outputs a third-party wave signal corresponding to the third output port (M1C), and the twelfth pin outputs a third enable signal, the third-party wave signal and the third The enable signals are all input to the third area of the control circuit, and the control circuit outputs the signal of the third output port (M1C) according to the third wave signal and the third enable signal. 6.根据权利要求5所述的控制系统,其特征在于,所述Atmega328单片机的第十一引脚还输出第二方波信号,第十七引脚还输出第二使能信号,所述第二方波信号和所述第二使能信号输入到所述控制电路的第二区域,所述控制电路根据所述第二方波信号和第二使能信号输出第四输出端口(M2A)和第五输出端口(M2B)的信号;6. The control system according to claim 5, wherein the eleventh pin of the Atmega328 single-chip microcomputer also outputs the second square wave signal, the seventeenth pin also outputs the second enable signal, and the The second square wave signal and the second enable signal are input to the second area of the control circuit, and the control circuit outputs the fourth output port (M2A) and the signal of the fifth output port (M2B); 和/或,所述第一输出端口至所述第五输出端口的信号均为符合NMRA火车模型技术规范的交流方波信号。And/or, the signals from the first output port to the fifth output port are all AC square wave signals conforming to the technical specifications of the NMRA train model. 7.根据权利要求6所述的控制系统,其特征在于,所述控制电路包括:7. The control system according to claim 6, wherein the control circuit comprises: 接收第一方波信号和第一使能信号的第一逻辑电路,所述第一逻辑电路输出同相位反方向的方波信号至第一MOS管驱动器,所述第一MOS管驱动器驱动MOS管输出所述第一输出端口(M1A)和所述第二输出端口(M1B)的交流方波信号;A first logic circuit that receives the first square wave signal and the first enable signal, the first logic circuit outputs the square wave signal with the same phase and opposite direction to the first MOS transistor driver, and the first MOS transistor driver drives the MOS transistor outputting the AC square wave signal of the first output port (M1A) and the second output port (M1B); 三极管接收的第三使能信号为高电平时,第三方波信号通过三极管进入第二MOS管驱动器,所述第二MOS管驱动器驱动另一MOS管输出第三输出端口(M1C)的信号;When the third enable signal received by the triode is at a high level, the third-party wave signal enters the second MOS tube driver through the triode, and the second MOS tube driver drives another MOS tube to output the signal of the third output port (M1C); 和/或,and / or, 第一方波信号和第三方波信号输入到第二逻辑电路、集成有逻辑门电路和MOS管的集成电路;经过第二逻辑电路处理后的信号输入所述集成电路,所述集成电路输出第四输出端口(M2A)和第五输出端口(M2B)的信号。The first square wave signal and the third-party wave signal are input to the second logic circuit, the integrated circuit integrating the logic gate circuit and the MOS transistor; the signal processed by the second logic circuit is input to the integrated circuit, and the integrated circuit outputs the first square wave signal. Signals of the fourth output port (M2A) and the fifth output port (M2B). 8.一种基于嵌套式轨道的多类型仿真火车的控制装置,其特征在于,8. a kind of control device based on the multi-type simulation train of nested track, it is characterised in that, 所述控制装置包括:控制第一类型仿真火车在AB轨道上运行的控制器,控制第二类型仿真火车在AC轨道上运行的控制电路;The control device includes: a controller for controlling the first type of simulated train to run on the AB track, and a control circuit for controlling the second type of simulated train to run on the AC track; 所述控制装置的第一输出端口(M1A)连接所述嵌套式轨道的A道轨、第二输出端口(M1B)连接所述嵌套式轨道的B道轨,第三输出端口(M1C)连接所述嵌套式轨道的C道轨;The first output port (M1A) of the control device is connected to the A track of the nested track, the second output port (M1B) is connected to the B track of the nested track, and the third output port (M1C) connecting the C-rails of the nested rails; 其中,所述第一输出端口(M1A)和第二输出端口(M1B)输出控制第一类型仿真火车运行的信号,所述第三输出端口(M1C)输出控制第二类型仿真火车运行的信号;Wherein, the first output port (M1A) and the second output port (M1B) output a signal for controlling the operation of the first type of simulated train, and the third output port (M1C) outputs a signal for controlling the operation of the second type of simulated train; 所述第三输出端口(M1C)输出的信号为所述控制装置根据所述第一输出端口输出的信号进行处理后的信号;The signal output by the third output port (M1C) is a signal processed by the control device according to the signal output by the first output port; 所述控制装置还设置有第四输出端口(M2A)和第五输出端口(M2B);The control device is further provided with a fourth output port (M2A) and a fifth output port (M2B); 所述第四输出端口(M2A)连接所述嵌套式轨道的A编程轨段,所述第五输出端口(M2B)连接所述嵌套式轨道的B编程轨段。The fourth output port (M2A) is connected to the A programming track segment of the nested track, and the fifth output port (M2B) is connected to the B programming track segment of the nested track. 9.根据权利要求8所述的控制装置,其特征在于,9. The control device according to claim 8, characterized in that: 所述控制装置中集成有通信模块,外部设备通过通信模块输入指令,所述控制装置根据所述指令控制所述第一类型仿真火车和/或第二类型仿真火车在嵌套式轨道上运行。A communication module is integrated in the control device, and an external device inputs an instruction through the communication module, and the control device controls the first type of simulated train and/or the second type of simulated train to run on the nested track according to the instruction.
CN201810413244.0A 2018-05-03 2018-05-03 Control system and control device of multi-type simulated train based on nested track Active CN108508763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810413244.0A CN108508763B (en) 2018-05-03 2018-05-03 Control system and control device of multi-type simulated train based on nested track

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810413244.0A CN108508763B (en) 2018-05-03 2018-05-03 Control system and control device of multi-type simulated train based on nested track

Publications (2)

Publication Number Publication Date
CN108508763A CN108508763A (en) 2018-09-07
CN108508763B true CN108508763B (en) 2021-04-23

Family

ID=63399545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810413244.0A Active CN108508763B (en) 2018-05-03 2018-05-03 Control system and control device of multi-type simulated train based on nested track

Country Status (1)

Country Link
CN (1) CN108508763B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5564657A (en) * 1994-11-16 1996-10-15 Westinghouse Air Brake Company Electronically controlled locomotive throttle controller including remote multiple unit throttle control
CN201503351U (en) * 2009-09-18 2010-06-09 西南交通大学 A fixed rolling test bench with two locomotives accompanying each other
CN103680283A (en) * 2013-12-31 2014-03-26 南京理工大学 Multifunctional decoding controller of urban rail transit operation safety analog sandboxie
CN103698140A (en) * 2013-12-11 2014-04-02 中南大学 Dynamic simulation test system for ensuring running safety of train on railway bridge under earthquake
JP2014125205A (en) * 2012-12-27 2014-07-07 Daido Signal Co Ltd Railroad crossing control circuit
CN103956087A (en) * 2014-04-25 2014-07-30 南京理工大学 Headstock decoding controller of urban rail traffic operation safety simulation sand table
CN203773770U (en) * 2013-12-13 2014-08-13 广州市地下铁道总公司 Safety control simulation sand table system of urban rail transit operation train
CN104166358A (en) * 2014-08-14 2014-11-26 南京理工大学 Command encoding controller of urban rail transit operation safety simulation sand table
JP2016174688A (en) * 2015-03-19 2016-10-06 株式会社井門コーポレーション Railway model vehicle and control device for railway model vehicle mounted on the vehicle

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5564657A (en) * 1994-11-16 1996-10-15 Westinghouse Air Brake Company Electronically controlled locomotive throttle controller including remote multiple unit throttle control
CN201503351U (en) * 2009-09-18 2010-06-09 西南交通大学 A fixed rolling test bench with two locomotives accompanying each other
JP2014125205A (en) * 2012-12-27 2014-07-07 Daido Signal Co Ltd Railroad crossing control circuit
CN103698140A (en) * 2013-12-11 2014-04-02 中南大学 Dynamic simulation test system for ensuring running safety of train on railway bridge under earthquake
CN203773770U (en) * 2013-12-13 2014-08-13 广州市地下铁道总公司 Safety control simulation sand table system of urban rail transit operation train
CN103680283A (en) * 2013-12-31 2014-03-26 南京理工大学 Multifunctional decoding controller of urban rail transit operation safety analog sandboxie
CN103956087A (en) * 2014-04-25 2014-07-30 南京理工大学 Headstock decoding controller of urban rail traffic operation safety simulation sand table
CN104166358A (en) * 2014-08-14 2014-11-26 南京理工大学 Command encoding controller of urban rail transit operation safety simulation sand table
JP2016174688A (en) * 2015-03-19 2016-10-06 株式会社井門コーポレーション Railway model vehicle and control device for railway model vehicle mounted on the vehicle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
城市轨道交通运营安全模拟沙盘列车模型控制系统的设计;陈岳剑等;《城市轨道交通研究》;20151231;第57-61页 *

Also Published As

Publication number Publication date
CN108508763A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN101603843B (en) Passenger car CAN bus digital instrument test system
CN111505963A (en) Semi-physical simulation system and method for ground power supply system of maglev train
CN205334836U (en) A teaching experiment device for servo motor speed control
CN106535412B (en) The digital simulation light adjusting circuit that a kind of port shares
CN103680283A (en) Multifunctional decoding controller of urban rail transit operation safety analog sandboxie
CN105594152A (en) Communication apparatus and motor control apparatus
CN108508763B (en) Control system and control device of multi-type simulated train based on nested track
CN203588023U (en) Electric servo mechanism based on ARM controller
CN111857209A (en) A wireless remote control smart car
CN206272535U (en) A kind of servo driving circuit
CN203911823U (en) Ethernet-based electromotor controller and control system
CN202794931U (en) Steering engine controller
CN106610595A (en) Intelligent steering engine and robot arm control system
CN105958864A (en) Ultrasonic motor control system and control method thereof
CN104360617A (en) Motor control method
CN103956087B (en) A kind of headstock decode controller of city rail traffic operation security simulation sand table
CN207571568U (en) Control system, control chip and robot
CN104601061A (en) Ethernet-based motor controller and control system
CN219066020U (en) Smart car based on wireless voice remote control
JP5244684B2 (en) Automatic model train driving device
CN201477412U (en) Fully-digital direct current servo drive
CN204707062U (en) A kind of motor control assembly
CN208459012U (en) A kind of bench test engine charge resistance control system
CN219039604U (en) Circuit for lifting electronic screen
CN111830910A (en) Method and system for realizing multi-axis synchronous motion controller based on PWM

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250102

Address after: No. 208, Chang'an Zhen'an Middle Road, Chang'an Town, Dongguan City, Guangdong Province 523000

Patentee after: Dongguan Baimou Industrial Co.,Ltd.

Country or region after: China

Address before: 100071 Building 2, Sanli, Xinhua Street, Fengtai District, Beijing 2008

Patentee before: Zhang Junchi

Country or region before: China

TR01 Transfer of patent right