{"product_id":"l298n-2a-based-motor-driver-module-good-quality","title":"L298N 2A Based Motor Driver Module – Good Quality","description":"L298N 2A Based Motor Driver is a high power motor driver perfect for driving \u003ca href=\"https:\/\/robu.in\/product-category\/motor\/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eDC Motors\u003c\/a\u003e and \u003ca href=\"https:\/\/robu.in\/product-category\/stepper-motor-and-drivers\/stepper-motor\/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eStepper Motors\u003c\/a\u003e (Now find out out a wide range of motors at \u003ca href=\"https:\/\/robu.in\/?post_type=product\u0026amp;s=Motor\u0026amp;product_cat=\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eRobu.in\u003c\/a\u003e).\r\n\r\nIt uses the popular \u003ca href=\"https:\/\/robu.in\/product-tag\/l298n\/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eL298\u003c\/a\u003e motor 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.\r\n\r\nThis motor driver is perfect for robotics and mechatronics projects and perfect for controlling motors from microcontrollers, \u003ca href=\"https:\/\/robu.in\/product-category\/electronic-components\/switches\/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003eswitches\u003c\/a\u003e, \u003ca href=\"https:\/\/robu.in\/product-category\/electronic-components\/relays\/\" target=\"_blank\" rel=\"noopener noreferrer\"\u003erelays\u003c\/a\u003e, etc. Perfect for driving DC and Stepper motors for micro mouse, line following robots, robot arms, etc.\r\n\r\n\u003cspan style=\"color: #ff6600\"\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\r\n\u003ch5\u003e\u003cspan style=\"text-decoration: underline;color: #ff6600\"\u003e\u003cstrong\u003eUsage:\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\r\nH-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.\r\n\u003ch5\u003e\u003cspan style=\"text-decoration: underline;color: #ff6600\"\u003e\u003cstrong\u003eHow it works:\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\r\nAn H-Bridge is a circuit that can drive a current in either polarity and be controlled by *Pulse Width Modulation (PWM).\r\n\r\n* 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.\r\n\u003ch5 style=\"text-align: center\"\u003e\u003cspan style=\"color: #ff6600\"\u003e\u003cstrong\u003ePins Details\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\r\n\u003cp style=\"text-align: center\"\u003e\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eOut 1:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eMotor A lead out\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eOut 2:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eMotor A lead out\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eOut 3:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eMotor B lead out\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eOut 4:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eMo (Can actually be from 5v-35v, just marked as 12v)\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eGND:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eGround\u003c\/em\u003e\r\n\u003cstrong\u003e\u003cspan style=\"text-decoration: underline\"\u003e5v:\u003c\/span\u003e\u003c\/strong\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\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eEnA:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eEnables PWM signal for Motor A (Please see the \"Arduino Sketch Considerations\" section)\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eIn1:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eEnable Motor A\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eIn2:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eEnable Motor A\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eIn3:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eEnable Motor B\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eIn4:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eEnable Motor B\u003c\/em\u003e\r\n\u003cspan style=\"text-decoration: underline\"\u003e\u003cstrong\u003eEnB:\u003c\/strong\u003e\u003c\/span\u003e \u003cem\u003eEnables PWM signal for Motor B (Please see the \"Arduino Sketch Considerations\" section)\u003c\/em\u003e\u003c\/p\u003e\r\n\u003cspan style=\"color: #ff6600\"\u003eTwo things to mention;\u003c\/span\u003e\r\n\u003cul\u003e\r\n \t\u003cli\u003e\u003cem\u003e\u003cspan style=\"color: #ff6600\"\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\r\n \t\u003cli\u003e\u003cem\u003e\u003cspan style=\"color: #ff6600\"\u003eThe PWM Pins are unnecessary if you do not want to control PWM features.\u003c\/span\u003e\u003c\/em\u003e\u003c\/li\u003e\r\n\u003c\/ul\u003e\r\n\u003ch5 id=\"step3\"\u003e\u003cspan style=\"color: #ff6600\"\u003e\u003cstrong\u003eARDUINO SKETCH CONSIDERATIONS :\u003c\/strong\u003e\u003c\/span\u003e\u003c\/h5\u003e\r\n\u003cdiv class=\"step-body\"\u003e\r\n\r\n\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\r\n\r\n\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\r\n\r\n\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\r\n\r\n\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\r\n\u003cul\u003e\r\n \t\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\r\n \t\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\r\n\u003c\/ul\u003e\r\n\r\n\u003chr\u003e\r\n\r\n\u003c\/div\u003e\r\n\u003ch4\u003e\u003cstrong\u003eFeatures:\u003c\/strong\u003e\u003c\/h4\u003e\r\n\u003col\u003e\r\n \t\u003cli\u003eMaximum motor supply current: 2A per motor.\u003c\/li\u003e\r\n \t\u003cli\u003eCurrent Sense for each motor.\u003c\/li\u003e\r\n \t\u003cli\u003eHeatsink for better performance.\u003c\/li\u003e\r\n \t\u003cli\u003ePower-On LED indicator.\u003c\/li\u003e\r\n \t\u003cli\u003eDouble H bridge Drive Chip: L298N.\u003c\/li\u003e\r\n\u003c\/ol\u003e\r\n\r\n\u003chr\u003e\r\n\r\n\u003ch4\u003e\u003cstrong\u003ePackage Includes :\u003c\/strong\u003e\u003c\/h4\u003e\r\n1 x L298N 2A Based Motor Driver Module - Good Quality\n\u003ch2 style=\"color: #b80000;\"\u003eUseful Links\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/en.wikipedia.org\/wiki\/Motor_controller\"\u003eMotor controller - Wikipedia\u003c\/a\u003e\u003c\/li\u003e\n\u003cli\u003e\u003ca href=\"https:\/\/en.wikipedia.org\/wiki\/H-bridge\"\u003eH-bridge - Wikipedia\u003c\/a\u003e\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"REES52","offers":[{"title":"Default Title","offer_id":52221516021927,"sku":"IR0004220","price":111.02,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0618\/9042\/9095\/files\/B1_2080dc0d-904a-461d-8c8b-3cd24a98432b.jpg?v=1796401342","url":"https:\/\/rees52.com\/products\/l298n-2a-based-motor-driver-module-good-quality","provider":"REES52","version":"1.0","type":"link"}