BSX-II Resetting
RancheroMan
Posts: 14
I seem to be experiencing a small problem with my Stamp in that it is periodically resetting for reasons unknown to me. I have since changed my program so that a reset does not return any unwanted data, however I am still trying to figure out why it is resetting.
I am powering the Stamp off a computer power supply (the entire project including a PINK and some LED’s and relays are all deployed in a computer case – sans computer!) and I have tested the output voltage – which is fine.
Any thought?
Thanks
Adam
I am powering the Stamp off a computer power supply (the entire project including a PINK and some LED’s and relays are all deployed in a computer case – sans computer!) and I have tested the output voltage – which is fine.
Any thought?
Thanks
Adam
Comments
Check out the link below. It references a MOTOR, but it could just as easily be a relay....
Don't get HOT choosing the wrong transistor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Thanks
If you're driving it with +12, then a PC supply usually needs some load (a load resistor of 220 ohms should do) on the +5, before the +- 12 volt lines are good. Have you checked the voltages with a voltmeter?
That aside, you mentioned that you are using a computer power supply. Is it also powering the computer?, and if not are you supplying an adequate load for the power supply?
Another thought... how long is the programming cable to the Stamp? Noise on the power line is capable of resetting the Stamp. This can be caused from Motors, Relays, Noisy power supply.
I know this from building an industrial application some years ago where I was able to re-program the stamp at a remote location some 100ft away. Because of the long programming cable,
the system was susceptible to noise from the machinery. One method that I used to help "dampen" this problem was to place a 1K resistor across pins 3&4 on the BS2. This made it harder
for the Stamp to reset, and allowed it to still be programmed. In this mode you will need to make a direct connection and bypass the .1uF caps so that the DTR line goes directly to the ATN line.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
We are not using the +12 volt line on the power supply to run the stamp and when checked, the +5V is solid.
The programing cable is ~30 feet long. I will disconnect it from the stamp and see if that stops the resetting problem. The stamp is simple to get to so unplugging/plugging the cable won't be an issue.
Thanks for all your help guys!
And you DO have the ground wire tied to "Vss", right?
http://www.hvwtech.com/products_view.asp?CatID=90&SubCatID=93&SubSubCatID=138&ProductID=43
I am using a Stamp Stack that has an on-board regulator. I guess the short answer to your question is I don't know. I've got +5V going the +5V pin and Gnd going to the Gnd pin.
I will try to verify which pin Vin or Vdd is being used.
Regards,
Adam
It's possible switching noise on the 5-volt line is causing this -- a 4.7 uF capacitor should filter this, though.
For support on an HVWTech product, you should contact support@HVWTech.com !
To save you some time however and since spontaneous resets are a problem encountered by many people, we can deal with this here.
First, the recommended input voltage is 6 Volts. This is because there is some drop associated with the 5-volt regulator (i.e it takes more than 5 volts to provide a regulated 5 volts). In this case though, this is only a minor contributor.
You say you are using a computer power supply. These supplies are designed to be cheap and are intended to be connected to a PC motherboard which has extensive filtering. You also mention using inductive devices (i.e. relays) which, when activated, will cause short 'dips' in voltage on the supply's +5 line. If you arent' using 'snubber' diodes across your relays, that only makes things worse. If you have an oscilloscope, looking at the +5 volt line will show all kinds of 'noise' from the PC supply and activating relays.
To solve your problem, we would recommend that you don't use PC power supplies -they are good for PCs but can cause grief for other uses unless you know exactly what you are doing. Assuming you need to keep the supply in this case, then try putting as large a capacitor as is practically possible (or several in parallel), say at least 1000 uF @16V, across Vin and ground, as close to the Stamp Stack as possible. Also (and this is always a good idea, regardless of what voltage relays you use) put 'snubber' diodes across your relay pins (a reverse biased 1N4001 or similar) to help keep the relays from injecting noise to the power supply.
Since you only get the occasional reset, this should solve your problem. For more in-depth help on this, feel free to contact our support staff directly at support@HVWTech.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mark
HVW Technologies Inc.
http://www.HVWTech.com
Parallax Distributor
My guess is that the PC power supply is the cause of this problem after reading all the suggestions. I will install a large capacitor next time we have the equipment apart to add functionality.
Regards,
Adam
P.S> Come to think of it, I had a similar problem with a StampStack I use at home. I have since switched to different power supply (not out of a PC) and I can't remember the problem still occuring. Hmmm...
P.P.S> "intended to be connected to a PC motherboard which has extensive filtering"
if I found a place on the motherboard with this filtered 5V, could I use that to power the stamp?
if I found a place on the motherboard with this filtered 5V, could I use that to power the stamp?"
In principal, sure; but why not just connect it to the PC supply's 12V line ? The on-board regulator can handle it, although it may get quite warm if you are drawing lots of current from the Stamp I/O pins...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Mark
HVW Technologies Inc.
http://www.HVWTech.com
Parallax Distributor
I think that may be the best way to go.
Thanks,
Adam