Try a ceramic 0.1uF cap across the power supply to the chip it might be oscillating.
No have them both.
but now it take a bit more time to get there
Quotebut now it take a bit more time to get thereSounds like it is supply related.The next step would be to look at the signals on an oscilloscope but I guess you don't have one.So you are just shooting in the dark.Some shots you could make is to see if things improve with the wires as short as possible. Add a series inductor ( as big as you can get ) in line with the high voltage positive supply to the chip.
This could be a Diod problem. The diods for a L29x needs to be FAST recovery diodes. If one of them is not fast enought (=fried or faulty) the PWM will produce a backcurrent that is deadly for the L29X. (= get fried because of heat). The process when that this is happening is FAST and results in fire and almost explosion. I have a coule of fried L298N :~I use 24V to a L298N and when it fries it connect the IN1-4 on L298N with 24V -> Arduini digatal pins. This have fried my Arduino UNO a couple of times. I found a optocoupled L298N on ebay. A bit more expencive but alot cheaer than the Arduino UNO.
Do you read datasheets ?The device is supposed to be mounted on at least a copper surface of certain size for heat dissipation.The datasheet is clear about that, it's shown on top right part of page 1.A vero board (as you are using) doesn't do this for you, so you have to think of some other way to get it cooled.Directly next to that on the left side, the datasheet tells you the device can handle 600 mA.Earlier you were asking about H bridge drivers for over 1 A.The diodes cannot be incorrect types, because they are integrated and have been so for 27 years.A device will not last this long if it has such design flaws.
what do they mean heat sink
no i didn't say the diodes are not right, i was asking if it is necessary to put more diodes connected to the ICby the way there is 2 pins which are Ground and heat sink, what do they mean heat sink where do you have to connect that pin to make the chip cool down ?
Quotewhat do they mean heat sink This is the place where you can attach some metal to help get rid of the heat from the chip. If you have a PCB then you can use a patch of solid PCB track to help cool the chip, or you can clamp an extra piece of metal onto it.