L298N Dual H Bridge Motor Driver for Arduino-
$32.7
$53.63
Arduino Sketch Considerations: The 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. The “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. The int“speeding(letter)” pins need to be connected to a PWM pin on the Arduino if you want to enable speed control through PWM. As a quick cheat I have included a list of PWM pins for the main two types of Arduino’s I use: AT MEGA – PWM: 2 to 13 and 44 to 46. Provide 8-bit PWM output with the analogWrite() function. UNO – PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the analogWrite() function. Note: Built-in 5v power supply, when the driving voltage is 7v-35v Features: Current Sense for each motor. Heatsink for better performance. Power-On LED indicator. Drives up to 4 motors. Package Includes: 1 x L298N Based Motor Driver Module – 2A (Standard Quality)
Motor Drivers