Pages: [1]   Go Down
Author Topic: Something I don't understand about L293D  (Read 618 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm using a L293D to drive a bipolar steppr motor. The circuit I'm using is the standard (see attached image).
It seems to work, but to my surprise, if I don't connect the GND pins 4,5,12,13 to ground, the engine still works !
Somehow, it must be using power from USB instead of the DC external source.
This is annoying as I was trying to measure the current that goes through the coils using a shunt resistor between GND line and pins 4,5,12,13.
Do you understand what is going on here ?
Thanks !


* bipolar_L293D.jpg (244.91 KB, 800x600 - viewed 33 times.)
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12048
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, you are attempting to melt the input protection diodes on the logic inputs by using them as a high-current ground connection.  Don't do this!  Measure current on the high-side motor supply.
Logged

[ I won't respond to messages, use the forum please ]

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 86
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

MarkT,
I'm not sure I understand you.
As I saw the L293D was using too much current from the digital arduino pins, I have used 10K resistors to limit it.
Now it seems to work fine.
I think that a differential ADC plus a shunt resistor is needed to measure the current in a bipolar stepper. So for the moment I won't be able to detect stall condition.
Logged

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12048
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ah - perhaps the current's returning to the +5V rail or some such - either way that's not going to do the chip any good having the ground disconnected - especially as the ground pins are also heat-dissipating.
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: