{"id":200,"date":"2012-03-19T20:20:43","date_gmt":"2012-03-19T20:20:43","guid":{"rendered":"http:\/\/stompville.co.uk\/?p=200"},"modified":"2020-10-11T15:38:06","modified_gmt":"2020-10-11T15:38:06","slug":"low-battery-monitor-using-microchip-tc54-voltage-detector","status":"publish","type":"post","link":"https:\/\/stompville.co.uk\/?p=200","title":{"rendered":"Low-battery monitor with TC54 voltage detector"},"content":{"rendered":"<p><strong>Update: The TC54 in TO-92 package is discontinued and unavailable. However, surface mount versions are readily available.<\/strong><\/p>\n<p><strong>Update: Adding an output transistor &#8211; see below.<br \/>\n<\/strong><\/p>\n<p>So you&#8217;d kind of like to know when the battery in your stompbox\u00a0 is getting a bit flat but you&#8217;re not sure how to proceed.<\/p>\n<p>The first problem is that you don&#8217;t want your low-battery monitoring circuit to make a significant contribution to battery drain &#8211; which rules out parts like the MC34064 &#8220;volt sense&#8221; circuit because it has a quiescent current of about half a milliamp.<\/p>\n<p>The only part that fits the bill and <del>is readily available (in the UK at least)<\/del> is the TC54 from Microchip.\u00a0 The TC54 is available in a number of packages, output-styles and voltage variations but the one for us is the TC54VN4302EZB.\u00a0 This variant comes in a TO92 package, has a reference voltage of 4.3V and an N-channel open-drain output.<\/p>\n<p>A brand spanky new alkaline PP3\/6F22\/1604 battery has a voltage of about 9.5V.\u00a0 We shall (quite arbitrarily) assume that it is dead when the voltage drops to about 7.3V.\u00a0 But the TC54 has a reference voltage of 4.3V (and they don&#8217;t make a variation with a reference voltage of 7.3V) so we have to cheat.<\/p>\n<p>Here is the TC54:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-204\" title=\"116SV\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/116SV.png\" alt=\"TC54\" width=\"300\" height=\"247\" \/><\/p>\n<p>and here is the circuit we are going to implement:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-209\" title=\"117SV\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/117SV.png\" alt=\"TC54 Schematic\" width=\"380\" height=\"259\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/117SV.png 380w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/117SV-300x204.png 300w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/><\/p>\n<p>The TC54 works on a supply voltage (derived from the Vin terminal) from 0.7V to 10V so we don&#8217;t need to worry about keeping the TC54 alive.<\/p>\n<p>In a nutshell, the TC54 monitors the voltage at the Vin terminal and when this voltage falls below the internal reference voltage the Vout terminal is pulled low (and the LED switches on to indicate that the battery is failing).\u00a0 If the input voltage rises above Vref + ~200mV (about 4.5V), Vout goes high again (and the LED switches off).<\/p>\n<p>We want to detect a battery voltage of about 7.3V (not 4.3V) so we use R1 and R2 to form a potential divider showing a fixed proportion of the battery voltage to the TC54.\u00a0 We need to find values for R1 and R2 so that when the battery voltage falls to 7.3V, the TC54 input voltage falls to 4.3V.<\/p>\n<p>The Microchip TC54 datasheet suggests a bleed current (Iq) of about 100uA and also advises that the voltage at the Vout terminal when it is pulled low is about 0.5V.\u00a0 Now we have enough data to do some calculations.<\/p>\n<p>When the battery is fresh, Vbat = 9.5V so if Iq is 100uA then (by Ohm&#8217;s law):<\/p>\n<p style=\"text-align: center;\">R1 + R2 = 9.5V\/100uA = 95kOhm<\/p>\n<p style=\"text-align: left;\">We want the TC54 to switch at a battery voltage of 7.3V, so:<\/p>\n<p style=\"text-align: center;\">4.3V\/7.3V = 0.59<\/p>\n<p style=\"text-align: left;\">R1 and R2 form a potential divider with the voltage across R2 being 0.59 x Vbat, so:<\/p>\n<p style=\"text-align: center;\">R2\/(R1+R2) = 0.59<\/p>\n<p style=\"text-align: left;\">We can now solve for R2 because we know R1 + R2 = 95kOhm<\/p>\n<p style=\"text-align: center;\">R2\/95 = 0.59<\/p>\n<p style=\"text-align: center;\">R2 = 0.59 x 95<\/p>\n<p style=\"text-align: center;\">R2 = 56kOhm and R1 = 39kOhm (i.e. 95kOhm &#8211; 56kOhm).<\/p>\n<p>Let&#8217;s assume we are going to use a low-current LED such as the Kingbright L7104LID (which has Vf of 1.7V and a nominal current of 2mA).\u00a0 This led will happily shine at 1.5mA forward current (we don&#8217;t want to over-tax an already failing battery) so we calculate Rload as follows:<\/p>\n<p style=\"text-align: center;\">Rload = (Vbat &#8211; Vled &#8211; Vout)\/Iload<\/p>\n<p style=\"text-align: center;\">Rload = (7.3 &#8211; 1.7 &#8211; 0.5)V\/1.5mA<\/p>\n<p style=\"text-align: center;\">Rload = 3400Ohm.<\/p>\n<p style=\"text-align: left;\">So a 3.3kOhm or 3.6kOhm resistor can be used for Rload, giving:<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-211\" title=\"118SV\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/118SV.png\" alt=\"TC54 schematic with values\" width=\"380\" height=\"259\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/118SV.png 380w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/118SV-300x204.png 300w\" sizes=\"(max-width: 380px) 100vw, 380px\" \/><\/p>\n<p style=\"text-align: left;\">The reason why Microchip suggest 100uA for Iq is that you can then safely ignore Iss (which is only 1uA) making for an easy calculation.\u00a0 As we increase the values of R1 and R2 to reduce the quiescent current (Iq), Iss becomes more significant.\u00a0 For example, if we reduce Iq to about 30uA we can redo the calculations above (ignoring Iss) and find that R1 = 120kOhm and R2 = 180kOhm to give a lo-battery set-point of a nominal 7.16V.\u00a0 However, the effect of Iss raises the set-point back to 7.3V.\u00a0 Neat.<\/p>\n<p style=\"text-align: left;\">So here&#8217;s the absolute, final, Stompville-approved, 9V low-battery monitor which pulls only 32uA in its quiescent state and switches on a low-current LED (1.4mA) when the battery voltage drops to 7.3V:<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-218\" title=\"119SV\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/119SV.png\" alt=\"TC54 final schematic\" width=\"420\" height=\"239\" srcset=\"https:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/119SV.png 420w, https:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/119SV-300x171.png 300w\" sizes=\"(max-width: 420px) 100vw, 420px\" \/><\/p>\n<p style=\"text-align: left;\">Microchip doesn&#8217;t make a 7.3V version of the TC54 means so we need two more resistors than would otherwise be necessary &#8211; but the absolute maximum voltage at Vin is 10V &#8211; so adding these extra resistors means we can use a wall wart with an output voltage up to about 16.5V before we fry the TC54.\u00a0 If we used a TC54 with a lower reference voltage, we could increase the maximum wall-wart supply voltage but the 4.3V version is more readily available.\u00a0 Of course the above could all be built into a hybrid LED.\u00a0 Our wish is that Microchip make a version of the TC54 with a 7.3V reference, a Vin(max) of (say) 24V and a constant-current sink output of 1.5mA &#8211; all built into a 3mm LED so our low-battery solution is reduced to one component.\u00a0 Dream on.\u00a0 <img loading=\"lazy\" decoding=\"async\" title=\"svfavicon.png\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/02\/svfavicon.png\" alt=\"\" width=\"16\" height=\"16\" \/><\/p>\n<p style=\"text-align: left;\"><strong>Update &#8211; Maximum drain-source voltage and adding an output transistor<br \/>\n<\/strong><\/p>\n<p style=\"text-align: left;\">You might be thinking of using a Microchip MCP111 in lieu of the TC54VN (and using similar math to calculate the values of R1 and R2), but the output stage of the MCP111 is less robust than the TC54VN. In particular, the maximum output voltage of the Vout pin should not be held higher than Vdd for any significant time. This effectively prevents you implementing the resistor divider trick to adjust the set-point, unless you use an additional transistor on the output to isolate the MCP111 from the supply voltage.<\/p>\n<p style=\"text-align: left;\">Also, for the TC54VN we should point out that, according to the Absolute Maximum Ratings on the Microchip datasheet, the output voltage (open-drain) acceptable range is (Vss \u2013 0.3V) to 12V<\/p>\n<p style=\"text-align: left;\">This suggests that the Vds(max) of the output transistor is limited to 12V, so we shouldn&#8217;t implement this design for battery voltages higher than about 10V without adding an extra output transistor with suitable Vceo (or BVdss).<\/p>\n<p style=\"text-align: left;\">You can use any general purpose small-signal p-channel MOSFET or PNP output transistor with a high-enough breakdown voltage. Note that the bipolar (PNP) option is much cheaper (for through-hole at least) but requires an extra resistor.<\/p>\n<p style=\"text-align: left;\">Note that the schematics below show a 9V battery supply but <strong>the additional transistor should be used when the supply voltage is higher than about 10V nominal.<\/strong><\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\" aligncenter\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/172SV.png\" alt=\"172SV\" width=\"472\" height=\"350\" \/><\/p>\n<p style=\"text-align: left;\">A wide selection of surface-mount MOSFET devices are available. For through-hole, use a ZVP3306A or similar. The design was prototyped with a ZVP2106A (more expensive than &#8216;3306).<\/p>\n<p style=\"text-align: left;\"><img loading=\"lazy\" decoding=\"async\" class=\" aligncenter\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/03\/173SV.png\" alt=\"173SV\" width=\"538\" height=\"350\" \/><\/p>\n<p style=\"text-align: left;\">Use a 2N5401 or BC557 (or whatever) for the transistor version. <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/stompville.co.uk\/wp-content\/uploads\/2012\/02\/svfavicon.png\" alt=\"svfavicon.png\" width=\"16\" height=\"16\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update: The TC54 in TO-92 package is discontinued and unavailable. However, surface mount versions are readily available. Update: Adding an output transistor &#8211; see below. So you&#8217;d kind of like to know when the battery in your stompbox\u00a0 is getting a bit flat but you&#8217;re not sure how to proceed. The first problem is that\u2026 <span class=\"read-more\"><a href=\"https:\/\/stompville.co.uk\/?p=200\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[],"_links":{"self":[{"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/200"}],"collection":[{"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=200"}],"version-history":[{"count":8,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":1441,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/200\/revisions\/1441"}],"wp:attachment":[{"href":"https:\/\/stompville.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stompville.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}