Let's Make Robots!

L298 Compact Motor Driver Kit


Vendor's Description: 


This is a motor driver that I like because of this:

  • It is usable from 6 to 50V, at up to 4A total output current
  • It has a 5V output, so you can just hook up any battery (above 6V), and then hook your Microcontroller up to this motor controller
  • It has LED's to indicate that the motors (should be) going

it is controlled by setting pins high and low, and that is..

  • Bad because it takes up 4 output pins
  • Good because the beginner does not have to worry about serial or i2C or whatever that can be frustrating

I often find that I have lots of spare digital input ports on the Picaxe that I tend to use.. and these can be used as output for this, so in fact it feels like it uses "no pins at all":

The input pins can be used as output, but not to transfer serial or i2C, so for me this sollution often uses a pin less than other motor controllers.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
How would i go about conecting it to an arduino, you say it uses 4 output pins does this include the enable pins?
I think the manual explains it quite well, it just needs 4 pins to be high / low, to get instructions in what to do with the 2 motors..

I use to this circuit. This is my design :)

l298devre1.jpg

l298devreust.jpg                          l298devrealt.jpg

 

 

 

 

sweet

How do you use a Picaxe digital input as an output?

high portc 2

That will make the digital input 2 .. low as a matter of fact - if you use the standard picaxe 28 board

low portc 2

- will make it high!

It is something to do with sinking or whatever, I never figured it out, and aparently I am the only one in the world who experiences this :)

But the keyword is "portc"

Another keyword is dirsc. Read appendix E of manual 1.
How do you do that?
How do who do what?
If I have seen this two months ago many things would be different today!