Pin Goes Dead?
Logan
Posts: 12
I'm in the middle of a project involving 2 stepper motors, a color sensor, a BOE, and a BS2. Thus I have been using every pin available. I noticed one of the stepper motors quit working one day (after being used in the way it had been for weeks). Upon testing with a voltimeter, I deduced that Pin 10 would not go high when the program told it to.
Is it possible for just one Pin to quit working? I'm completely new at this so have no experience. I just can't imagine why it would have stopped working now.
Is it possible for just one Pin to quit working? I'm completely new at this so have no experience. I just can't imagine why it would have stopped working now.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Main:
· HIGH thePin
· PAUSE 200
· LOW thePin
· PAUSE 200
· GOTO Main
Sometimes we get fooled by meter readings -- the LED test is always a good test.· If you want to be very thorough, connect the LED as active-high and test, then retest as active-low.· If it blinks both was the output drivers are good.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Then again, the Stamp fault could be unrelated to the ULN. Sometimes these things happen. In 30 years of experimenting I've replaced a lot of banged-up chips with no concrete idea as to what did them harm.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Also attached to my stamp is a servo on pin 15 and a TAOS color sensor on pins 1, 2, 5, 6, 8.
Did I do anything wrong that might have caused pin 10 to stop working?
·· You did not connect pin 10 to the common (+) supply rail for the Stepper Motors.· This pin would connect the internal protection diodes.· But in your schematic they are not connected.· Inductive feedback from the coils could easily damage the outputs in this situation.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
· There's a CMOS micro-P, which feeds some 74HC... ICs,·which are linked to the 2803s.·
· I've found often that the 2803 gets knocked out or fails and the preceding 74HC... ICs get whacked, too, but never the micro-P.·
· I think that if you place a forward-biased·small-signal·diode in series (between) the STAMP and the 2803 you'll go far in protecting your STAMP.· They'll be·a line of defense that you lack at present.· [noparse][[/noparse] Much as the 74HC...s in my controllers.· They do serve a function, they're not sacrificial semiconductors, but nonetheless. ]
So I just run another wire from the 12+ supply to pin 10 and it should prevent most problems? I had that when the problem first occured, but due to my lack of knowledge concerning circuitry, I removed it [noparse][[/noparse]after I started talking to you]·thinking it might have been connected wrong or was not doing anything.
·· I am not sure who wrote the documentation you refer to, but I will look into it.· The V+ pin most certainly should be connected when you're driving an inductive load with the ULN.· As I have stated in the past, without that pin connected none of the outputs have the protection diodes enabled.· For some things this isn't a problem.· For example, high-power LEDs, light bulbs, etc.· But for Relays, Motors, Solenoids, etc. it should be connected.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
You may in fact just had "one of those things" happen to your BASIC Stamp. I absolutely agree with Chris that for inductive loads (i.e., relays, solenoids) the COM line should be connected, and it doesn't hurt anything to connect for-non inductive loads. I will update our stepper motor documentation schematic to make that connection. That said, I don't think inductive lash-back was the cause of the problem. Why? Each ULN channel is a Darlington pair with a 2.7K resistor in the base circuit (that connects to the Stamp). My point is that there's quite a lot of circuitry to go through before getting to the Stamp's I/O pin, and stepper motors don't have big inductors in them so it's not likely that lash-back occurred in the first place -- unless you're using an abnormally-large stepper. I've run steppers in lots of projects with and without the connection. Now, I've burned up a few ULNs, but never has a problem in the ULN come all the way back to the BASIC Stamp.
I don't know if you've been at electronics very long and if you haven't, I promise that you'll have a few more mysteries like this in your future -- it happens to all of us. We are sorry that it's happening to you now as it seems decidedly inconvenient.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax