L298n Stepper Motor Driver Controller Board Manual
Usage: H-Bridge's 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. How it works: An H-Bridge is a circuit that can drive a current in either polarity and be controlled by.Pulse Width Modulation (PWM). 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 a 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.
- L298n Stepper Motor Driver Controller Board Module Manual
- L298n Stepper Motor Driver Controller Board For Arduino Manual

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. 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. The Arduino code sketch is pretty straight forward. 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 “speedPin(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.
Step 4: Arduino Sketch Example. This code example I wrote to allow a serial monitor program such as Putty to control the L298N Dual H-Bridge Motor Controller via a keyboard with key presses. Controls: Key. Motor 1 Forward 2.
Motor 1 Stop 3. Motor 1 Reverse 4.
L298n Stepper Motor Driver Controller Board Module Manual
Motor 2 Forward 5. Motor 2 Stop 6. Motor 2 Reverse Code:. Fixed the formatting issues : Download the attached L298NDualHBridgeKeyboardControlReichenstein7.ino Alternate Download. I got the same problem supplying 12V to power my stepper motor. Apparently the battery was supplying too much power to the driver and after awhile, the steppers will stall, probably due to the chip overheating.
Essentially, the solution is to use the EnA and EnB pins to control the power going to the stepper. What I did was: 1) I kept the 12V Jumper ( Labelled number 3 in on the chip, contrary to instructions online that indicated that is should be removed if supplying 12V.

I tried removing it and the entire chip would not function at all. 2) I took out the jumpers from PWM pins EnA and EnB. I connected two Arduino Pins with PWM functionality (Eg 45 and 46 on the Arduino Mega) to EnA and EnB.
In the Arduino Code, I used analogWrite for the pins and adjusted the written value (should be around 50-200 depending on power source and stepper motor specs) until the power supplied to the stepper is just right so it can rotate over a long time without the driver overheating). Note 1: Maximum value for analogWrite is 255, which is equivalent to attaching the jumpers back onto EnA and EnB pins, which means full power from the battery is being supplied to the stepper. So a value lower would reduce power to the stepper and prevent overheating.
Note 2: I use 'power' in my answer because I am not sure whether the voltage or current is at fault here. Maybe an electronics expert could shed some light on this? Yeap that's the answer I came up with based on my experimentation with this motor driver. Most tutorials on the internet disregard the En pins when teaching how to wire up stepper motors, which is a solution that will only work if your battery source is tailored to the stepper motor you are using. Hello, i have the same motor driver, and i am trying to make an obstacle avoiding car. I am using scrap parts from old rc cars.The dc motors are being powered with 4X 1.5v batteries, trgough the driver, but the left motor gets 2.4 v and the right motor gets only 0.5 v, do you know what trhe problem would be? If i lift the car from the ground the motors starts to spin, but when is on the ground they will not move, so they cannot push the car, do you know where it is the problem, van you help me?:D Here are some pics:D Thanks!
I saw no indication that you could hook these up in parallel in the data sheet, if so, please point that out to me. Most things like this you can't parallel because the small differences in voltage when they switch is a problem. When you do attempt this, at minimum you need some kind of resistance to allow the load to balance. That is usually what you don't want to do as you want it to switch with the lowest on resistance. So adding resistance is futile ^-^. IgorS32 pointed this out to everybody in his note about the bad practice of tying different power supply outputs together. It indicated (to me, the datasheet) that you can pull 4 amps through one side or the other (only one motor port can be used.) Or something like 3.25 amps on one motor and 750 milliamps on the other, adding up to 4 amps total.
This makes sense since the heat dissipation (heat sink) is probably connected to both controllers and if one is unused it will change the others thermal characteristics, as far as how much heat (amps) it can tolerate. Half (or more) of these questions would not be asked if they would use the thing their hands are on. I googled 'l298n current limit', scrolled down and found the following entry 'Motor driver: L298N. Motor channels: 2. Maximum operating voltage: 46 V.
Peak output current per channel: 2 A. Minimum logic voltage: 4.5 V. Maximum logic.' Took me less than 30 seconds.
This is not demeaning but it is stress the education of the possibilities of these search engines and their incredible caches of data. It is only to help them learn what a great tool it is and how under. Probably found their way here with a search engine anyway. Putting the load on people like Reichenstein7, who did such a great article!;p If you require 50% more than the devices' limit (not only in amps, but anything else), forget that part and move on.
By this description it's 300% more power than possible with this device. IMHO:-O The dumbest person can ask the smartest man questions he cannot answer. Sorry it was so long.
Let's build a Bluetooth/ WiFi controlled FPV Drone! RoverBot is a highly educational Arduino based ATV-drone. It's simple to make, easy to program and is a great starter project for hobbyists! The bot is very fast and agile, not to mention of it carrying two '29,000 rpm' motors! It can surely outrun humans regardless of the terrain you're on! This RoverBot is a soft prototype.
My next agenda is to make v2.0 water resistant, shockproof and dirt-proof. The next one would probably carry metal-gearboxes and long range TX RX modules.
How Do You Control It? RoverBot is based on the famous Arduino development board. Since Arduino supports a wide variety of shields and modules (RC/ WiFi/ Bluetooth), you can choose any type of communication. For my setup, I'm currently using my JY-MCU Bluetooth module, as seen in my previous robot project. You can control RoverBot with your smartphone (via app) and display the FPV footage on another smartphone. Although, Bluetooth has limitations when it comes to range, that's why I'm planning to buy a xBee module to get at least 1km of control. Endless Possibilities!
- Rescue Drone (ex. Redcross Drone) - Home Surveillance Bot - Scientific Research Data logging Bot - Laser Tag FPV Bots!
RoverBot is equipped with: - 2x Tamiya PlamaDash Motors (29,000rpm - Carbon Brushed) - Tamiya Twin Gearbox (Configured @58:1 gear ratio) - Tamiya Track and Wheels Set (With Peg Board) - 7.4v - 950mAh Turningy LiPo Battery - Pololu 2x30A Motor Driver - JY-MCU Bluetooth Module - 5MP Wireless IP Camera - Arduino Uno Building The Bot In 15 Minutes (Fast Forward) TAKE NOTE: To prevent the brushes from wearing out quickly, the Rover's motor driver is set to half speed (200/400). Remember, these motors are designed to operate at 3v not 7.4v. FPV In Action: Garage Test - Drifting On Tiles Indoor Test: Outdoor Off-road Garden Test: The Phone App/ Interface - Used on my 1KG Sumobot Please Support My FB Page: Step 1: Photo Gallery - FPV Rover in Action (update: 5/10/14). Here's the list of my parts. BTW, wait for a thanksgiving sale in, I saved 55% from their ridiculous discounts. Read First Before Purchasing I bought most of my parts locally, that includes all the Tamiya products and my Arduino Uno clone, the rest were bought online. Please canvas for cheaper prices.
Compared to where I buy Tamiya products, Pololu retails Tamiya kits that costs 2x more. If you live in the Philippines then you are lucky enough to have 'Lil's Hobby Shop' (located @ SM Megamall & Glorietta 4).
Parts & Matterials (50% Alternatives): -Sugru Sachet/ Hot Glue Tools: - Leatherman - Screwdriver Set - Dremel Rotary Tool Step 3: Assemble the Twin Gearbox. Time to unbox the gearbox! Simply follow the instruction manual or just refer to the video tutorial below. The Tamiya Twin-Gearbox should come with two stock motors, grease, wrench, gears & housing. HUGE REMINDER: USE THE '58:1' GEAR RATIO!
Tips & Reminders: - Grease the gears after assembling the gearbox. (not before) - Don't forget the metal spacers, or the gearbox will screech.
Replace The Stock Motors With Tuned Motors (go to step #3) - Go for the 58:1 gear ratio, it's faster than the 204:1 gear ratio. I'll be posting my tutorial on the Twin-Gearbox assembly soon. Sparkfun - Tamiya Twin Gearbox Assembly Tutorial.
If you haven't explored the world of Tamiya yet, their 4WD mini series offers a wide selection of fine tuned motors, gearboxes, wheels & tracks. The Twin-Gearbox includes two Mabuchi (stock) motors, they only run for about 10,000 rpm, that's kind of slow for rover drone designed to be fast and agile. So far Plasma Dash Motors are still the fastest in Tamiya's 4WD mini motor series. The motors may be pricey but, you'll get the most out of your money. It's a carbon brushed motor that spins 29,000 rpm (@3v) and 36,000rpm (@7v). The motors are designed to operate with a 3v power source, increasing the voltage would result to a higher rpm rate but would wear out the c.brushes a lot quicker. It would be ideal to stick with a 3v-6v output.
With the Pololu 2x30 Motor Driver and a 2 cell LiPo battery, the Arduino's program must be set to a max speed of 320/400, you'll soon find out what this means in the coding step/ page. Stock Motors (Mabuchi FA-130RA) If you guys are curious, the Twin-Gearbox comes with two Mabuchi FA1-30 stock motors. They operate at voltages between 1.5v - 3v. Adobe acrobat xi keygen invalid request code. Overpowering it would result to the burning of brushes. There's a downloadable datasheet below with a much detailed description of the motors. So Why Not Go Brushless? BL motors cost more, draw more current and isn't available for the mini motor format (size).
Plasma Dash vs. Stock Motors: If you want to make your bot a lot faster then upgrade them with two Plasma Dash motors. The Plasma Dash is 3x faster compared to the stock motors that came with the Twin-Gearbox set. So what are the downsides of the upgrade?
Obviously, a faster motor needs larger batteries and a higher Ampere rate. I've been using the for over three years. Pololu's shield can run two 30 ampere brushed motors! Pololu has done a great job.
The shield is bloody genius! It performs really well in competitions, it's extremely reliable and virtually indestructible!:D The Arduino R3 Motor Shield is also a great choice, but can only support 4A motors. On the other hand sells cloned versions for half the price, I haven't tried them yet but the reviews are good. My Preferred Choices: 1st.) 2nd.) 3rd.) 4th.) Want to save money? Make one for only $8.00!
Read more about this in the next page! Or go directly to my instructable guide: Step 6: OPTIONAL: Build Your Own Motor Driver (for Only $8!). THIS STEP IS OPTIONAL, YOU CAN SKIP IT RIGHT AWAY! Since most hobbyist prefer to be more practical, you can consider making one for only $8.00! You can read my full instructable guide here: Specs: Voltage Range: 5- 50 volts Current Range: 2-4 Amperes Power: 25w @75°C Working Temparature: -40°C to 150°C Board Compatibility: Arduino Uno Motor Outputs: 2 Motors (Left & Right) Possible Robot Movements: Left, Right, Forward, Backward & etc. PWM Pins: 12&11 6&5 Step 7: Assemble the Track Set. After finishing the Twin-Gearbox's assembly, you can now unbox your plate and track set.
When you open the track set, you'll find 1 gear wheel and 3 types of rollers. Don't follow the manual, we will be using a different configuration. Steps Simple Refer To The Photo or Video: 1st.) Mount the Twin-Gearbox by screwing it on the last hole of the plate set. 2nd.) Push the gear-wheel toward's the twin-gearbox's axle. 3rd.) Screw the 1st hole of the L-shaped mounts on the 6th hole of the plate set.
4th.) The largest roller goes to the 1st hole of the L-shaped mounts. 5th.) Mount the rear roller's mount at the last hole of the plate set. 6th.) The rear end of the plate set uses medium sized rollers. ) You won't be needing the small rollers.
Step 8: Mount the Arduino & Motor Driver. You can buy the from, for $8, don't worry about the shipping, it's free. There's a gap between the Arduino board and Twin-Gearbox, better use that gap for the BT module. I used a blob of sugru to mount the Bluetooth module. How Does It Work? So far, I know that the app sends characters/ bytes to your Arduino board via Bluetooth (serial communication).
Your Arduino, then decodes these by using conditional statements. (will be discussed on the programming page/ step) Wiring Instructions: - 'TX of Bluetooth Module' goes to 'RX of Arduino' - 'RX of Bluetooth Module' goes to 'TXof Arduino' - 'VCC of Bluetooth Module' goes to '3.3v of Arduino' - 'GND of Bluetooth Module' goes to 'GND of Arduino' - The State & Key pins of the BT modules are unused.
Upgrade Please: Better upgrade the Bluetooth with a RF/ xBee/ WiFI transceiver for a longer range of transmission but if you prefer using a smartphone and app, you can stick with the BT module, although you would have a limited range of 20m. Proximity sensors are optional, you don't need them. Step 10: Mounting the IP Camera. Sorry but it's up to you on finding a cheap IP camera.
I bought mine locally from a random store I saw weeks ago. IP cams connect to WiFi networks, that means that the camera doesn't need a separate Arduino shield for data transmission because the camera itself has a built-in WiFi transmitter. All you need is to power and connect it to a 2.7GHz antenna to extend the range. My IP cam requires a +5v power supply, luckily Arduino has a regulated +5v pin, that's why I don't have to make another 7805 regulator for my cam. Step 11: Connect the Battery. Lithium Polymer batteries are probably the most powerful batteries existing today.
They are small in size, has a very high battery capacity, and has a high 'c' rating. LiPos are also 7x-10x more power than AA (NiCd/ NiMH) batteries.
Risks Of Lithium Polymer: We all know that Lithium-Polymers bloat, and when they bloat they start to become useless. LiPo batteries are high maintainance batteries that need to be recharged once in every 2 weeks otherwise they'll bloat. LiPos also need special balancing chargers, trickle chargers would destroy them. Step 12: The Arduino Codes (C). Future Plans/ Mods: - Replace Bluetooth with xBee transceiver module for longer range! - Larger battery capacity (2 cell - 1,300mAh LiPo) - Mounted Airsoft Mechanism - Gripper/ Mechanical Arm - Add A Water-Tight Case (for electronics) Ideas!
1.) Laser Tag RoverBot - Create 4x FPV RoverBots, add a laser turret at the back of each bot. The goal is to hit the opponent's at the laser sensor. Every hit sends send a score to the laptop via WiFi. When the game ends, players can view their score on laptop and also view the recorded FPV replay footage.
2.) Autonomous Airsoft Rover Turret - multiple RoverBots protecting your property. All gathering data and sharing them to one computer via WiFi. Uses IP cam to detect intruder, if face = not recognize then fire airsoft at target. !VIDEOS COMING SOON. Cool, thanks! Good question!
If you are using stock motors then yes, if you upgraded your motors with Tamiya's PlasmaDash then no. The stock motors that I am talking about are the ones that come with the Twin-Gearbox set. Those motors draw less current compared to the Plasma Dash motors. The L298N can only handle 2 amperes per channel, 4 amperes when combined. The Plasma Dash on the other hand needs at least 4 amps per motor, that will require two L298N chips (aka/ bridging H-bridges). You would also have to consider the 'c' rating of your LiPo batteries (discharge rate), it indicates how fast it is for the battery pour-out all of its power in a short period of time. LiPos have high 'c' ratings, it's like carrying a car battery on one tiny robot but smaller in size!
L298n Stepper Motor Driver Controller Board For Arduino Manual
Formula: (C-Rating) x (AH) = Maximum Constant Amp (950mAH 50C Lipo Battery): 0.950AH X 50C = 47.5A. I'm pretty late to the punch answering the question, but maybe it will be useful to someone. Pololu updated the driver versions from the used here to an in March 2014. According to the company, most users will not notice the difference with the updated revision.
Compared to ash02a, the following changes were made:. Pass-throughs were added for the four additional pins (SCL, SDA, IOREF, and an unused pin) on the Arduino Uno R3 and all newer Arduinos.
The additional capacitor through-holes, the Arduino power jumper, and the upper block of pin-remapping jumpers (for Arduino pins 8-12) were moved slightly to make room for the new pass-throughs. Different reverse-protection MOSFETs are used. (This does not significantly change the electrical or thermal performance of the shield.). Great Instructable! I'm pretty new to this stuff, so please be patient with me.
LOL I recently bought the JY-MCU referenced above because it sounds like exactly what I need. I'm just not sure how to use it or if it will work. In my attempts to start simple and learn as I go, I bought a Zumo Robot for Arduino from Pololu. All you do with it is program your Arduino (I have a Leonardo), hook it up, and go. All I've done with it so far is program it to line follow.
Anyway, my question is this: Can I use the JY-MCU and the Android app so that I can use my phone to control it? If so, how would I go about doing so? Thanks for your help!