CN108508763B - Nested track-based multi-type simulation train control system and control device - Google Patents

Nested track-based multi-type simulation train control system and control device 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
train
type
output
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.)
Individual
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

The invention relates to a control system and a control device of a multi-type simulation train based on nested tracks, wherein the control system comprises: nested track, nested track includes: the AB track is used for running a first type of simulated train and the AC track is used for running a second type of simulated train, and the AB track and the AC track share one 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 type simulation train runs on the AB track according to signals output by the first output port and the second output port; the second type simulates a train running on the AC track based on signals output by the first output port and the third output port of the controller. The system can enable one control device to control the train models of all the current systems, saves the cost and improves the user experience.

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. 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 of simulated train to run on the AB track, and a control circuit used for controlling the second type of simulated train to run on the AC track is integrated in the controller;
the first output port (M1A) of the controller is connected with an A track, the second output port (M1B) is connected with a B track, and the third output port (M1C) is connected with a C track;
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 output port (M1A) and a second output port (M1B);
a second type of simulated train running on the AC track according to signals output by the first output port (M1A) and a third output port (M1C);
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;
a first output port (M1A) of the controller is connected to an A rail segment and a second output port (M1B) of the controller is connected to a B rail segment;
the controller 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 and the fifth output port (M2B) is connected to the B programming rail segment.
2. The control system of claim 1, wherein 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.
3. The control system of claim 2, wherein the first type of simulated train is a digital train;
the second type of simulated train is a simulated train.
4. A control system according to claim 3, characterized in that 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.5 mm.
5. The control system according to claim 3 or 4, wherein 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 into 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.
6. The control system of claim 5, wherein 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.
7. The control system of claim 6, wherein 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 presence of a gas in the gas,
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).
8. A control device of a multi-type simulation train based on nested tracks is characterized in that,
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;
the control device 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 of the nested track, and the fifth output port (M2B) is connected to the B programming rail segment of the nested track.
9. The control device according to claim 8,
the control device is integrated with a communication module, an external device inputs an instruction through the communication module, and the control device controls the first type simulation train and/or the second type simulation train to run on the nested track according to the instruction.
CN201810413244.0A 2018-05-03 2018-05-03 Nested track-based multi-type simulation train control system and control device Active CN108508763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810413244.0A CN108508763B (en) 2018-05-03 2018-05-03 Nested track-based multi-type simulation train control system and control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810413244.0A CN108508763B (en) 2018-05-03 2018-05-03 Nested track-based multi-type simulation train control system and control device

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 Nested track-based multi-type simulation train control system and control device

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 西南交通大学 Two-locomotive mutual accompany test positioning and rolling test bed
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 西南交通大学 Two-locomotive mutual accompany test positioning and rolling test bed
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
CN107124125A (en) A kind of multiaxis controllor for step-by-step motor system based on fpga chip
CN1641630A (en) Hardware based configurable motion control apparatus and method
CN103078575A (en) Integrated multifunctional controller for low-power direct-current servomotors
CN103680283A (en) Multifunctional decoding controller of urban rail transit operation safety analog sandboxie
CN104730933B (en) Traction control semi-matter simulating system
CN110239618A (en) A kind of drive-by-wire chassis of unmanned electric vehicle
CN105594152A (en) Communication apparatus and motor control apparatus
CN108508763B (en) Nested track-based multi-type simulation train control system and control device
CN205405262U (en) Based on ros path planning mobile robot
CN105629828B (en) Multi-protocols isolated form digital signal driving source
CN111665822B (en) Vehicle-mounted operation control system testing device
CN104360617B (en) A kind of motor control method
CN101711076B (en) DMX512 communication link and method thereof
CN206193479U (en) Special low pressure servo driver of AGV based on SOC framework
CN202794931U (en) Steering engine controller
CN111857209A (en) Wireless remote control intelligent vehicle
CN103956087B (en) A kind of headstock decode controller of city rail traffic operation security simulation sand table
CN102305999A (en) Online debugging system for electric power-assisted steering control parameter
JP5244684B2 (en) Automatic model train driving device
CN201477412U (en) Fully-digital direct current servo drive
CN208969461U (en) Kinetic control system
CN103476164A (en) Tunnel lighting control system
CN207503002U (en) The 8 tunnels analogy amount of voltage/current type of PLC a kind of inputs 2 tunnels analogy output modules
CN111830910A (en) Method and system for realizing multi-axis synchronous motion controller based on PWM
CN201600591U (en) Built-in type networked motion controller with high integrated level

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