<div dir="ltr"><br><div>Many voltage regulators suggest adding a diode from output to input to protect them against a higher voltage on the output than the input. The LM1117 datasheet (used in Arduinos) has this (on page 14):</div><div><br></div><div><a href="https://www.ti.com/lit/ds/symlink/lm1117.pdf">https://www.ti.com/lit/ds/symlink/lm1117.pdf</a></div><div><br></div><div>but Arduinos don't have this AFAIK.</div><div><br></div><div>If you only have a problem with one input, you could try a 4.7v zener after your 1k input resistance - that would allow sufficient voltage to read as high, but shouldn't have the possible leakage current problem of slapping a 5.1v zener across the 5v supply.</div><div><br></div><div>Another option is to invert the gate in the software, use the pin's internal input pull-up and use an npn transistor to switch it to 0v. I suppose current might flow through the BC junction if the power is off, but you'd be using a much higher base resistor on the input so current through that route can be minimised.</div><div><br></div><div>Steve</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:13px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 28 May 2021 at 17:59, ShedSynth via Synth-diy <<a href="mailto:synth-diy@synth-diy.org">synth-diy@synth-diy.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-GB" style="overflow-wrap: break-word;"><div class="gmail-m_3108990080675610547WordSection1"><p class="MsoNormal">I have an Arduino-based module, with a GATE input protected by 1K input resistor then clamping diodes to 0V & +5V.<u></u><u></u></p><p class="MsoNormal"><a href="https://shedsynth.files.wordpress.com/2021/05/adsr-a-schematic-gate-to-d2.png" target="_blank">https://shedsynth.files.wordpress.com/2021/05/adsr-a-schematic-gate-to-d2.png</a><u></u><u></u></p><p class="MsoNormal">I find that with power off to that module any GATE or CV to the input can pull up the module's +5V through the diode and even power the whole case's +5V rail.<u></u><u></u></p><p class="MsoNormal">The clue was seeing the case’s +5V LED flashing in time with the GATE input.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">And I think that if the input is more than +5V, the un-powered voltage regulator will not be able to regulate so digital components (and perhaps the voltage regulator itself) might be damaged.<u></u><u></u></p><p class="MsoNormal">Have I understood this correctly?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I'm wondering whether to put a 5.1V zener across the module's 0V and +5V to catch any over-voltage.<u></u><u></u></p><p class="MsoNormal">Have I understood THAT correctly?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks in advance,<u></u><u></u></p><p class="MsoNormal">Al<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span><a href="https://shedsynth.wordpress.com/" target="_blank">SHEDSYNTH</a> – home-knitted eurorack<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
Synth-diy mailing list<br>
<a href="mailto:Synth-diy@synth-diy.org" target="_blank">Synth-diy@synth-diy.org</a><br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer" target="_blank">http://synth-diy.org/mailman/listinfo/synth-diy</a><br>
Selling or trading? Use <a href="mailto:marketplace@synth-diy.org" target="_blank">marketplace@synth-diy.org</a><br>
</blockquote></div>