Same way I think, that an led across high pin 1 and low pins 2, 3 or 4 would work. If you put a volt meter -ve into pin 2, 3 or 4 and the other probe in pin 1, it will read 5V.
So (and I am admittedly making a bit of a leap of faith here ) I'm thinking the ULN sees one pin as 5V high-ER than the others.
It works because of phantom powering via the signal lines - at least one is high and one low at
all times, so current flows through the transistors in the chip in odd unplanned ways, allowing
it to sort of work.
Don't ever do this, its a very good way to destroy a chip. No signal voltages should appear on
any pin of a chip before it is powered up. If this is unavoidable at least add a series resistor
of several kilohms to prevent large currents flowing and frying things permanently, or triggering
CMOS latchup.
But MarkT, his chip is powered with red and black from the battery, and the Arduino is powered on the usb. It's the (missing) ground between the 2 that OP is asking about.
neiklot:
But MarkT, his chip is powered with red and black from the battery, and the Arduino is powered on the usb. It's the (missing) ground between the 2 that OP is asking about.
Yes, I know. The return currents from the 4 phase signals have to come back through the other
phase signals if there's no ground return.
august30:
Well I guess I should stick to connecting all grounds.
In this case yes, but be careful of such a sweeping statement. If you have one of those opto-isolatable relay boards, the ones with the JD-Vcc jumper, and you use external power for the relay coils, you want to keep the grounds un-connected.
neiklot:
In this case yes, but be careful of such a sweeping statement. If you have one of those opto-isolatable relay boards, the ones with the JD-Vcc jumper, and you use external power for the relay coils, you want to keep the grounds un-connected.
ya sorry about that..for this circuit only i need to connect grounds.
ofcourse isolated circuits must have different grounds.
Someone might make a mistake on that because of my comment.haha