![]() |
![]() |
![]() |
|
|
|||||||
| Robotics Chat Specific to discussions about robots and the making of. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hello, I am very new to this stuff, so any help is greatly appreciated: I am trying to drive a 9V DC motor with using an L298n and a pic. I’ve installed the sensors and pic and the program and tested them, all seems to fine on that area; however, my problem lies with the L298: I've build the circuit shown on the data-sheet to control a motor using one of the build-in H bridges with 4 diodes. I’ve tested if the L298 is working as it should by checking the voltages it applies, all that seems to be working as well. But whenever I connect the motor in between the output terminals the voltage drops drastically, and the motor does not turn at all, although the current sensor shows an increase in current drawn. I am using a small motor and within the built-system whenever I connect a 9volt dc battery directly, it draws only around 150ma, so I presume L298 should be capable of supporting that current? Any ideas on what I am doing wrong? Thanks for the help.
|
|
|
|
|
|
|
(permalink) |
|
Show us your schematic please.
are your batteries/voltage supply capable of giving you enough power to run your motors. Is anything similar happening, when you don't have the pic connected to the H-bridge?
__________________
Need Help? Press F1 If that doesn\'t help you, ask me... I might know better. |
|
|
|
|
|
|
(permalink) |
|
A brand new 9V alkaline battery can supply 150mA for a few minutes then its internal resistance increases and its loaded voltage drops. It is below 7V in less than 1 hour.
A "150mA" motor might draw 1.5A when it starts or when it is stalled. 1.5A will kill a 9V battery very quickly.
__________________
Uncle $crooge |
|
|
|
|
|
|
(permalink) | |
|
I'd do as bloody-orc suggests, and start troubleshooting by getting the h-bridge and motor working without the pic, so you'll know if your pic program is at fault. That said, what's the input requirement for an L298? If the voltage requirement is greater than what the pic can provide (I'm presuming 5V? Sorry, I still don't know a lot about pics), then that could be the problem. The input voltage requirement for most h-bridges is usually scaled to their (motor) supply voltage, so check the L298 datasheet (I'd look for you, but I'm lazy today!).
Quote:
|
||
|
|
|
|
|
(permalink) |
|
The inputs to an L298 are TTL logic voltages at a very low current. If the PIC has a 5V supply then it can drive them fine. The logic supply on an L298 is 5V.
I have a huge 1A wall-wart but I have never seen a bigger 1.5A one.
__________________
Uncle $crooge |
|
|
|
|
|
|
(permalink) |
|
Hmm... As a voltage source I was using a 300watt computer power supply I've ripped apart
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| 1N5819 equivalent for use with L298 ? | pkshima | General Electronics Chat | 2 | 8th May 2007 05:37 PM |
| PIC and L298 | the dude of dudes | Micro Controllers | 10 | 18th May 2006 08:51 AM |
| L298 Heatsink Question | jasonm | Electronic Projects Design/Ideas/Reviews | 11 | 18th March 2006 10:44 PM |
| L298 Back EMF | pittuck | General Electronics Chat | 16 | 20th November 2004 03:15 PM |
| Need Assistance on Project | pwollner | Electronic Projects Design/Ideas/Reviews | 17 | 19th February 2004 10:13 PM |