FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    The principle of the H bridge, and simply introduced the state as a DC motor as an example

     

    What is H bridge? The H-bridge is a relatively simple circuit, which usually contains four independently controlled switching metaders (e.g., MOS-FETs), which are often used to drive current larger loads, such as motors, and why is it called H Bridge (H -Bridge), because of the specific letter h, as shown in the figure below; There are four switching metaders Q1, Q2, Q3, Q4, and there is also a DC motor M, D1, D2, D3, D4 is the renewal diode of MOS-FET; switch status Below to control a DC motor as an example, a simple introduction of several switching status of the H-bridge, where the forward turn and reversal are the direction of human specified, and the actual work is divided according to the actual situation; Forward Usually the H-bridge is used to drive the sensitive load, where we drive a DC motor; Open Q1 and Q4; Turn off Q2 and Q3; At this point, it is assumed that the motor is forwarded, this current is sequentially passed through Q1, M, Q4, and the yellow line segment is used in the figure, as shown in the figure below; Forward Reverse Another state is the motor reversal; at this time, the state of the four switching metaders is as follows; Turn off Q1 and Q4; Open Q2 and Q3; At this time, the motor reverses (contrary to the situation described above), this current is sequentially passed through Q2, M, Q3, and labeled the yellow line segment in the figure, as shown in the figure below; Reverse Speed ​​up If you want to speed up the DC motor, one of the options is; Turn off Q2, Q3; Open Q1, Q4, input 50% PWM waveform of 50% duty cycle, which reducing the effect of reducing the speed, if you need to increase the speed, set the duty cycle of the input PWM to 100%; Specifically, as shown below; Stop state Here, the motor is switched from the forward switch to the stop state; In the case of correct transformation; Q1 and Q4 are open status; At this time, if Q1 and Q4 are turned off, the DC motor can be applied to the inductance, which is the inductive load. The current will continue to keep the original direction. At this time we want the current in the motor to attenuate; There are two ways here: The first: Turn off Q1 and Q4, at this time, the current will still flow through the reverse continuation of the diode, and then open Q1 and Q3 to achieve the purpose of rapid attenuation current; Second: When preparing to stop, turn off Q1, open Q2, at this time, the current does not attenuate quickly, the current cycle flows between Q2, M, Q4, and consumes electric energy through the internal resistance of MOS-FET; application When actually use, it is very troublesome to make an H bridge with discrete components. There are many commonly used IC schemes, such as commonly used L293D, L298N, TA7257P, SN754410, and the like. Connect the power supply, the motor, can drive the motor by entering the control signal; Here is the L298N module on a treasure, is more common, very friendly for novice players, and it is also very simple; L298N module This module has a plate 5V regulator that can be enabled using jumpers. If the motor power supply voltage is up to 12V, we can enable 5V regulator, and 5V pin can be used as an output, such as powering the Arduino board. However, if the motor voltage is greater than 12V, the jumper must be disconnected because these voltages will damage the onboard 5V regulator. In this case, the 5V pin will be used as an input because we need to connect it to the 5V power supply to make the IC work normally. We can notice that the voltage of the IC is about 2V. Therefore, if the 12V power supply is used, the voltage on the motor terminal is about 10V, which means that we will not get the maximum speed from the 12V DC motor. Here, Arduino is used as an example, which is the framework of a DEMO on the Internet is shown below; Architecture # DefineenA9 # definein16 # definein27 # definebutton4 introtDirection = 0; intpressed = false; voidsetup () {pinMode (enA, OUTPUT); pinMode (in1, OUTPUT); pinMode (in2, OUTPUT); pinMode (button, INPUT); // Setinitialrotationdirection digitalWrite (in1, LOW); digitalWrite (in2, HIGH);} voidloop () {// Readpotentiometervalue intpotValue = analogRead (A0); // Mapthepotentiometervaluefrom0to255 intpwmOutput = map (potValue, 0,1023,0,255); // SendPWMsignaltoL298NEnablepin analogWrite (enA, pwmOutput); // Readbutton-Debounce if (digitalRead (button) == true) {pressed = pressed;!} while (digitalRead (button) == true); delay (20); // Ifbuttonispressed-changerotationdirection if (pressed == true & rotDirection == 0) {digitalWrite (in1, HIGH); digitalWrite (in2, LOW); rotDirection = 1; delay (20);} // Ifbuttonispressed-changerotationdirection if (pressed == false & rotDirection == 1) { DigitalWrite (In1, Low); DigitalWrite (IN2, HIGH); Rotdirection = 0; DELAY (20);}} Simply description: First we need to define the pins and variables required for the program. In Setup (), we need to set the pin mode and the initial rotation direction of the motor. In LOOP (), let's read the potentiometer value, then change the value from 0 to 1023, linearly map 0 to 255 of the PWM signal, from 0 to 100% duty cycle. Then use the analogwrite () function to send the PWM signal to the Enable pin of the L298N board, which actually drives the motor. Next, we check if the button is pressed. If so, we will refer the state of input 1 and the input 2 to change the direction of rotation of the motor. The button will be used as a switch button, and each time the button will change the direction of rotation of the motor. There are many trolles on a treasure, as shown below; the main control can be replaced with 51 single-chip or STM32, of course, Arduino is no problem, using L298N to quickly build a car; A baby's car Summarize This paper briefly introduces the principle of the H-bridge, and simply introduces the state of the driving as an example, the overall is relatively simple, suitable for novice players, and finally gives example based on ARDUINO and L298N, for reference, interested, you can go Some treasures, enjoy. Editor: lq, Reading, Original title: Deepen Shallow H-bridge drive circuit Article Source: [Micro Signal: WW_CGQJS, WeChat Public Number: Sensor Technology] Welcome to add attention! Please indicate the source of the article.

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us