{"id":224,"date":"2023-12-03T09:29:00","date_gmt":"2023-12-03T09:29:00","guid":{"rendered":"https:\/\/chautechquest.com\/?p=62"},"modified":"2024-08-26T14:53:03","modified_gmt":"2024-08-26T12:53:03","slug":"fs-scs-how-to-detect-open-circuit-in-analog-signal","status":"publish","type":"post","link":"https:\/\/chauquest.com\/index.php\/article\/fs-scs-how-to-detect-open-circuit-in-analog-signal\/","title":{"rendered":"FS SCS, how to detect open circuit in analog signal"},"content":{"rendered":"<div style=\"padding-right:0;padding-left:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;\" class=\"wp-block-post-excerpt\"><p class=\"wp-block-post-excerpt__excerpt\">How to detect open circuit or shorted to ground or to supply signal failure ? this article explains how to achieve SCS rule compliance in formula student. <\/p><\/div>\n\n\n<p style=\"font-style:italic;font-weight:300\">This article is written in a way that people from Formula student team can understand a way to deal with System Critical Signal signal. However it can help anyone that want to detect open circuit or signal shorted to ground or supply voltage in any project.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key principle and rule<\/h2>\n\n\n\n<p>The main goal is to detect a set of different things detailled in the System Critical Signal (SCS) section of the FSG rules :<\/p>\n\n\n\n<ol style=\"list-style-type:lower-alpha\" class=\"has-small-font-size wp-block-list\">\n<li>Failures of signals transmitted by cable:\n<ul class=\"wp-block-list\">\n<li>Open circuit<\/li>\n\n\n\n<li>Short circuit to ground<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Failures of analog sensor signals transmitted by cable:\n<ul class=\"wp-block-list\">\n<li>Short circuit to supply voltage<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Failures of sensor signals used in programmable devices:\n<ul class=\"wp-block-list\">\n<li>Implausibility due to out of range signals, e.g. mechanically impossible angle of<br>an angle sensor.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Failures of digitally transmitted signals by cable or wireless:\n<ul class=\"wp-block-list\">\n<li>Data corruption (e.g. checked by a checksum)<\/li>\n\n\n\n<li>Loss and delay of messages (e.g. checked by transmission time outs)<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p>Today we will only focus on analog signal, defined by a. b. c. . Concerning the c., it needs to be implemented in a specific way but it isn&#8217;t really hard to do so (range detection thanks to comparator&#8230; ). Today we will focus on detecting Open circuit, Short circuit to ground and short circuit to supply voltage. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Realisation<\/h2>\n\n\n\n<p>No more suspense ! To do so we will shift the working point of our sensor or signal from 0V to 5V to 1.2V to 3.8V. After we will only need to detect if our signal is between 0V and 0.75V and between 4.25V and 5V to detect a failure ! <\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69ea405c1b5c6&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image aligncenter size-large is-resized wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"935\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/SCS-level-shifting.drawio-1024x935.png\" alt=\"\" class=\"wp-image-226\" style=\"width:453px;height:auto\" srcset=\"https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/SCS-level-shifting.drawio-1024x935.png 1024w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/SCS-level-shifting.drawio-300x274.png 300w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/SCS-level-shifting.drawio-768x701.png 768w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/SCS-level-shifting.drawio-1536x1402.png 1536w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/SCS-level-shifting.drawio-2048x1870.png 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p><br>Thanks to a really simple circuit we can achieve this. <br><\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-container-core-details-is-layout-9ac1727f wp-block-details-is-layout-flow\" style=\"padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--30)\"><summary>Design information<\/summary>\n<p>Since we want a symmetric design it is pretty easy to calculate resistance constraint :<\/p>\n\n\n<p> \\( R_1 = R_3 (\\frac{V_s}{V_t}-2) \\)<\/p>\n\n\n\n<p>This formula is general and will help you design anything you want. V<sub>s<\/sub> is supply voltage and V<sub>t<\/sub> is the lowest voltage you want to target.<br><\/p>\n<\/details>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"654\" height=\"716\" src=\"https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Circuit.png\" alt=\"\" class=\"wp-image-227\" style=\"width:398px;height:auto\" srcset=\"https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Circuit.png 654w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Circuit-274x300.png 274w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"738\" height=\"700\" src=\"https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Converting.png\" alt=\"\" class=\"wp-image-228\" style=\"width:464px;height:auto\" srcset=\"https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Converting.png 738w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Converting-300x285.png 300w\" sizes=\"auto, (max-width: 738px) 100vw, 738px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p>Now that we have the circuit that send our SCS compliant circuit, we need to design the other part of the circuit that will detect if everything is fine. The simplest is to use  a bi-channel comparator. You need to choose a comparator that will be able to make comparison all the way from 0V to V<sub>s<\/sub> (not V<sub>s<\/sub>-2V like comparator with wide voltage input). It needs also to be open collector. (explaining in the detail)<\/p>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-container-core-details-is-layout-1fc4f830 wp-block-details-is-layout-flow\" style=\"border-style:none;border-width:0px;padding-top:var(--wp--preset--spacing--40);padding-right:var(--wp--preset--spacing--30);padding-bottom:var(--wp--preset--spacing--40);padding-left:var(--wp--preset--spacing--30)\"><summary>Theorical detail<\/summary>\n<p>On this scheme we aim to close an optocoupler when we respect SCS (Sensor input between 0.75V and 4.25V). When using open-collector comparator we can chain their two output to make a boolean AND (active high logic). <\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td>Comparator 1<\/td><td>Comparator 2<\/td><td>Voltage out<\/td><\/tr><tr><td>V<sub>in<\/sub> &gt; 0.75V<\/td><td>Open &#8220;True \/ 5V&#8221;<\/td><td>Open &#8220;True \/ 5V&#8221;<\/td><td>5V<\/td><\/tr><tr><td>V<sub>in<\/sub> &lt; 0.75V<\/td><td>Open &#8220;True \/ 5V&#8221;<\/td><td>Closed &#8220;False \/ 0V&#8221;<\/td><td>0V<\/td><\/tr><tr><td>V<sub>in<\/sub> &gt; 4.25V<\/td><td>Closed &#8220;False \/ 0V&#8221;<\/td><td>Open &#8220;True \/ 5V&#8221;<\/td><td>0V<\/td><\/tr><tr><td>V<sub>in<\/sub> &lt; 4.25V<\/td><td>Open &#8220;True \/ 5V&#8221;<\/td><td>Open &#8220;True \/ 5V&#8221;<\/td><td>5V<\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">Truth table of voltage comparison<\/figcaption><\/figure>\n<\/details>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69ea405c1c25e&quot;}\" data-wp-interactive=\"core\/image\" class=\"wp-block-image aligncenter size-full is-resized wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1227\" height=\"471\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Dongle-image.png\" alt=\"\" class=\"wp-image-229\" style=\"width:950px;height:auto\" srcset=\"https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Dongle-image.png 1227w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Dongle-image-300x115.png 300w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Dongle-image-1024x393.png 1024w, https:\/\/chauquest.com\/wp-content\/uploads\/2023\/12\/Dongle-image-768x295.png 768w\" sizes=\"auto, (max-width: 1227px) 100vw, 1227px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on-async--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>Thanks to R<sub>6<\/sub> we are able to detect open-circuit.<br>After we only need to use our output to control an optocoupler, a relays or anything we want.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to detect open circuit or shorted to ground or to supply signal failure ? this article explains how to achieve SCS rule compliance in formula student.<\/p>\n","protected":false},"author":1,"featured_media":234,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1,14],"tags":[16,17,19,20,21,22,23],"class_list":["post-224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-article","category-formula-student","tag-analog-signal","tag-detect-open-circuit","tag-formula-student","tag-fsg","tag-open-circuit","tag-scs","tag-system-critical-signal"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":4,"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":251,"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/posts\/224\/revisions\/251"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/media\/234"}],"wp:attachment":[{"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chauquest.com\/index.php\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}