{"id":139,"date":"2017-08-06T21:09:33","date_gmt":"2017-08-07T04:09:33","guid":{"rendered":"http:\/\/eequalspi.com\/?p=139"},"modified":"2017-08-06T23:00:16","modified_gmt":"2017-08-07T06:00:16","slug":"controlling-the-iv-11","status":"publish","type":"post","link":"https:\/\/eequalspi.com\/index.php\/2017\/08\/06\/controlling-the-iv-11\/","title":{"rendered":"Controlling the IV-11"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Okay, so power problems solved, it was time to address the control issue.<\/p>\n<h1>Filament Driver<\/h1>\n<p>The first problem was driving the filament. The filament is roughly 12\u03a9 and it is recommended to drive at 1.5V and about 100mA. There is scant information online, and that which I have found suggests things like using several diode drops or a zener diode from a 5V supply to get 1.5V, a current limiting resistor, or the like.<\/p>\n<p>Giving it some thought, I decided to take a different approach: current control. Taking a page from LED control, I used a classic constant current supply circuit, as shown below.<\/p>\n<figure id=\"attachment_143\" aria-describedby=\"caption-attachment-143\" style=\"width: 327px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-143 size-full\" src=\"http:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/eagle_2017-08-06_20-53-23.png\" alt=\"\" width=\"327\" height=\"833\" srcset=\"https:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/eagle_2017-08-06_20-53-23.png 327w, https:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/eagle_2017-08-06_20-53-23-118x300.png 118w\" sizes=\"auto, (max-width: 327px) 85vw, 327px\" \/><figcaption id=\"caption-attachment-143\" class=\"wp-caption-text\">Filament Driver Circuit<\/figcaption><\/figure>\n<p>The 6\u03a9 resistor sets the current of the driver, which is rougly I_load = 0.6V \/ R_Set where 0.6V is the turn on of the NPN control transistor. To turn on, the FET must have a Vgs &lt; Vcc (5V in this case). Since the power dissipated by the FET is\u00a0 P = I_load (0.1A) * Vds, and without the 22\u03a9 resistor, it would be: Vds = Vcc-0.6-V_load = 5 &#8211; 0.6 &#8211; 1.2 = 3.2V<\/p>\n<p>Thus, the FET would be dissipating 0.1 * 3.2 = 0.32W. To alleviate that, the 22\u03a9 dropper resistor is placed in series with the load, resulting in Vds = Vcc &#8211; 0.6 &#8211; 2.2 &#8211; V_load = 5 &#8211; 0.6 &#8211; 2.2 &#8211; 1.2 = 1V meaning the FET will dissipate 0.1W and the 22\u03a9 resistor will dissipate 0.22W.<\/p>\n<p>Thus, we can be confident of the current that will be passing through our filament even if something goes haywire with the power supplies.<\/p>\n<h1>Anode Control<\/h1>\n<p>To control the actual segments of the VFD, we have to pull each anode to +25V. Obviously, our microcontroller cannot do this, and cannot handle exposure to 25V levels in any case. Fortunately, unlike Nixies, where the approximately 200V levels are far too high for &#8220;jellybean&#8221; transistors to handle, 25V is well within the 40V range of classis 2N2904\/2N3906 NPN\/PNP transistors. Therefore, we can use a standard high side switch circuit to control the anodes, driving each pin with the GPIO of our microcontroller.<\/p>\n<figure id=\"attachment_144\" aria-describedby=\"caption-attachment-144\" style=\"width: 554px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-144\" src=\"http:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/eagle_2017-08-06_21-05-09.png\" alt=\"\" width=\"554\" height=\"665\" srcset=\"https:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/eagle_2017-08-06_21-05-09.png 554w, https:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/eagle_2017-08-06_21-05-09-250x300.png 250w\" sizes=\"auto, (max-width: 554px) 85vw, 554px\" \/><figcaption id=\"caption-attachment-144\" class=\"wp-caption-text\">Anode driver circuit.<\/figcaption><\/figure>\n<h1>Temperature Sensor<\/h1>\n<p>The final part of the circuit is the temperature sensor. I used an off the shelf OSEPP DHT11 module that I found at Fry&#8217;s &#8212; it only takes Vcc (5V), GND, and a signal pin, and I used the standard Adafruit DHT11 library to communicate with it. More on that (and the software in general) in the next post.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_145\" aria-describedby=\"caption-attachment-145\" style=\"width: 192px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-145\" src=\"http:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/IMG_3753-e1502078951790.jpg\" alt=\"\" width=\"192\" height=\"385\" srcset=\"https:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/IMG_3753-e1502078951790.jpg 192w, https:\/\/eequalspi.com\/wp-content\/uploads\/2017\/08\/IMG_3753-e1502078951790-150x300.jpg 150w\" sizes=\"auto, (max-width: 192px) 85vw, 192px\" \/><figcaption id=\"caption-attachment-145\" class=\"wp-caption-text\">Osepp DHT11 Temperature Sensor<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; Okay, so power problems solved, it was time to address the control issue. Filament Driver The first problem was driving the filament. The filament is roughly 12\u03a9 and it is recommended to drive at 1.5V and about 100mA. There is scant information online, and that which I have found suggests things like using &hellip; <a href=\"https:\/\/eequalspi.com\/index.php\/2017\/08\/06\/controlling-the-iv-11\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Controlling the IV-11&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","hentry","category-vfd"],"_links":{"self":[{"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":4,"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":150,"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions\/150"}],"wp:attachment":[{"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eequalspi.com\/index.php\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}