![]() |
![]() |
![]() |
|
|
|||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hi i have a problem and wanted to check somming.
I am using a L298 to drive 2 DC motors, but i missread/understood the datasheet and did not realise the diodes were needed. Now my question, would it be possible to 'blow' the L298 without the diodes in? Half the bridge is not working (well it is able to run a LED but not a motor) and the second half runs the motor very slowly. When i apply the 7.2V to the motor terminsals they work, so its not a motor problem. The L298 has worked b4 in this setup so its not wiring... Oh and it blew my 18F452, the CCP2 module is broken and logic high is measured as 2V (dont worry i got a new one comming). any ideas? I am buying a new chip but i want to make sure i have solved the problem. Regards, - Martyn |
|
|
|
|
|
|
(permalink) |
|
sounds like it is the chip, if you havent changed anything else and it just quit working, and you double checked the motor.
On a side note, I used one of these IC's once and I shorted something out, the chip exploded and the IC and my breadboard caught on fire :shock:
__________________
Jeff Zimmerman To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to be. |
|
|
|
|
|
|
(permalink) |
|
ok well i will put the diodes in and use a cap on the driver ic next time!!!
me = dumb sometimes, but i did not get electricuted, so it was a pretty good day on thw whole. |
|
|
|
|
|
|
(permalink) |
|
When I put in my electronics orders, I'll usually buy enough for 2 circuits in case of situations like this. Because I know I'll screw up and be up a tree without a paddle.
__________________
Jeff Zimmerman To the optimist, the glass is half full. To the pessimist, the glass is half empty. To the engineer, the glass is twice as big as it needs to be. |
|
|
|
|
|
|
(permalink) |
|
just wan to confirm something. Are L298 drivers capable of accepting PWM signals?
Never seem to mention anything in the datasheet |
|
|
|
|
|
|
(permalink) |
|
http://www.iitk.ac.in/eclub/Circuit/l298.htm
http://www.dprg.org/projects/1998-04a/ You use in1 & in2 for direction and enablea for pwm for motor 1 You use in3 & in4 for direction and enableb for pwm for motor 2 Looks like it I had these links on my scrath pad as i had the same thought yesterday. I noticed that DPRG uses a 1000mF cap on the Vs (motor supply) and GND lines, i will follow. I will also get a 0.1Ohm resistor for the current sense (will have to be wirewound as i cannot find normal 0.1Ohm resistors that are not SMD) |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
well i know RS and farnell do em. But they dont accept solo cards. Doh! I will stick with rapid electronics as they accept solo cards.
|
|
|
|
|
|
|
(permalink) |
|
I thought of building my own H bridge cct from scratch for the experience but looks like the best way to solve this is to use the IC drivers. sigh. For this L298 driver, the maximum current rating is at 2 Amp per channel. Motor stalling can be rather dangerous for my 12V motor. Any suggestion for protective ccts? or should i just place a buffer interface to act as my fuse.
Also, dont really understand the current sensing pins. When it said limits the current, does this mean that it wont go above the Vs/R or Vs/R constant current? THX ALOT. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
According to the datasheet, the maximum quiescent supply current,Is to the motor is in mA. Do we need a resistor at the Vs pin then?
I dont find it logical on how does a few mA able to output a maximum current of 2A. |
|
|
|
|
|
|
(permalink) |
|
Ok well quiescent current is when its not driving anything. So if u put enable low it will only use 4mA, assuming a resistor of 0.1Ohm is used:
P = iir = 16r = 1.6mW But at the peak current of 2A P = iir = 4r = 0.4W So thats where the numbers come from... |
|
|
|
|
|
|
(permalink) |
|
Um...the resistor of 0.1ohm where are u referring to? at the Vs? i dont think it is required or at the current sensing?
By the way, pittuck, pls dont mind teaching me how to use the current sensing. How do u know the value of resistance to place. and what current isit tryin to limit? |
|
|
|
|
|
|
(permalink) |
|
its for the current sense pin.
this pin enables u to read the current which is being supplied to the motors. which can be handy... |
|
|
|
|
|
|
(permalink) |
|
According to the website you provided,
http://www.iitk.ac.in/eclub/Circuit/l298.htm It said here that the current sensing here will control the current according to VS/R and will be provided to the load. If the Vs is 12V. wouldnt the current be EXTREMELY big? 120Amp. Mind teaching me how u did u attain the value of 0.1ohm? |
|
|
|
|