-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flaw in 1-Wire protection circuit #8
Comments
thank you for the super detailed notes @unpaid-bill!! I am also concerned about putting too much in series with 1-Wire and affecting communication. I like your suggestion of increasing the value of R14 to reduce the current, but in order to prevent fault on a 1/8 Watt resistor, we'd need ~3.4k Ohms. Maxim Application Note 148 only ever recommends 150 Ohms maximum in series, so I highly doubt such a large resistance would be acceptable. I'll look to see if there are other industry-accepted methods of protecting a 1-Wire line without attenuating the signal too much. Thanks again for the note!! |
I agree that a misalignment of the spring fingers is highly unlikely now the geometry has been redesigned to prevent that. |
I don't agree with removing this protection. It's always better to have a resistor fail than the pins on the processor. |
Another trick to spread the thermal load of the resistors could be to put some in parallel. |
Or in series, as may be easier in this case due to the routing. |
The failure mode of Zener Diode is "SHORTING" that mean, if diode parameters are exceeded it will most likely to SHORT. You may think of the zener as a cheap CROWBAR protection in this case. Replacing the resistor with smaller housing 0402 will decrease the power dissipation capability thus the resistor will work as a cheap fuse with the Zener crowbar. Also, the 3.6V zener has a very bad characteristic. I used to call them soft zener diodes and I recommend avoiding these diodes if possible. The mentioned above 5V tolerant pin requires also some explanation. Digging into ST documentation reveal that 5V tolerant pins are actually ca. 7.6V (IIRC) tolerant. And more importantly, the 5V tolerant pins do not have clamping diodes. Finally, what is the failure scenario? Is it physically possible for 24V to appear on the 1wire PIN? Therefore I would recommend replacing the Zener diode with a 5v6 version (more common and cheaper) and replacing the 220Ohm resistor with a smaller 0402 housing. Just in case. It will never be activated. In case of some disaster, Dode and Resistor will burn out, and the MCU should survive. There is no reason to overcomplicate a protection circuit in this case. |
Since this is a protection circuit, and it would likely be prohibitive to fix in a robust enough manner to withstand the failure without negatively impacting the nominal performance of the properly working case, I don't see a problem with a sacrificial design. If you do reduce the size of the resistor to make the failure mode more fast-acting, I would try to increase the trace width going into the pads to try and force the thermal failure to occur in the removable component and attempt to save the pads and traces, for a lower impact repair in the case of a failure. |
As Stephen has highlighted in his videos, the spring finger connection must be protected against a situation where the alignment is not perfect.
The zener
D9
in the mobo schematic is to protect against 24v applied to pin 5 of J5 (the spring fingers), and is specified to dissipate 311mW in this fault state, as specified in the design note.In this fault state, the current through the zener is limited by
R14
. With KVL the voltage dropped by this 220R resistor is 24V-3.3V = 20.7V.This means that this resistor must dissipate (20.7)^2 / 220 = 1.95W, so would not survive the fault condition.
You could increase the value
R14
to decrease the current, though that would impact the performance of the low pass filter thatR14
is a part of.Note: the total capacitance of
D9
is ~100-200pF, as per the datasheet, which limits the size of the resistor for a desired corner frequency.The 1-wire communication is also a bit of a tricky one with both sides of the signal being pulled to GND or to Vcc at different strengths at different times in the waveform, so perhaps a RC LPF doesn't make the most sense here anyway. I don't have HW to check the effectiveness of this circuit, but the LPF can probably be completely removed as a short term solution. EDIT: Removal of the LPF would also make
D9
completely ineffective as there's no mechanism to limit the current that it shunts. So the whole protection and filtering of this input needs to be redesigned.The text was updated successfully, but these errors were encountered: