Track circuit is an important outdoor equipment for signal interlocking, which plays a role in ensuring the safety of driving and shunting operations. It can supervise and check whether there are trains running, shunting operations or vehicle occupation on the line (including station line) in a fixed section, and can show whether the rails in the section are intact. It uses the rails as conductors, and the rail seams are connected by connecting wires. One end is connected to the power supply and the other end is connected to the receiver. It works through the track current.
Whether the track circuit can work properly directly affects the safe driving of the train. Therefore, the detection of the track circuit is particularly important. At present, there are few detection equipment on the market, and they generally have shortcomings such as high power consumption, high price, and large size. To this end, this paper analyzes and studies the track circuit and designs a high-precision pressure test instrument to simulate the pressure of the train on the track, so as to verify the performance of the track circuit.
System composition and working principle
This system uses PIC16F876A microcontroller as the core, and realizes data processing and real-time control of the system through software programming. The system block diagram is shown in Figure 1, which consists of the main control MCU module, A/D sampling module, power management module, display module and sensor.
Figure 1 System structure diagram
The main functions of each part of this system are: the power management is mainly responsible for
detecting and boosting the
System hardware design
1. Power management circuit design
The power management mainly boosts and stabilizes the battery voltage, and can also perform overvoltage protection and low voltage alarm functions. The boost circuit is composed of the TPS60230 chip, which is a new type of charge pump
Figure 2 Power management circuit
2. Single chip microcomputer and sampling circuit design
According to the accuracy requirements, this system uses ADI's 16-bit A/D chip AD7705. The AD7705 chip integrates amplification, filtering and A/D conversion units. It is a low-cost, wide dynamic range, and high-resolution A/D conversion chip. AD7705 and the microcontroller communicate data through SPI. The connection is shown in Figure 3, where CH1 and CH2 are differential input channels, REF is the full-scale level, and the full-scale level is set by adjusting RP1. The microcontroller is the host and is connected to the AD7705 through a four-wire (CS, SCLK, DI, DO) SPI. DRDY is the data conversion completion signal, which is valid at low level and connected to the RC2 port of the microcontroller. When the microcontroller finds that the RC2 port has a low level, it starts to send a read register instruction to the AD7705 to obtain the AD value. CH1+ and CH1- are pressure signals from the pressure sensor, and CH2+ and CH2- are signals sent by the zero potentiometer.
Figure 3 Sampling circuit
3. Display and alarm circuit design
The display and alarm circuit is shown in Figure 4. The display part uses a 7-segment 4-bit digital tube display. The PORTB port is connected to the segment code of the digital tube. The RC0, RC1, RC6, and RC7 ports are driven and amplified by transistors to control the selection end of the digital tube. When the microcontroller detects a low-level signal at the RA1 port, it controls the analog switch to cut off the power supply of the subsequent circuit. At the same time, D1 and buzzer B send out an alarm signal. When the pressure exceeds the system range, D2 and the buzzer alarm. In order to distinguish between low-pressure alarms and over-range alarms, D1 and D2 use different colors, and the buzzer rings at different times in equal intervals.
Figure 4 Display and alarm circuit [page]
System software design
1 Sampling and data processing
①AD7705 read and write timing
AD7705 communicates with the microcontroller via four-wire SPI. Its read and write timing diagrams are shown in Figure 5 (a) and (b). During the read and write process, the high bit of the serial data comes first and the low bit comes last. DRDY is low, indicating that the A/D conversion has been completed, the data is ready, and the read and write instructions can be started. Whenever you want to read or write the AD7705, you must check whether DRDY is low.
Figure 5 AD7705 read and write timing diagram
②Registers of AD7705
The first is the communication register (communicationRegister), which selects the acquisition channel, whether the next operation is to read or write, and which register to read or write next.
The second is the setup register (SetupRegister), which determines the calibration mode, gain setting, polarity setting, and buffer mode.
The third is the clock register (CLOCKRegister), which sets the filter memory clock control bit.
The software programming idea is also written in this order, first set the communication register, then write the setting register, and finally set the clock register. After setting, as long as DRDY is detected as a low level, the clock can be started to read the converted data in the AD7705 data register.
2 Data processing algorithm ideas
Data processing mainly converts voltage signals into pressure values and converts the collected data. It is known that:
the
(1)
(2)
Formula (2) is the relationship between the converted pressure value and the collected A/D value.
Because the microcontroller does not support floating-point operations, in order to accurately display the results, the software is used to
In the first step, if the collected value K is greater than 932, K/932 is stored in an integer variable to get the integer part.
The second step is to use K to take the modulus of 932 to get R. Obviously R is less than 932. Then get the first decimal place. Then use R×10 to take the modulus of 932 to get R1, the second decimal place . And so on, get the third decimal place dec3.
In the third step, if the collected value K is less than 932, proceed directly to the second step.
The fourth step is to compare with the logical zero point to obtain the theoretical pressure value, convert it into BCD and display it on the digital tube.
Figure 6 Software Flowchart
3. Programming ideas and flow chart
The system software programming adopts the state machine mechanism. After power-on, each module is initialized, including I/O port initialization, timer initialization, SPI initialization, etc. After initialization, the system enters the loop, and tasks are processed according to the task flag in the loop body. The main tasks are: undervoltage processing, data acquisition, sleep, shutdown, etc. When processing data, the value of channel 2 is collected first, and then channel 1. If the sensor is not connected, the collected value is zero or approximately zero, and the system alarm waits. If the collected value is greater than zero, it participates in the calculation. The theoretical value is calculated and displayed.
Previous article:Ankerui-5000 energy consumption monitoring system based on DTSF1352 electric meter
Next article:Development of high-precision data acquisition device based on dsPIC30F
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Seizing the Opportunities in the Chinese Application Market: NI's Challenges and Answers
- Tektronix Launches Breakthrough Power Measurement Tools to Accelerate Innovation as Global Electrification Accelerates
- Not all oscilloscopes are created equal: Why ADCs and low noise floor matter
- Enable TekHSI high-speed interface function to accelerate the remote transmission of waveform data
- How to measure the quality of soft start thyristor
- How to use a multimeter to judge whether a soft starter is good or bad
- What are the advantages and disadvantages of non-contact temperature sensors?
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- 【ESP32-C3-DevKitM-1】ESP32-C3 connects to MQTT server
- MATLAB APP Designer serial port debugging tool writing
- [Zero-knowledge ESP8266 tutorial] Quick start 1-Let your development board say hello to the world
- EEWORLD University Hall----Engineering is smarter, industrial design is more powerful: TI robot system
- Calculation and setting of baud rate of msp430 microcontroller
- Analysis of the Principle of Power Switching Circuit
- Do you know? Use GPIO to simulate I2C communication on C2000
- Questions about UCOS II migration [Newbie help]
- New Technology for Air Quality Monitors and Smoke Detectors
- Measurement and analysis of vehicle speed sensor signals using an automotive oscilloscope