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...
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.
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? Could you post a web link to the specs for the optos being used? Perhaps a resistor is needed between the 12 volt source and the collector (pin 5) of the phototransistor, 10kohm or so.
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.”
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)
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.
Good plan Yes, that’s a good idea. Put a nut between the two opto-isolators. That will block the light. If you can find a nut with no hole in that will work even better.
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.
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
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)
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
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…
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.