<html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> </head> <body><img id="EFFE717E04E66A2BC08E70BA21A08C92" width="0px" src="https://read-receipts.canarymail.io:8100/track/C49266956199D83F011285EF840B71C7_EFFE717E04E66A2BC08E70BA21A08C92.png" height="0px"><div id="CanaryBody"> <div> Hey Ben,</div><div><br></div><div>for the jack plug detection I’m using what MI is calling a “normalisation probe”. I built a similar implementation in code, basically sending an arbitrary (but known) signal into the switch pin, then measuring it on the input pin via ADC or a digital pin. If the signal is present on the pin, nothing is plugged in. Don’t know if that’s the most elegant solution but it seems to work fine for me.</div><div><br></div><div>Cheers,</div><div><br></div><div>Chris</div> <div><br></div> </div> <div id="CanarySig"> <div> <div style="font-family:Helvetica;"><div style="font-family:Helvetica;"><br></div></div> <div><br></div> </div> </div> <div id="CanaryDropbox"> </div> <blockquote id="CanaryBlockquote"> <div> <div>On Friday, Dec 11, 2020 at 3:56 PM, ben gebhardt via Synth-diy <<a href="mailto:synth-diy@synth-diy.org">synth-diy@synth-diy.org</a>> wrote:<br></div> <div><div class="ydp60950ab3yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div> <div dir="ltr" data-setdir="false">Hi Chris,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I was just referring to a circuit that I think others have posted, I think I just described it differently.  Below is a screenshot of such a circuit:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><img title="Inline image" alt="Inline image" src="cid:d88ae5ca-c058-291e-b61d-db10b284832a@yahoo.com" class="ydpa0d30037yahoo-inline-image" style="max-width: 772px; width: 100%;" data-id="<d88ae5ca-c058-291e-b61d-db10b284832a@yahoo.com>"><br><span></span><br></div><div dir="ltr" data-setdir="false">Incidentally, I've used something similar to the above circuit many times (the MCP664 is fancier than I'd normally use).  It has shipped inside of instruments with no customer complaints.  Usually I'd use an MCP6004 running on a 3.3V rail.  I've also used a TL074 here running on +/-10 or 12 with diode overvoltage protection on the output.  After trying several ways of doing this, I've settled on this one due to low cost/parts and usually the rails I need are in the system.  As others have said, you invert the signal once it's digital.  No diode based OVP is needed since you're driving an inverting node of a RRIO low voltage part.  If AC coupling is needed, I usually include it on the output to have more control over the corner frequency and avoid huge value.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Let me know if you come up with something clever for the jack switch, it's trickier than one would think.  I have a solution that works but it feels like there may be something more elegant out there.  Make sure you include OVP for the switch input.  Upon plug-ing in, many jacks will allow conduction between the plug tip and switched contact BEFORE the switch is actually physically displaced (I suppose mechanically it would hard NOT to do this).  Anyways, I've blown MCU inputs this way weeks before a production run (fun times), so let my folly be a lesson.  You'd want separate TVS, series R + BAT54S or something similar.</div><div><br></div><div dir="ltr" data-setdir="false">Ben</div> </div><div id="yahoo_quoted_7701501278" class="yahoo_quoted"> <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"> <div> On Friday, December 11, 2020, 04:23:43 AM EST, Christian Maniewski <chris@manie.ws> wrote: </div> <div><br></div> <div><br></div> <div><div id="yiv0714977353"><title></title><div><img id="yiv071497735372AF1E91E6A27C977C122D810109C133" width="0px" src="" height="0px"><div id="yiv0714977353"> <div> Hey Ben,</div><div><br clear="none"></div><div>thanks a lot for your helpful input here! I’m a bit confused about the technique to sink current from the inverting node. Can you point me to some references on this? Or just something I can google, to find reading material or example circuits?</div><div><br clear="none"></div><div>Regarding the jack switch: I’m plannign to do some sort of plug detection there, so this will most likely go to an MCU output.</div><div><br clear="none"></div><div>Thanks again,</div><div><br clear="none"></div><div>Chris</div> <div><br clear="none"></div> </div> <div id="yiv0714977353"> <div> <div style="font-family:Helvetica;"><div style="font-family:Helvetica;"><br clear="none"></div></div> <div><br clear="none"></div> </div> </div> <div id="yiv0714977353CanaryDropbox"> </div> <blockquote id="yiv0714977353"> <div> <div>On Friday, Dec 04, 2020 at 5:16 PM, ben gebhardt via Synth-diy <<a shape="rect" ymailto="mailto:synth-diy@synth-diy.org" href="mailto:synth-diy@synth-diy.org" target="_blank" rel="noreferrer noopener">synth-diy@synth-diy.org</a>> wrote:<br clear="none"></div> <div><div class="yiv0714977353ydp9a937326yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"></div> <div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none"></div><div dir="ltr" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">Hi Christian,</div><div dir="ltr" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none"></div><div dir="ltr" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;">I have used this opamp for the exact circuit you're using it for.  Here are my recommendations:</div><div dir="ltr" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><br clear="none"></div><div dir="ltr" style=""><ul><li>As Tom stated, if this is to be a eurorack input you'd want to double the impedances (47k and 13k)</li><li>The issue with your arrangement is that you will have DC voltage (about 1.5V) at the opamp inputs.  This will cause some DC current to flow back into whatever you plug into it.  Not the end of the world if your source is well designed, but not ideal. </li><li>If you had some type of negative rail, what you could do is sink current from the inverting node.  This would bias the signal up to 1/2 your converter supply.  This is typically what I do.  (you'd save a resistor!)</li></ul><ol dir="ltr" style=""><ul><li>A liability of such an arrangement:  You'd need a relatively quiet and accurate negative rail or reference otherwise you'd inject noise/offset into the output signal.</li></ul></ol><ul dir="ltr"><li>I would also ground that jack switch.  No reason to inject noise into the ADC when nothing is plugged in if you don't have to right?</li><li>If your converter isn't 5V tolerant, I would agree with Tom that this should be powered from 3.3V--it'd be safer.  This opamp can swing w/i 25mV of the rail which is usually good enough.  </li></ul><div><br clear="none"></div><div dir="ltr">Hope that helps.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Ben</div></div> </div><div class="yiv0714977353yahoo_quoted" id="yiv0714977353yahoo_quoted_8075166416"> <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"> <div> On Friday, December 4, 2020, 09:39:37 AM EST, Tom Wiltshire <tom@electricdruid.net> wrote: </div> <div><br clear="none"></div> <div><br clear="none"></div> <div><div id="yiv0714977353"><div>Hi Chris,<div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">I’ve seen various approaches to this problem including:</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">1) Half-wave precision rectifiers to remove inputs below zero volts, with zeners or similar to limit the highest voltage</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">2) Op-amp clipping with op-amps run from +/-12V that then have their maximum output scaled down and offset to the correct range.</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">3) Op-amp clipping on single-ended op-amps run at the processor voltage (like yours)</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">I’m sure there are others. Honestly, I think (3) is pretty simple and straightforward, although I like the precision rectifier circuit too (just because it’s cool!) but the limitation there is that it doesn’t control the higher voltage as neatly.</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">I notice you have the MCP6002 on 5V supply, but you said you wanted 0-3.3V output. Is that right?</div><div class="yiv0714977353">100K input impedance is typical for CV inputs on modular gear, so you might want to double your resistor values round the op-amp.</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">HTH,</div><div class="yiv0714977353">Tom</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"><div class="yiv0714977353"> <div>==================<br clear="none" class="yiv0714977353">       Electric Druid<br clear="none" class="yiv0714977353">Synth & Stompbox DIY<br clear="none" class="yiv0714977353">==================</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><br clear="none" class="yiv0714977353Apple-interchange-newline"> </div> <div class="yiv0714977353yqt0033981717" id="yiv0714977353yqt92181"><div><br clear="none" class="yiv0714977353"><blockquote class="yiv0714977353" type="cite"><div class="yiv0714977353">On 4 Dec 2020, at 13:31, Christian Maniewski via Synth-diy <<a shape="rect" class="yiv0714977353" ymailto="mailto:synth-diy@synth-diy.org" href="mailto:synth-diy@synth-diy.org" target="_blank" rel="noreferrer noopener">synth-diy@synth-diy.org</a>> wrote:</div><br clear="none" class="yiv0714977353Apple-interchange-newline"><div class="yiv0714977353"> </div></blockquote></div></div></div></div><div class="yiv0714977353yqt0033981717" id="yiv0714977353yqt33097"></div></div></div></div></div></div></div></blockquote></div><title></title><div><div><div class="yiv0714977353" style="font-family:Helvetica;font-size:13px;"><img class="yiv0714977353" id="yiv0714977353E3E7C7EDA0AF42FB4C4E434016155C" width="0px" height="0px"> <div class="yiv0714977353" id="yiv0714977353"> <div class="yiv0714977353"> Hi all!</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">I’m trying to come up with an op-amp design for a CV input. I want to transform a signal ranging from -5V to +7V to a more MCU digestable 0-3.3V. I came up with the circuit you’ll find attached.</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">I have seen other approaches, where an offset reference is injected in the feedback loop, while the positive op-amp input is grounded. Are there any disadvantages to my approach or is it also valid?</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">Thank you so much!</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">I’ve been following this email list for some time now. This is my first question and first email entirely. Please bear with me.</div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div><div class="yiv0714977353">Chris</div> <div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div> </div> <div class="yiv0714977353" id="yiv0714977353"> <div class="yiv0714977353"> <div class="yiv0714977353" style="font-family:Helvetica;"><div class="yiv0714977353" style="font-family:Helvetica;"><br clear="none" class="yiv0714977353"></div></div> <div class="yiv0714977353"><br clear="none" class="yiv0714977353"></div> </div> </div> <div class="yiv0714977353" id="yiv0714977353CanaryDropbox"> </div> </div><span id="yiv0714977353cid:A8A35FDA-4568-436B-ADF2-C29FA227DEA2"><cv_in.pdf></span>_______________________________________________<br clear="none" class="yiv0714977353">Synth-diy mailing list<br clear="none" class="yiv0714977353"><a shape="rect" class="yiv0714977353" ymailto="mailto:Synth-diy@synth-diy.org" href="mailto:Synth-diy@synth-diy.org" target="_blank" rel="noreferrer noopener">Synth-diy@synth-diy.org</a><br clear="none" class="yiv0714977353">http://synth-diy.org/mailman/listinfo/synth-diy<br clear="none" class="yiv0714977353">Selling or trading? Use marketplace@synth-diy.org<div class="yiv0714977353yqt3962383720" id="yiv0714977353yqtfd82122"><br clear="none" class="yiv0714977353"><br clear="none" class="yiv0714977353"></div></div><div class="yiv0714977353yqt3962383720" id="yiv0714977353yqtfd67114"><div class="yiv0714977353yqt0033981717" id="yiv0714977353yqt21197">_______________________________________________<br clear="none">Synth-diy mailing list<br clear="none"><a shape="rect" ymailto="mailto:Synth-diy@synth-diy.org" href="mailto:Synth-diy@synth-diy.org" target="_blank" rel="noreferrer noopener">Synth-diy@synth-diy.org</a><br clear="none"><a shape="rect" href="http://synth-diy.org/mailman/listinfo/synth-diy" target="_blank" rel="noreferrer noopener">http://synth-diy.org/mailman/listinfo/synth-diy</a><br clear="none">Selling or trading? Use <a shape="rect" ymailto="mailto:marketplace@synth-diy.org" href="mailto:marketplace@synth-diy.org" target="_blank" rel="noreferrer noopener">marketplace@synth-diy.org</a><br clear="none"></div> _______________________________________________ <br clear="none">Synth-diy mailing list <br clear="none">Synth-diy@synth-diy.org <br clear="none">http://synth-diy.org/mailman/listinfo/synth-diy <br clear="none">Selling or trading? Use marketplace@synth-diy.org <br clear="none"> </div></div></div></div> </div> </div>_______________________________________________ <br>Synth-diy mailing list <br>Synth-diy@synth-diy.org <br>http://synth-diy.org/mailman/listinfo/synth-diy <br>Selling or trading? Use marketplace@synth-diy.org <br></div> </div> </blockquote> </body></html>