i recently bought L298 but i do not know how to connect it with motors and Arduino UNO R3.
This is the picture of my L298.If someone will help it will be thankful. http://postimg.org/image/lolg1ej3h/ http://postimg.org/image/po3k7mvqd/
I am making a obstacle avoidance Robot With Arduino UNO R3,L298,2 Motor and hc sr04.
You attach the motors to mt-1 and 2, and the MOTOR power to the one marked 12V and GND by the look of it.... or presumably 9V or whatever if your motor isn't 12V.
Then you put 5V on the EN of each motor: that can be hardwired 5V, or from an i/o pin, and it may be PWM'd for speed. Then put high / low or low / high on the cw / ccw pairs for direction.
Also take a wire from your 298 board GND to a GND on Arduino.
Husnnain:
What stands for cw and ccw and how to connect it with arduino
ClockWise and CounterClockWise.
You choose 4 digital pins and connect them to those cw and ccw pins; one pair is for each motor.
Then you use digitalWrite to set cw high / ccw low for one direction, and cw low / ccw high for the opposite.
You can connect the en pins (en = enable) to 5V for permanent enable, or to a digital pin for high / low (=enable / disable) or you can analogWrite from a PWM pin for speed control.
If all of the above doesn't make sense then you need to start here.
Husnnain:
I have a solder can you give me suggestion which pin i should connect to another
It doesn't matter. As long as you don't use 0 and 1, and if you need PWM make sure you use a pin marked ~.
Nagging me in PMs is not making me respond sooner by the way; indeed it's likely to piss me off very soon. And the other day you told me I was angry when you chased for an answer. Relax.... help on a forum comes when it comes, it's not a help desk.
(As it happens, it's Sunday night here, so I may well be offline soon......)
Umm - where's the heatsink for the L298? If you ever want a snowball's chance for the L298 to output it's maximum power, you are going to need a proper heatsink. Strangely, the board shows an outline for one; that said, most small heatsinks for the L298 are barely adequate...
Mr cr0sh can you do my help.....I have uploaded pictures.I want to have example for it.Like you can see Cw and CCw on my 928 board .i simply want to ask which pin i should choose or you will choose for connecting to the arduino UNO.
Husnnain:
Mr cr0sh can you do my help.....I have uploaded pictures.I want to have example for it.Like you can see Cw and CCw on my 928 board .i simply want to ask which pin i should choose or you will choose for connecting to the arduino UNO.