Oh, where did I go wrong? - Circuit Quiz (Mystery Solved!)
By GroG
2008-07-20 20:41
2008-07-20 20:41
I built this circuit:
a TTL input on s0 is supposed to turn on Motor 1, and a TTL input on s1 is supposed to turn on Motor 2.
Why the heck does both motors go on when either S0 or S1 go to 5V?
It never ends to amuse me how many ways I can goof stuff up...


that's a puzzle for sure!
That sounds incredible..
Lame question, I know, but: are you sure everything is connected correctly?
My only other theory is that when one of the motors start, the 12 volt dips slightly because of the large power consumption. This could cause the other circuit to trigger.
What kind of power source are you using? maybe the it cant deliver enough Amps. Since the only wire between the two circuits is the 12V, that seems to be the problem, somehow.
/ vzz-clck-"Maneuver"
Lame question? - a very good
Lame question? - a very good question. I'll go back and verify again - as far as the voltage dip, I don't see why that would cause the other circuit to trigger. The source is 400 watt 12 v power supply the motor is fractional amp, so I don't think that is it. I'll poke at it a bit more...
Specs?
Here is the link. I remember
Here is the link. I remember you are supposed to bias transistors... hmm maybe you are on to something.
I have to admit that I hooked the darlingtons up to a ttl ouput without biasing them and it "seemed" to behave just fine.
If I remember correctly, an effectively biased transistor wastes less power - I guess i'm shorting them directly... I was kindof guessing that since its going through 3 gates that it might be enough resistance ... (bad thought)
Light hole?
Perhaps there's a little hole in your opto isolators and some of the light is escaping from the first one into the second one?
On a serious note, though, I can't see anything wrong with your circuit. Buzz it right through.
First thing, pull the motors out of the circuit and measure the output voltage between +12 and the darlingtons. That'll answer the above question: are you sure you're not demanding too much oooph. If you get the wrong outputs, one of your your TIP122s might be stuffed.
Second, if you're still convinced the prototype hardware is good, pull the MCU out and apply +5V directly to the inputs of the opto isolators and see if it works. If it does, either your MCU is stuffed or your code is stuffed.
A quote from the Aerospace Indistry: "Always make sure the software is at fault. It's cheapest to fix."
Thanks Boa, I like the
Thanks Boa,
I like the light idea, and I'll do the first test. There is no MCU currently hooked up - so no code. It might be the nut between the power supply and the circuit (me)
Good plan
btw
Where does the circuit diagram come from? Your own design or from a page with more info on it?
/ vzz-clck-"Maneuver"
Own design, which might have
Own design, which might have something to do with the proglem :) - the specs on the opto-isolator are here
Its a surface mount which makes it a bit difficult to breadboard.
It's 15 years since I
It's 15 years since I finished my electronics degree, so forgive me for getting a little rusty. I need a walk-through of this circuit..
When 5V is applied to the IRdiode inside the 630, the phototransistor opens up and lets through the 12V from Collector to Emitter. The 12V applied to the Base of the double-transistor-dingy (scandinavian hitech jargon) connects the motor to GND.
Is this a correct guess?
/ vzz-clck-"Maneuver"
yep, you got it -
yep, you got it -
double-transistor-dingy = big switchum (american) = darlington switch
15 years, huh?
15 years is a long time. We stopped using valves since then. Transistors are the same, just smaller and they don't light up so much.
Joking aside, your reading of the circuit is the same as mine, HOWEVER, I just spotted the LEDs in series with the opto isolators. Try taking them out. There's a voltage drop across all those LEDs and if your battery's a bit rundown the optoisolator LEDs won't light.
But BOA,the issue is too
But BOA,
the issue is too much light - or at least too much juice is being spread around - not too little. 1 signal -activates-> 2 motors
I'm not so sure
Yeah good point, I guess it
Yeah good point, I guess it is floating - I thought that just messed up FETs - I thought that transistors worked on flow of current through the base - so floating "should" stop Collector -to-> Emitter...
But maybe its not floating but "bobbing" like a cork --- hmmm
you may be on to something there - JIPs suggestion of pull downs might solve the problem ... also it might be the TTL logic which I was using before the optos had their own pull-downs - I'll check
back to the lab ... bwah hahaha
Have you tried adding
Hi Jip,strange, I have not
Hi Jip,
strange, I have not tried it but my electronic gut feeling, is you are right... but i don't understand why..
The only experiment I have tried so far is cutting motor 2's E -> to ground. Which did stop motor 2 completely (not really proving much)..
So any guesses as to why? - Why would the opto Emitter be leaking on the base of the Darlington?
Some more info would probably help:
I hooked this whole thing up to a TTL output without the opto-isolators - It appeared to behave just fine.
With the optos I soldered all of it together freeform - I now am a believer in not using freeform, since it does not lend to easy diagnostics or modifications
Ah ha !The current manual
Ah ha !
The current manual for my interface controller (PCI DIO 96) did not have any references - but the previous model (PC DIO 96 PNP) manual states this
"The PC-DIO-96/PnP facilitates user-configurable pull-up or pull-down. Each DIO channel is connected to a 100 kW resistor and can be pulled high or low using jumper W1."
So when I hooked it up directly to the DIO card there was a pull down involved...
I'll hook one up and see how it behaves...
Thanks for the suggestion JIP!
All right my friends,The
All right my friends,
The mystry is over - several lessons learned :
1. an ego only gets you in trouble (had i posted a picture, one of you would have immediately found it - and had a good laugh) - i did not post it for 2 reasons (a. not easy getting pictures downloaded to my computer (incorrect usb cable) b. i was embarassed about such a crappy soldering job i did)
2. show the big picture first, its good to have schematics. but usually you should start with the "big" picture
3. never underestimate what a dufus i am
Thanks for going over it in such considered detail...
Now the solution........ drum roll please....
3+ Days I spent trying to figure out why more than one motor would turn on when a single signal was high..
Notice THE BOLT THROUGH ALL OF THE DARLINGTONS !!!!!! I originally thought when I was putting it together - hey, a nifty heat sink - and it will help stabalize everything as i free-form solder this crud together..
AHAHHAHAH - I forgot the heat sink was the collector and I effectively wired all the collectors together!!
What a maroon what a noob, thank you thank you ....
next time i'll start with the picture of my cruddy soldering job.
Thanks for all your attempts of help :)
LOL! That sounds like
LOL! That sounds like something I could have done too! I really like the whole assembly - reminds me of my first line sensor where 10 LDRs where mounted on a piece of cardboard from a cpu box and the connections were a mess of unisolated wires :-)... why the hell did they invent boards to solder onto? Who needs them?! :-)
Thanks for clearing up the problem for us.
Hehehe, yup, I figured there
Hehehe, yup, I figured there must be something not shown in the circuit. I've just recently been messing around with some of those TO220-packaged darlingtons too (TIP120/122's) , and it surprised me that the tab is connected to the collector, and not the emitter. I know transistors are often used in all different kinds of configurations, but it seemed like the most common arrangement would be with the emitter tied to ground, so if the tab were connected to the emitter, thena common heat sink like you have would work just fine. That's how they did it on 7805 voltage regulators -- the tab is ground, and that seemed to make sense. With the tab being the collector, I have to provide more space between my transistors to keep them from touching. Kind of a pain. Anyway, glad you got it working :)
Dan