Shop OBEX P1 Docs P2 Docs Learn Events
Fried BS2 — Parallax Forums

Fried BS2

alnajjar1alnajjar1 Posts: 110
edited 2014-07-18 16:47 in BASIC Stamp
I use the BS2 with 74HC595 regularly and my circuits works flawlessly over years. Last week, I had a BS2 that died completely and not sure why - nothing has changed. However, both the 595 and the BS2 are not working. I am attaching the circuit in case someone can spot some potential hazard with my design (it is really not mine - it is straight from the Parallax manual).

http://forums.parallax.com/attachment.php?attachmentid=109577&d=1405118308&thumb=1&stc=1

Do I need resistors between the BS2 and 595? Is there a robust way to 'isolate' the stamp for industrial type applications (like my Museum where repeated use, vibration and dust are common issues).

Many thanks

Al
956 x 611 - 72K
«1

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2014-07-11 16:26
    The portion of the circuits you posted looks fine, but it doesn't account for the possibility that the issue was caused elsewhere, such as your power supply. That would be a more likely cause of both the BS2 and the shift register to both be damaged.
  • PublisonPublison Posts: 12,366
    edited 2014-07-11 16:27
    Your circuit looks fine. I use the same.

    Normally a failure such as yours would be attributed to a power supply going bad.

    What is supplying the power to your board?

    EDIT: Chris beat me by a minute.
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-11 16:43
    Thanks to both.

    I typically use a 13.6VDC - 19A Radio Shack supply. It is very stable and reliable. I also use the Supercarrier board from Parallax which is perfect for my projects. One issue might be that I am using the 5VDC supply from the Supercarrier to feed the 595 ICs which I have a total of 9 to drive 72 LEDs. Would that be an issue? The LEDs use the power source directly and not from the supercarrier.

    Al
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-07-11 17:12
    alnajjar1 wrote: »
    I am using the 5VDC supply from the Supercarrier to feed the 595 ICs which I have a total of 9 to drive 72 LEDs. versus The LEDs use the power source directly and not from the supercarrier.

    How? may I ask?
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-11 18:08
    Here is the complete circuit that shows the additional Darlington (TIP120) to provide necessary current to the LED. I hope this gives you a better idea of what I am doing.

    circuit.bmp

    thanks
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-11 18:17
    I am sorry, uploaded wrong image, here is the correct one: control_circuit.bmp
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-07-11 19:40
    That pushbutton as shown in the lower left absolutely shorts 5V to Gnd whenever you push it.
    Is that exactly how you have it?

    '595 pin 16 (Vcc) goes to +5 ?
    13V "Gnd" goes to super-carrier Gnd (Vss) ?
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-12 04:14
    Yes, the 595 pin16 is tied to +5 from the SuperCarrier (SC) and pin8 to grnd.

    The pushbutton part of the schematic is missing a 10k on +5 side but it is on the circuit.

    Sorry about that.

    Al
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-07-12 05:23
    You answered two of my questions. The "13V" supply's Gnd is connected to the supercarrier's?

    So, does the supercarrier's on-board LED still go on?
    Any "quality time" with the voltmeter?
    If you disconnect all of the external circuitry from the supercarrier, what then?

    "19A" Radio Shack supply?
    Is that a "regulated" output or is it just a B.A. transformer with a rectifier and a B.A. cap?
    What's the output of that guy with no load?
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-12 05:31
    Yes, I use the same supply to power the SC. LED on SC remains on after BS2 fried. Same with all circuitry disconnected.

    The supply is regulated (as far as I can tell). The voltage is stable within 0.01V. When SC and other circuits power, voltage on the supply is steady at 13.6VD with no appreciable drop or fluctuation even if loads are turned on. I tried turning 3 of the LED strips (roughly 1A), and voltage is steady at the supply.

    With a robust regulator at the SC, how would the main supply fry the stamp or the 595?
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-12 05:45
    What happens when power supply 'goes bad'? how does that ruin the BS2? The only way I can see this happen if suddenly the supply outputs voltage significant higher than what the regulator on the super carier board and the BS2 can handle. Is that what happens?
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-07-12 06:19
    Florida has quite a few electrical storms. ... lightning can affect your power supply. Many cheaper power supplies will pass through spikes from electrical storms.

    I have had a router failure from such, so I changed over to a small industrial switcher supply that has much more protection that a cheaper device. Haven't had any problems since I changed.

    Did your power supply fail completely as well?

    +++++++++++
    If the 595 failed, it might have just damaged the i/o pins connected to the BS2.
    Are other i/o pins able to work or is the BS2 completely gone?
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-12 06:53
    Supply is fine! The BS2 is no longer accessible when downloading programs to it which makes it impossible to test so I assume all pins are dead. What do you do to shield the Stamp from supply spikes?
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-07-12 07:32
    I wonder why they power the Stamp from Vdd/VR1 instead of running the external supply to the Stamp's Vin.

    So, you're saying that the Vdd/VR1 supply is still good (according to Mr. Voltmeter)?
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-07-12 10:43
    EEPROMs tend to be one of the more sensitive parts to transient spike failures. So the power supply, and other parts of the BS2 may be just fine from a comparatively weak transient.

    You could try replacing the EEPROM as a DIY repair, but that may not be successful.

    It still means you have a dead BS2. If it completely shuts you out and it doesn't remember its previous program, it is gone.

    How did you decide the 595 was also damaged? Is this a MOSfet device or not? I believe 74HC595 is CMOS and that too is more sensitive to the kind of electricity that lightning will provide.

    Protection from lightning can help, but nothing will ever be 100% failsafe. If you get a lightning strike on your front door step, even protected devices can't be saved. You could go to battery operation to completely isolate the power from spikes on the transmission lines, but that means managing battery charging and more.

    What was the weather doing at the time it failed?
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-12 11:13
    typical late afternoon Florida weather with thunderstorms and heavy rain for a couple of hours. Nothing 'earth shatter' though or out of the norm for our weather in Tampa!

    Thanks for your help.

    Al
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-07-12 11:51
    It would be nice if someone could refrain from his conjecture and speculation and that we might then continue ascertaining the facts and insomuch someone else would answer my question about the 5V.
  • PublisonPublison Posts: 12,366
    edited 2014-07-12 12:23
    Agree with PJ.

    A better schematic showing all VIN, VDD, and VSS conections.

    Better yet a clear picture of your setup. That works out better most times.
  • alnajjar1alnajjar1 Posts: 110
    edited 2014-07-12 16:48
    Yes PJ, still reading 5V on the VDD pin on the stamp and so is the regulator on the Super carrier. I replaced the BS2 and the 595 and the circuit works fine. It must be a one-shot event that caused the issue and the power surge gives a reasonable explanation.

    Thanks again,

    Al
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-07-12 23:05
    Ferrite beads on the cable leading to the Vin might protect a bit against a repeat event.
    And a power supply that actually has a formal power line transient suppresion ciruit (for repeat events, not one-shot) would be another plus.

    Something like this... (the come in many more amps if you need more) Be sure to get the 120VAC version and not a 240VAC only.

    http://www.ebay.com/itm/DC-12V-3A-36W-Switch-Power-Supply-Driver-For-LED-Strip-Light-Display-SS-7-/170800232981?pt=LH_DefaultDomain_0&hash=item27c47cba15

    It sounds as if you are using an automotive battery charger from Radio Shack as your supply now. Lead Acid cells don't need any transient protection, so such a charger is unlikely to provide any.

    @everyone
    Apologies for interrupting the postmortem, but the OP seem to want an idea of why the failure was out of the blue and selective.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-07-13 04:50
    The "why" is still not known.
    If somebody chooses to believe some possibility or other then that's another matter.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2014-07-14 08:44
    The schematic isn't really useful as it isn't accurate. If there's one error there could be more and many connections don't seem to be shown. That said, you reading 5 V from the regulator doesn't mean the supply is stable. I once had a board come back that didn't program or identify. The DMM clearly showed 5 V on the VDD pin. What it didn't show, but my oscilloscope did show me, was that the on-board regulator was going into thermal shutdown. Most people think if the regulator goes into thermal shut down they will see that on the meter because they think it's a slow process, but the regulator was glitching faster than a human eye could see, and also faster than the multimeter could register. Once the overcurrent load was removed from the I/O pins, the BS2 module started functioning normally. There are many possibilities possibilities, however if there is a possibility to remove the module from the questionable environment and put it into a normal development board with a standard power supply you could at least verify that the module is no longer functioning.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-07-14 09:11
    PJ Allen wrote: »
    The "why" is still not known.
    If somebody chooses to believe some possibility or other then that's another matter.

    Context is a significant part of the information.
    A. It ran fine for a long time. (Tends to indicate that the wiring is adequate to the task and design.)
    B. Florida is home to a lot of thunderstorms throughout the year.
    C. It seems that no extra measures were taken to protect from power line spikes migrating into project.
    D. The device may have been hit several times over the life of its use and finally succumbed.

    I am not sure that you would every find out exactly 'why' the failure occurred unless you open up the chips in question and examine them under magnification. More magnification that I have or can afford.

    When the probabilities are in favor of certain possibilities, and absolute certainly is a costly waste of effort.. try to accept what is apparent.

    This is not so much about be guilibe and blindly believing as it is about being pragmatic.

    Chris is correct that an oscilloscope might offer much better diagonostic information. I am not even sure if my multimeter is very accurate as I have never had a reference to calibrate it against.

    Using something like this +++> http://www.radioshack.com/product/index.jsp?productId=2103960
    may be handy, but is not really a long-term optimal design.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2014-07-14 09:30
    Context is a significant part of the information.
    A. It ran fine for a long time. (Tends to indicate that the wiring is adequate to the task and design.)

    Loopy,

    This statement travels a slippery slope. I used to work for a Fortune 500 Company that built Fiber-Optic amplifiers that cost about 100K+ each. Inside were some laser assemblies that were failing in less than 10 years which should not have been happening. I won't get into the details but suffice it to say considering the cost of these laser pumps (as they were called) the manufacturer had them analyzed under and electron microscope to see what caused the failures. Not going to get into the details, again, long story short. $5,000.00 laser assemblies that were supposed to operate for 30 years were failing prematurely and not because of of anything in the circuit design or running outside of spec. ;) Personally I never assume that just because something runs for a long time the circuit design is sound. :innocent:
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-07-14 09:37
    A, B, C, D...

    Post hoc ergo propter hoc.

    You just gotta believe!
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-07-14 11:11
    Okay, I guess I don't see the merit in trying to answer why to every failed BS2.
    Is there a life-time warranty I missed, or a 20,000 hour mean time to failure that was not achived?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2014-07-14 12:18
    Not sure what you mean. Part of what I said is based on my previous reply about not being clear on what is really connected where in the OP's circuit. Part of it is that we can't be sure of anything. ;) I would still recommend testing the module outside of this circuit.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-07-14 23:09
    The OP was looking into what improvements would prevent this failure from happening again.

    I just noticed that he shared a common problem with me in Taiwan -- frequent lightning. So I suggested he clean up in power supply and not expect anything to be a perfect solution. When you deal with thousand of volts and thousands of watts attacking something left on 24/7; you have to accept occasional failure in spite of protective measures.

    BS2 and all Parallax products have a simple 30 day warranty and are neither extremely expensive or key infrastructure devices. So opening up chips and finding the source of failure seems unlikely to happen.

    If you look at the voltage regulator pin out, the Vin, Vout, and GND are close enough together that if the device blocks a lightning strike, the pinout may just cause 10,000 volts to jump and reach components downstream, such as the EEPROM or the 74HC595.

    It is nearly impossible to prove anything. But these are plausible factors to consider. PJ seems to want absolute proof.
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2014-07-15 06:46
    PJ seems to want absolute proof.

    No, I just don't agree with the conclusion to which you jumped, absent any evidence.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-07-15 10:38
    @P J
    Fair enough. I just didn't realize that providing evidence to your standards was so important.

    Anytime someone is using a 13.5-13.8VDC 19amp power supply, it just seems obvious the device is primarily designed to work as a stand-in and/or trickle charger for large lead acid batteries.

    I did try to locate it at Radio Shack's on-line catalog and came up the link provided. It says it is 15 amps in the header, but the detail says it is or was 19amps at one time. And of course, it is a black box without any internal documentation as to how it provides power.

    Seemed enough to me to suggest that an industrial grade switcher with good line protection was appropriate... especially in South Florida.

    Demanding the OP revise his schematic to meet your standards seemed to be counter-productive. And I have observed a lot of old PIC designs for CNC stepper control seemed to get their EEPROMs wiped out by transients in actual use.

    Why be so hard-nosed about proof and evidence? The devices need replacement, and the power supply should likely be upgraded.

    If would be more helpful if you revised the errors and omissions in his schematic or made additional suggestions rather than just demand the mode of communication always fits your expectations.
Sign In or Register to comment.