<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "https://jats.nlm.nih.gov/publishing/1.3/JATS-journalpublishing1-3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="publisher-id">jcse</journal-id><journal-title-group><journal-title>Journal of Computational Science and Engineering</journal-title></journal-title-group><issn>1710-4068</issn><publisher><publisher-name>Advancersin</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">jcse-v57-a06</article-id><article-categories><subj-group subj-group-type="heading"><subject>Research Article</subject></subj-group></article-categories><title-group><article-title>Several common detection circuit design</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Yuan</surname><given-names>Qinghui</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>zhang</surname><given-names>Bin</given-names></name><xref ref-type="aff" rid="aff-1"/></contrib><contrib contrib-type="author"><name name-style="western"><surname>Shan</surname><given-names>Lianmeng</given-names></name><xref ref-type="aff" rid="aff-2"/></contrib></contrib-group><aff id="aff-1">Binzhou Polytechnic, Binzhou, Shandong Province 256603,China</aff><aff id="aff-2">Shandong Mingquan New Material Technology Co. LTD, Jinan, Shandong Province, China</aff><pub-date publication-format="electronic" date-type="pub" iso-8601-date="2022-08-30"><day>30</day><month>08</month><year>2022</year></pub-date><volume>57</volume><fpage>27</fpage><lpage>31</lpage><permissions><copyright-statement>2022@ The American Computational Science Society.</copyright-statement><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/">https://creativecommons.org/licenses/by/4.0/</ali:license_ref><license-p>This article is licensed under the Creative Commons Attribution 4.0 International license (CC BY 4.0), which permits sharing and adaptation, including commercial reuse, subject to attribution, a link to the license and an indication of changes. Third-party material separately credited with different terms is governed by the license or rights notice stated for that material.</license-p></license></permissions><self-uri content-type="fulltext" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v57-a06/index.html"/><self-uri content-type="pdf" xlink:href="https://www.advancersin.org/jcse/articles/jcse-v57-a06/jcse-v57-a06.pdf"/><abstract><p>Based on SRM motor under different working conditions, this paper gives the circuit design of detection circuit, position detector, temperature detector and so on. By detecting each signal, it is returned to the controller, and the controller sends out control signals to ensure the safe and stable operation of the power converter and ensure the efficient operation of SRM motor.</p></abstract><kwd-group><kwd>Enterprise annuity</kwd><kwd>Statistical analysis</kwd><kwd>Transportation system</kwd></kwd-group></article-meta></front><body>
    <sec>
      <title>1.Introduction</title>
      <p>The development of switched reluctance motor has been more than 100 years, the last 50 years is its rapid development stage. China’s research on switched reluctance motor began in 1984, including switched reluctance motor control system, combined with the advantages of ac and DC motor speed control system, is a new type of electric vehicle speed control system. The application of switched reluctance motor in the field of electric vehicles is also in line with the needs of The Times. Therefore, this paper takes the design of driving motor for golf carts as the</p>
    </sec>
    <sec>
      <title>background, and designs the controller hardware circuit and the underlying drive based on the switched reluctance</title>
      <p>motor. This paper introduces the design of detection circuit including bus voltage and current detection circuit, threephase voltage and current detection circuit, rotor position detection circuit and temperature detection circuit, and the design of current chopper circuit.</p>
    </sec>
    <sec>
      <title>2. Bus voltage detection circuit design</title>
      <p>This design uses dc voltage power supply, the power supply chooses 60V battery. Corresponding detection</p>
    </sec>
    <sec>
      <title>methods: sampling resistance method, Hall sensor method. This design uses hall voltage method to complete the</title>
      <p>detection of bus voltage, hall sensor is produced by Jiangsu Camellia Electric Co., LTD. The module is easy to install, high precision, good electrical isolation, low temperature drift advantages. In addition, the Hall element uses 15V pressure supply. The rated input current of the primary side is 10mA, and the rated output current of the secondary side is 25mA. Turns ratio is 2500:1000, suitable for measuring 10V~500V voltage, the insulation voltage of the primary side and the secondary side is 2.5kV, the precision is 0.6%, the response time is 2 s, and the linearity is less than 0.2%. The circuit diagram of bus voltage detected by Hall voltage sensor is shown in Figure 1.</p>
      <p>V+ and V- are connected at both ends of the bus. To prevent RF interference, a capacitor of 100nF is connected in parallel at both ends of V+ and V-. When detecting the voltage, the input resistor R45 is in series on the input road. To ensure accuracy, the input resistance is 6K ohms and the input current is 10mA. The output terminal adjusts the output bus voltage through the variable resistor, and transmits the detected wood dot signal to the analog-todigital conversion interface of the controller chip F2812. In the circuit, interference often comes from power supply, lightning and other reasons. Electromagnetic waves or spikes affect circuits by magnetic coupling, transmission lines, etc. Therefore, at the output end of signal detection, a capacitor filter of 0.01μF is connected in parallel to ensure that the circuit only retains the DC component.</p>
    </sec>
    <sec>
      <title>3. Bus current detection circuit design</title>
      <p>Similarly, there are two methods to detect bus current: sampling resistance method and Hall sensor method. Sampling resistance method is more troublesome to adjust the circuit than Hall sensor method is convenient and fast. Therefore, in this design, hall sensor method is used to detect the bus current, the hall voltage detection module is CSM200B, the module is perforated structure, it has good photoelectric isolation performance, a wide range of measurement, turns ratio of 1:2000, power supply voltage is 15V, low temperature shift, accuracy is 0.5%, linearity is not higher than 0.1%. The insulation voltage of the primary side and the secondary side is 5KV, and the output current is 100mA. The response time is less than 1 s. Hall current sensor is used to detect the bus current circuit</p>
      <p>diagram, as shown in Figure 2. The output end of the Hall detection circuit is connected with the power resistance. When the detection bus current is 200A, the current at the output end of the sensor is 100mA, so the output voltage is 5V. As the controller receives voltage signals, the current is output in the form of voltage. The bus current signals detected on the bus are converted into voltage signals and sent to the analog-to-digital conversion interface ADC of THE chip F2812 to effectively control the bus current, and the capacitor at the output end plays a role of filtering.</p>
    </sec>
    <sec>
      <title>4.Three-phase voltage detection circuit design</title>
      <p>In order to ensure the normal operation of SRM motor power converter, it is necessary to accurately collect voltage signals of each phase, referring to the empirical data of DMC1500 technical parameters. Three-phase voltage detection, using resistance sampling method. Taking one-phase sampling circuit as an example, voltage sampling circuit is shown in Figure 3.</p>
      <p>A sampling voltage of about 1.5V is obtained at the three-phase voltage monitoring point through the resistor divider, and the capacitor acts as a filter to prevent interference. Sampling voltage through the voltage follower, impedance matching, so that the circuit after the better work. LM358 features: high input impedance characteristics, equivalent to open circuit for the front circuit. Low output impedance, equivalent to a constant voltage source for the rear circuit, so as to isolate the front and rear circuit buffer. At the same time, it also improves the ability to carry loads. In order to satisfy the voltage accepted by the chip F2812 pin, the sampling voltage needs to be amplified. The negative feedback amplifier amplifies the voltage at 2x and the low pass filter filters out the high frequency pulses.</p>
      <p>Finally, after 3.3V voltage stabilization, the sampling voltage is input to the ADC pin of DSP chip. The detection circuit: good isolation performance, strong anti-interference ability, small temperature drift, low cost.</p>
    </sec>
    <sec>
      <title>5. Three-phase current detection circuit design</title>
      <p>To complete the electromagnetic torque control and current protection functions of the SRM motor, real-time and accurate phase current signals are required. At the same time, the SRM motor control strategy also needs to detect phase current signals and conduct corresponding control according to the detected phase current signals. In addition, the CHOPPER control of the SRM motor also needs to conduct corresponding chopper according to the detected phase current signals. Three phase current detection of SRM motor includes sampling resistance method and Hall sensor. The hall current module is used for phase current detection. This design uses the perforated Hall Figure 1 Bus voltage detection circuit Figure 2 Busbar current detection circuit Figure 3 Three-phase voltage detection circuit</p>
      <p>sensor CSM200B to detect the current in the form of voltage output. Taking c-phase circuit design as an example, the current detection circuit composed of Hall sensors is shown in Figure 4. In order to ensure the safety of the circuit, this design isolates the power circuit and control circuit, and the power converter circuit uses a separate PCB board. Therefore, hall detection sensor CSM200B is also on the power converter PCB board. The phase current detected by CSM200B is about 300A, its output current is 150mA, and the output voltage is 15V. The voltage is much higher than the 3.3V voltage of DSP chip, so the voltage is reduced to 1V or so after capacitor filtering and resistor voltage divider, which is composed of operational amplifier voltage follower. Isolate front and rear circuits to eliminate interference signals. The voltage signal output by the voltage follower can be processed in two ways: one is used for signal comparison and chopper control. The other passes through the second order voltage controlled active filter circuit, so that the output voltage can drop at a faster rate in the high frequency band and improve the filtering. RC consists of a low pass filter, which enhances the low frequency filtering of the circuit. The passband gain of the circuit is 3, the cut-off frequency is 1KHz, and the output voltage signal of the second-order voltage controlled active power filter is sent to the ADC interface of F2812 after 3.3v voltage stabilization. The controller receives voltage signal and is programmed to control torque and adjust speed.</p>
    </sec>
    <sec>
      <title>6.Rotor position detection circuit design</title>
      <p>Figure 5 position detection circuit Figure 4 Three-phase current detection circuit</p>
      <p>Position detection is used to detect the position of the rotor relative to the stator and calculate the speed. The controller receives the signal, controls the power converter on and off to ensure the normal and stable operation of SRM motor. The position detector has simple structure and accurate capture. Therefore, the design of direct detection. Photoelectric position detector is selected to form position detection module. The detection scheme uses total detection, that is, three-phase SRM motor to detect the rotor position, and three photoelectric position detectors should be selected.</p>
      <p>The position detector selected in this design is MOC H21A. Three U-shaped photocoupler switches are fixed on the stator with an Angle of 60 ℃ apart from each other. The shading tooth plate is fixed on the rotor, and is coaxial with the rotor with the same structure and distribution, each occupying an Angle of 45 ℃ . The position detection circuit diagram of three-phase SRM motor rotor is shown in Figure 5.</p>
      <p>The rotor and disc cover rotate synchronously with the operation of the SRM motor. The teeth of the optical mask pass through the optocoupler MOCH21A, MOCH21A is cut off because the light is blocked, and the output OP is low level; When the slot of the disc cover passes through the MOCH21A, the MOCH21A feels light conduction, and the output OP is high level.</p>
      <p>With the rotation of the rotor, the state of the optocoupler MOCH21A changes constantly, and the output phase difference of 15 ℃ and duty cycle of 0.5 square wave signal. After amplitude limiting and filtering, the threechannel square wave signal of MOCH21A is shaped by schmidt trigger, which is divided into two processing :(1) the three-channel square wave detection signal is sent to the CAP1, CAP2 and CAP3 pins of F2812 chip. The controller determines the position of the rotor, the commutation logic of the SRM motor, and the switching state of the MOSFET tube. (2) The three square wave detection signals are different or, and then the square wave signal CAP4, which will jump at 15 ℃ , is obtained and sent to the CAP4 pin of the chip F2812. The controller calculates the average speed of SRM motor rotor rotation at 15 ℃ Angle according to the time of two adjacent jumps of rotor position.</p>
      <p>Calculate the average speed of SRM motor at 15 degrees per revolution, and the calculation formula is: )(4 160 360 15 rpmtt ∆=∆⋅=ω \* MERGEFORMAT Where, ω is the average rotational speed of the rotor, and is the time of two adjacent jumps of the square wave after three photocouplings.</p>
    </sec>
    <sec>
      <title>7.Temperature detection circuit design</title>
      <p>When SRM motor is running, MOSFET tube is opened and turned off for a long time at a high frequency, and golf cart is running under high temperature and humidity conditions, so it is necessary to carefully consider the safety of power converter operation. An important reason for power tube damage is that the junction temperature exceeds the allowable value due to long-term high current. For a particular power tube, the most convenient way to reduce junction temperature is to reduce the ambient temperature of the tube. Therefore, in addition to being installed on the heat sink, the power converter PCB also needs to design an overheating protection circuit to detect the temperature of the MOSFET tube to ensure that the NOSFET tube stops working when it overheats. Therefore, the DESIGN of LM35 temperature detection circuit, real-time and accurate phase chip feedback MOSFET tube temperature, to ensure the normal operation of golf cart. LM35 temperature detection circuit, as shown in Figure 6.</p>
      <p>Figure 6 Temperature detection circuit The main performance parameters of the LM35 temperature sensor are as follows: the output voltage is linear with the temperature ( ℃ ). The power supply voltage of the device is 15V, and the output voltage increment is 10mV/1℃ . At room temperature, the accuracy is 0.25 ℃ , the accuracy is 0.4 ℃ ~0.8℃ , and the rated temperature detection range is -55℃ ~+150℃ .</p>
      <p>In Figure 5, the temperature sensor detects the temperature in the form of voltage output, the output voltage through capacitive filtering and buffer isolation of the voltage follower, the 1V voltage through the operational amplifier amplification 5 times compared with the reference voltage, after the comparison of signals through highspeed optocoupler isolation and filtering feedback to the CHIP F2812 GPIOD5 pin.</p>
      <p>Temperature sensor LM35 is a metal package, installed on the heat sink of the power converter PCB board, MOSFET tube is close to the heat sink, so LM35 indirectly detects the temperature of MOSFET tube, according to the characteristics of the field effect tube set the limit temperature of 100℃ , when the temperature of the field effect tube is higher than 100 ℃ , The GPIOD5 pin of F2812 chip receives low level signal, the drive signal of MOSFET tube output by the controller presents high resistance state, and MOSFET tube stops working. Until pin GPIOD5 returns to high level.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref-001">
        <mixed-citation>[1] Yang Guomin. Research on Controller Optimization Design of Switched Reluctance Motor [D]. Hunan: Central South University, 2012.</mixed-citation>
      </ref>
      <ref id="ref-002">
        <mixed-citation>[2] WEN Hao. Research and Design of Switched Reluctance Motor Speed Control System [D]. Zhejiang: Zhejiang University, 2012.</mixed-citation>
      </ref>
      <ref id="ref-003">
        <mixed-citation>[3] ZHOU Chun. Experimental Platform Design of Switched Reluctance Motor Speed Control System based on DSP [D]. Zhejiang: Zhejiang University, 2004.</mixed-citation>
      </ref>
      <ref id="ref-004">
        <mixed-citation>[4] Lin Yuanchun. Design of Switched Reluctance Motor for Small Electric Vehicle [D]. Guangzhou: South China University of Technology, 2011.</mixed-citation>
      </ref>
      <ref id="ref-005">
        <mixed-citation>[5] Hao Guibing, LIU Haiqing, Yuan Rongbin. Design of Protection Circuit for Switched Reluctance Motor System Based on DSP [J]. Machinery &amp; Electronics, 2012(33):176-177.</mixed-citation>
      </ref>
    </ref-list>
  </back>
  <floats-group>
    <fig id="fig-001" position="float">
      <graphic xlink:href="figures/fig-001.png"/>
    </fig>
    <fig id="fig-002" position="float">
      <graphic xlink:href="figures/fig-002.png"/>
    </fig>
    <fig id="fig-003" position="float">
      <graphic xlink:href="figures/fig-003.png"/>
    </fig>
    <fig id="fig-004" position="float">
      <graphic xlink:href="figures/fig-004.png"/>
    </fig>
    <fig id="fig-005" position="float">
      <graphic xlink:href="figures/fig-005.png"/>
    </fig>
    <fig id="fig-006" position="float">
      <graphic xlink:href="figures/fig-006.png"/>
    </fig>
    <fig id="fig-007" position="float">
      <graphic xlink:href="figures/fig-007.png"/>
    </fig>
  </floats-group>
</article>
