{"product_id":"l298n-dc-motor-driver-controller-module","title":"L298N DC Motor Driver Controller Module","description":"\u003cp\u003e\u003cspan\u003eThe L298N driver module, using ST's L298N chip can directly drive two 3-30V DC motor, and provides a 5V output interface can 5V single-chip circuitry to supply, support 3.3VMCU control, you can easily control the DC motor speed and direction, you can also control the 2-phase stepper motor, smart car essential. Using L298N made by ST company as the control chip, the module has such characteristics as strong driving ability, low calorific value and strong anti-interference ability.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003eIt uses the popular\u003cspan\u003e \u003c\/span\u003eL298\u003cspan\u003e \u003c\/span\u003emotor driver IC and has an onboard 5V regulator which it can supply to an external circuit. It can control up to 4 DC motors, or 2 DC motors with directional and speed control.\u003c\/p\u003e\n\u003cp\u003eThis motor driver is perfect for robotics and mechatronics projects and perfect for controlling motors from microcontrollers,\u003cspan\u003e \u003c\/span\u003eswitches,\u003cspan\u003e \u003c\/span\u003erelays, etc. Perfect for driving DC and Stepper motors for micro mouse, line following robots, robot arms, etc.\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e\u003cstrong\u003eNote: \u003c\/strong\u003eThe actual product may vary in slight variation in color and component with the image shown depending upon quantity availability, however it doesn’t affect the functionality of module.\u003c\/span\u003e\u003c\/p\u003e\n\u003ch5\u003e\u003cspan\u003e\u003cstrong\u003eConnection Diagram\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\n\u003cp\u003e\u003cimg sizes=\"(max-width: 650px) 100vw, 650px\" srcset=\"https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/L298N_DC_Motor-1024x697.jpg 1024w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/L298N_DC_Motor-1024x697-300x204.jpg 300w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/L298N_DC_Motor-1024x697-768x523.jpg 768w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/L298N_DC_Motor-1024x697-44x30.jpg 44w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/L298N_DC_Motor-1024x697-283x193.jpg 283w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/L298N_DC_Motor-1024x697-268x182.jpg 268w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/L298N_DC_Motor-1024x697-541x368.jpg 541w\" title=\"L298N 2A Based Motor Driver Module - Good Quality L298N Dc Motor 1024X697\" height=\"443\" width=\"650\" alt=\"L298N_Dc_Motor-1024X697\" src=\"https:\/\/aws.robu.in\/wp-content\/uploads\/2015\/10\/L298N_DC_Motor-1024x697-1024x697.jpg\" class=\"aligncenter wp-image-18898\" decoding=\"async\" loading=\"lazy\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cimg sizes=\"(max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/FRJ7W76HZDYE1YD.MEDIUM.jpg 620w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/FRJ7W76HZDYE1YD.MEDIUM-300x200.jpg 300w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/FRJ7W76HZDYE1YD.MEDIUM-45x30.jpg 45w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/FRJ7W76HZDYE1YD.MEDIUM-283x189.jpg 283w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/FRJ7W76HZDYE1YD.MEDIUM-268x179.jpg 268w, https:\/\/robu.in\/wp-content\/uploads\/2015\/10\/FRJ7W76HZDYE1YD.MEDIUM-552x368.jpg 552w\" title=\"L298N 2A Based Motor Driver Module - Good Quality Frj7W76Hzdye1Yd.medium\" height=\"413\" width=\"620\" alt=\"Frj7W76Hzdye1Yd.medium\" src=\"https:\/\/aws.robu.in\/wp-content\/uploads\/2015\/10\/FRJ7W76HZDYE1YD.MEDIUM.jpg\" class=\"aligncenter size-full wp-image-18899\" decoding=\"async\" loading=\"lazy\"\u003e\u003c\/p\u003e\n\u003ch5\u003e\u003cspan\u003e\u003cstrong\u003eUsage:\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\n\u003cp\u003eH-bridges are typically used in controlling motors speed and direction but can be used for other projects such as driving the brightness of certain lighting projects such as high powered LED arrays.\u003c\/p\u003e\n\u003ch5\u003e\u003cspan\u003e\u003cstrong\u003eHow it works:\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\n\u003cp\u003eAn H-Bridge is a circuit that can drive a current in either polarity and be controlled by *Pulse Width Modulation (PWM).\u003c\/p\u003e\n\u003cp\u003e* Pulse Width Modulation is a means in controlling the duration of an electronic pulse. In motors try to imagine the brush as a water wheel and electrons as the flowing droplets of water. The voltage would be the water flowing over the wheel at a constant rate, the more water flowing the higher the voltage. Motors are rated at certain voltages and can be damaged if the voltage is applied to heavily or if it is dropped quickly to slow the motor down. Thus PWM. Take the water wheel analogy and think of the water hitting it in pulses but at a constant flow. The longer the pulses the faster the wheel will turn, the shorter the pulses, the slower the water wheel will turn. Motors will last much longer and be more reliable if controlled through PWM.\u003c\/p\u003e\n\u003ch5\u003e\u003cspan\u003e\u003cstrong\u003ePins Details\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\n\u003cp\u003e\u003cspan\u003e\u003cstrong\u003eOut 1:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eMotor A lead out\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eOut 2:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eMotor A lead out\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eOut 3:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eMotor B lead out\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eOut 4:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eMo (Can actually be from 5v-35v, just marked as 12v)\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eGND:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eGround\u003c\/em\u003e\u003cbr\u003e\u003cstrong\u003e\u003cspan\u003e5v:\u003c\/span\u003e\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003e5v input (unnecessary if your power source is 7v-35v, if the power source is 7v-35v then it can act as a 5v out)\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eEnA:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eEnables PWM signal for Motor A (Please see the “Arduino Sketch Considerations” section)\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eIn1:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eEnable Motor A\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eIn2:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eEnable Motor A\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eIn3:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eEnable Motor B\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eIn4:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eEnable Motor B\u003c\/em\u003e\u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eEnB:\u003c\/strong\u003e\u003c\/span\u003e\u003cspan\u003e \u003c\/span\u003e\u003cem\u003eEnables PWM signal for Motor B (Please see the “Arduino Sketch Considerations” section)\u003c\/em\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eTwo things to mention;\u003c\/span\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cem\u003e\u003cspan\u003eMake sure you have all of your grounds tied together; Arduino, Power source, and the Motor Controller.\u003c\/span\u003e\u003c\/em\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cem\u003e\u003cspan\u003eThe PWM Pins are unnecessary if you do not want to control PWM features.\u003c\/span\u003e\u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch5 id=\"step3\"\u003e\u003cspan\u003e\u003cstrong\u003eARDUINO SKETCH CONSIDERATIONS :\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\n\u003cdiv class=\"step-body\"\u003e\n\u003cp\u003e\u003cem\u003eThe Arduino code sketch is pretty straightforward. Since there isn’t a library for the L298N Dual H-Bridge Motor Controller you just have to declare which pins the controller is hooked to.\u003c\/em\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cem\u003eThe “int dir(number)Pin(letter)”‘ pins can be connected to any available digital pin you have available, as long as you declare the correct pin in your sketch. This makes the L298N Dual H-Bridge Motor Controller very versatile if your project is using a lot of Arduino pins.\u003c\/em\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cem\u003eThe int“speedPin(letter)” pins need to be connected to a PWM pin on the Arduino if you want to enable speed control through PWM.\u003c\/em\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cem\u003eAs a quick cheat I have included a list of PWM pins for the main two types of Arduino’s I use:\u003c\/em\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cem\u003eAT MEGA – PWM: 2 to 13 and 44 to 46. Provide 8-bit PWM output with the analogWrite() function.\u003c\/em\u003e\u003c\/li\u003e\n\u003cli\u003e\u003cem\u003eUNO – PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function. \u003c\/em\u003e\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003chr\u003e\n\u003c\/div\u003e\n\u003ch4\u003e\u003cstrong\u003eFeatures:\u003c\/strong\u003e\u003c\/h4\u003e\n\u003col\u003e\n\u003cli\u003eMaximum motor supply current: 2A per motor.\u003c\/li\u003e\n\u003cli\u003eCurrent Sense for each motor.\u003c\/li\u003e\n\u003cli\u003eHeatsink for better performance.\u003c\/li\u003e\n\u003cli\u003ePower-On LED indicator.\u003c\/li\u003e\n\u003cli\u003eDouble H bridge Drive Chip: L298N.\u003c\/li\u003e\n\u003c\/ol\u003e\n\u003ch4\u003eSpecification:-\u003c\/h4\u003e\n\u003cul\u003e\n\u003cli\u003eDriver: L298N Dual H Bridge DC Motor Driver IC \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eDriven part of the terminal supply area Vs: +5 V ~ +35 V; such as the need to take\u003c\/li\u003e\n\u003cli\u003epower within the board, the supply area Vs: +7 V ~ +35 V \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eDriven part of the peak current Io: 2A \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eThe logical part of the terminal supply area Vss: +5 V ~ +7 V (can take power within the board +5 V) \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eThe logical part of the operating current range: 0 ~ 36mA \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eStorage temperature: -25 Deg C ~ +130 Deg C \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eOther Extensions: control of direction indicators, the logic part of the plate to take power interface.\u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eDriver Board Size: 55mm * 60mm * 30mm \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eDrive plate Weight: 33g \u003cbr\u003e\n\u003c\/li\u003e\n\u003cli\u003eOther Function\u003cbr\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch4\u003ePackage Include:-\u003c\/h4\u003e\n\u003cp\u003e1xL298N DC Motor Driver Controller Module\u003c\/p\u003e","brand":"Ashid Home Store ","offers":[{"title":"Default Title","offer_id":67935762350446,"sku":null,"price":190.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0970\/9935\/0382\/files\/l298n_1_preview.webp?v=1793373367","url":"https:\/\/ashidhomestore.com\/products\/l298n-dc-motor-driver-controller-module","provider":"Ashid Home Store ","version":"1.0","type":"link"}