FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    L298N drive car wiring methods and test procedures

     

    L298N is a dual h-bridge motor drive chip, wherein each H-bridge can provide a current of 2A, the power supply voltage range of the power portion is 2.5-48V, the logic portion 5V is powered, and the 5VTTL level is accepted. Under normal circumstances, the voltage of the power portion should be greater than 6V or if the chip may not work properly. L298N drive motor wiring This time, using Arduino simply controls the advancement and turning of the car. Not much to say, the stuff to prepare is: the car chassis, Arduino controller, Arduino sensor expansion board (here I am convenient for wiring), L298N DC motor drive board, battery, DuPont line several. L298N bridge DC motor driver board Wiring method and usage method The previous article has been introduced since the train driver. This is no longer said, but there are some netizens unclear how to control the two DC motors, as well as netizens for the previous article. Reflections unclear, do a detailed description. Be First, the VMS drive portion takes an electric power supply to the power supply, which is generally 12V, and the logical part can be removed from the board, that is, the terminal can be floating, or access + 5V- + 7V. The three plugs of the left and right rows of terminals are used to control two DC motors, respectively. EA, EB Access ARDUINOPWM interface is used for motor speed control, I1, I2, I3, I4 interfaces, which are used to control two DC motors, backward, steering, and brakes, only need to access Arduino's digital interface. It is basically completed by this preparation. You can write the program. Here is a small car to go straight, back, left, right turn, and brake function. Processes for your reference. The procedure is as follows: INT PINI1 = 8; // Defines I1 interface INT pini2 = 9; // Defines the I2 interface INT SpeedPin = 11; // Defines the EA (PWM speed control) interface INT PINI3 = 6; // Defines the I3 interface INT pini4 = 7; // Defines the I4 interface INT SpeedPin1 = 10; // Defines EB (PWM speed control) interface Void setup () { PINMODE (PINI1, OUTPUT); PINMODE (PINI2, OUTPUT); PinMode (Speedpin, Output); PINMODE (PINI3, OUTPUT); PINMODE (PINI4, OUTPUT); PinMode (SpeedPin1, Output); } Void loop () { // go straight AnalogWrite (SpeedPin, 100); // Enter the analog value to set the speed AnalogWrite (SpeedPin1,100); DigitalWrite (PINI4, LOW); // Remove the DC motor (right) counterclockwise DigitalWrite (PINI3, HIGH); DigitalWrite (PINI1, LOW); // Make DC motors (left) clockwise DigitalWrite (PINI2, HIGH); DELAY (2000); // AnalogWrite (SpeedPin, 100); // Enter the analog value to set the speed AnalogWrite (SpeedPin1,100); DigitalWrite (PINI4, HIGH); // Make DC motors (right) clockwise DigitalWrite (PINI3, LOW); DigitalWrite (PINI1, HIGH); // Remove the DC motor (left) counterclockwise DigitalWrite (PINI2, LOW); DELAY (2000); //Turn left AnalogWrite (SpeedPin, 60); // Enter the analog value for setting speed AnalogWrite (SpeedPin1, 60); DigitalWrite (PINI4, LOW); // Remove the DC motor (right) counterclockwise DigitalWrite (PINI3, HIGH); DigitalWrite (PINI1, HIGH); // Remove the DC motor (left) counterclockwise DigitalWrite (PINI2, LOW); DELAY (2000); //Turn right AnalogWrite (SpeedPin, 60); // Enter the analog value for setting speed AnalogWrite (SpeedPin1, 60); DigitalWrite (PINI4, HIGH); // Make DC motors (right) clockwise DigitalWrite (PINI3, LOW); DigitalWrite (PINI1, LOW); // Make DC motors (left) clockwise DigitalWrite (PINI2, HIGH); DELAY (2000); // Brake DigitalWrite (PINI4, HIGH); // Make DC Motors (Right) Brake DigitalWrite (PINI3, HIGH); DigitalWrite (PINI1, HIGH); // Make DC Motors (left) brakes DigitalWrite (PINI2, HIGH); DELAY (2000); }, Read the full text, the technical area About μClinux transplantation on ARM7 S3C4510B Multi-looped into charge and discharge controller design Interrupt service routines for ARM embedded systems LED dimming engine design based on 8-bit MCU How to display Chinese characters, ASCII characters and color graphics on the LCD monitor

     

     

     

     

    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