L298N wont work

I connected a 9v batttery +ve terminal to the 12v input on the l298n and the -ve terminal of the battery to the GND of the l298n, but for some reason it just wont turn on! please help! The schematics are attached...

Capture.PNG

9V batteries are for smoke alarms, and can't provide enough current for motors.

For that matter, the ancient, weak, inefficient L298 driver will not work with many motors, either.

Post links to the product pages or data sheets for your motors.

According to your "schematic" you have nothing connected to any of the logic or control pins for the L298 so it's no surprise that it doesn't do anything.

Steve

If you stare at the motor driver long enough, thinking really hard about what you want it to do, the chances are good that it will eventually respond.

slipstick:
According to your "schematic" you have nothing connected to any of the logic or control pins for the L298 so it's no surprise that it doesn't do anything.

Steve

the power led on the l298n doesnt turn on so no use connecting the input pins to arduino

OP's pic for convenience:

bde6cc7901ddd11e9cb07eeadfa7537fa7dd0097.png

input on the l298n

It's not an L298N, this is an L298N:

Yours is an L298N module....

You should provide a link to the module. Some of those have a jumper to handle the 5V logic supply to the chip itself. If the jumper is on, the motor supply (your battery in this case) provides 5V to the chip through a regulator; in that case the 5V screw terminal is a handy 5V output. If the jumper is off, then you need to provide a separate 5V at the 5V terminal to power the logic of the chip.

I wonder what the power led on the module indicates?- logic supply present or motor supply present. I would guess the former.

Does your board have a 5V enable jumper, and if so is it in position? If it has a place but is missing, either put it back or put 5V in at the screw terminal.

In any event, you ought to provide details here to the module.

elvon_blunden:
You should provide a link to the module. Some of those have a jumper to handle the 5V logic supply to the chip itself. If the jumper is on, the motor supply (your battery in this case) provides 5V to the chip through a regulator; in that case the 5V screw terminal is a handy 5V output. If the jumper is off, then you need to provide a separate 5V at the 5V terminal to power the logic of the chip.

I wonder what the power led on the module indicates?- logic supply present or motor supply present. I would guess the former.

Does your board have a 5V enable jumper, and if so is it in position? If it has a place but is missing, either put it back or put 5V in at the screw terminal.

In any event, you ought to provide details here to the module.

thanks!!! i just noticed that i didnt have my jumper on

samythegamer:
thanks!!! i just noticed that i didnt have my jumper on

Your Mum should have noticed ;). You'll catch a cold.