{"id":81,"date":"2011-09-17T14:43:58","date_gmt":"2011-09-17T13:43:58","guid":{"rendered":"http:\/\/www.evertdekker.com\/wp\/?p=81"},"modified":"2023-01-03T15:18:46","modified_gmt":"2023-01-03T14:18:46","slug":"nixie-clock-2-in16","status":"publish","type":"post","link":"https:\/\/evertdekker.com\/wp\/?p=81","title":{"rendered":"Nixie Clock #2 IN16"},"content":{"rendered":"<p>My second nixie clock design.<br \/>\nThis clock is compared with my other <a href=\"http:\/\/evertdekker.com\/Joomla\/index.php?option=com_content&amp;task=view&amp;id=30&amp;Itemid=47\" target=\"_self\" rel=\"noopener\">Nixie clock<\/a> much simpler, it uses less components and the code is kept simple and short.<br \/>\nThe segments are multiplexed to increase lifetime of the tubes and simplify the 170V power supply.<br \/>\nDue the separate tube pcb it&#8217;s possible to use it with other tube&#8217;s. I have used IN-16 tubes for this clock, bought them on ebay.<\/p>\n<p>To-do: Wooden enclosure with aluminum top and bottom.<\/p>\n<div class=\"n2_ss_slider_publish__option_code\" dir=\"ltr\" data-mode=\"id\"><\/div>\n<p>The clock in action.<br \/>\n<div class=\"lyte-wrapper\" title=\"Nixie clock\" style=\"width:420px;max-width: 100%;margin:5px;\"><div class=\"lyMe hidef\" id=\"WYL_Xn4loQTvG2o\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\"><div><meta itemprop=\"thumbnailUrl\" content=\"\/\/i.ytimg.com\/vi\/Xn4loQTvG2o\/maxresdefault.jpg\" \/><meta itemprop=\"embedURL\" content=\"https:\/\/www.youtube.com\/embed\/Xn4loQTvG2o\" \/><meta itemprop=\"uploadDate\" content=\"2011-09-17T22:58:44.000Z\" \/><\/div><div id=\"lyte_Xn4loQTvG2o\" data-src=\"\/\/i.ytimg.com\/vi\/Xn4loQTvG2o\/maxresdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\" itemprop=\"name\">Nixie clock<\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/Xn4loQTvG2o\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi\/Xn4loQTvG2o\/0.jpg\" alt=\"\" width=\"420\" height=\"216\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><meta itemprop=\"description\" content=\"My second nixie clock. This one with IN16 tubes. Low part count and simple, short code written with Bascom, with multiplexed segments. More info: http:\/\/evertdekker.com\/Joomla\/index.php?option=com_content&amp;task=view&amp;id=79&amp;Itemid=47\"><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:420px;margin:5px;\"><\/div><\/p>\n<p>Multiplexing in action, shot with 1000fps camera<br \/>\n<div class=\"lyte-wrapper\" title=\"Nixie High speed\" style=\"width:420px;max-width: 100%;margin:5px;\"><div class=\"lyMe hidef\" id=\"WYL_15XrI9tNJaw\" itemprop=\"video\" itemscope itemtype=\"https:\/\/schema.org\/VideoObject\"><div><meta itemprop=\"thumbnailUrl\" content=\"\/\/i.ytimg.com\/vi\/15XrI9tNJaw\/maxresdefault.jpg\" \/><meta itemprop=\"embedURL\" content=\"https:\/\/www.youtube.com\/embed\/15XrI9tNJaw\" \/><meta itemprop=\"uploadDate\" content=\"2011-09-21T10:36:15.000Z\" \/><\/div><div id=\"lyte_15XrI9tNJaw\" data-src=\"\/\/i.ytimg.com\/vi\/15XrI9tNJaw\/maxresdefault.jpg\" class=\"pL\"><div class=\"tC\"><div class=\"tT\" itemprop=\"name\">Nixie High speed<\/div><\/div><div class=\"play\"><\/div><div class=\"ctrl\"><div class=\"Lctrl\"><\/div><div class=\"Rctrl\"><\/div><\/div><\/div><noscript><a href=\"https:\/\/youtu.be\/15XrI9tNJaw\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.ytimg.com\/vi\/15XrI9tNJaw\/0.jpg\" alt=\"\" width=\"420\" height=\"216\" \/><br \/>Watch this video on YouTube<\/a><\/noscript><meta itemprop=\"description\" content=\"Nixie clock filmed with 1000fps with an Casio Exilim cam to show the multiplexing. For more info; http:\/\/evertdekker.com\/Joomla\/index.php?option=com_content&amp;task=view&amp;id=79&amp;Itemid=47\"><\/div><\/div><div class=\"lL\" style=\"max-width:100%;width:420px;margin:5px;\"><\/div><\/p>\n<p>&nbsp;<\/p>\n<div class='w3eden'><!-- WPDM Link Template: Default Template -->\n\n<div class=\"link-template-default card mb-2\">\n    <div class=\"card-body\">\n        <div class=\"media\">\n            <div class=\"mr-3 img-48\"><img decoding=\"async\" class=\"wpdm_icon\" alt=\"Icon\"   src=\"https:\/\/evertdekker.com\/wp\/wp-content\/plugins\/download-manager\/assets\/file-type-icons\/download1.png\" \/><\/div>\n            <div class=\"media-body\">\n                <h3 class=\"package-title\"><a href='https:\/\/evertdekker.com\/wp\/?wpdmpro=eagle-pcb-and-bascom-source-code'>Eagle pcb and Bascom Source code<\/a><\/h3>\n                <div class=\"text-muted text-small\"><i class=\"fas fa-copy\"><\/i> 1 file(s) <i class=\"fas fa-hdd ml-3\"><\/i> 108.58 KB<\/div>\n            <\/div>\n            <div class=\"ml-3\">\n                <a class='wpdm-download-link download-on-click btn btn-primary ' rel='nofollow' href='#' data-downloadurl=\"https:\/\/evertdekker.com\/wp\/?wpdmpro=eagle-pcb-and-bascom-source-code&wpdmdl=167&refresh=6a05e2ec691991778770668\">Eagle pcb cad files and bascom source code<\/a>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n\n<\/div>\n<p>&nbsp;<\/p>\n<pre class=\"brush: vb; gutter: true\">&#039;============================================================================\r\n\r\n&#039;=  Simple IN-16 nixie tube clock with multiplexed segments, low part count =\r\n&#039;=             Shortest Nixie Bascom code available on the net              =\r\n&#039;=                                                                          =\r\n&#039;=                    Copyright Evertdekker.com 2011                        =\r\n&#039;=                    Code Created with Bascom 2.0.7.1                      =\r\n&#039;============================================================================\r\n\r\n$regfile = &quot;M88pdef.dat&quot;\r\n$crystal = 1000000                                          &#039;Internal 8mhz div\/8\r\n$hwstack = 32\r\n$swstack = 64\r\n$framesize = 16\r\n\r\nConfig Clock = Soft                                         &#039;Use the softclock, 32.768KHz crystal connected to tosc1\/2\r\nConfig Date = Dmy , Separator = -\r\nEnable Interrupts\r\nDate$ = &quot;15-03-11&quot;\r\nTime$ = &quot;12:15:45&quot;\r\n\r\n&#039;== Setup hardware ==\r\nDigit Alias Portc\r\nConfig Digit = Output                                       &#039;Set up portc as output for the digit\r\nDdrd = &amp;B00111111                                           &#039;Setup portd as output for the segment and keep bit6&amp;7 free for other use\r\nButton_hr Alias Pinb.0\r\nButton_min Alias Pinb.1\r\nConfig Button_hr = Input\r\nConfig Button_min = Input                                   &#039;Set buttons as input\r\nSet Portb.0\r\nSet Portb.1                                                 &#039;Switch on the pullup for the buttons\r\n\r\nDim Multiplex As Byte\r\nMultiplex = 1                                               &#039;Multiplexer starts with 1\r\n\r\nDo\r\n\r\nSelect Case Multiplex\r\n Case 1 : Digit = _sec Mod 10                               &#039;Seconds\r\n Case 2 : Digit = _sec \/ 10                                 &#039;Seconds tens\r\n Case 4 : Digit = _min Mod 10                               &#039;Minute\r\n Case 8 : Digit = _min \/ 10                                 &#039;Minute tens\r\n Case 16 : Digit = _hour Mod 10                             &#039;Hour\r\n Case 32 : Digit = _hour \/ 10                               &#039;Hour tens\r\nEnd Select\r\n\r\nPortd = &amp;B11000000 Or Multiplex                             &#039;Switch on one tube\r\nWaitms 2                                                    &#039;Some delay to slow down the multiplexer\r\n\r\nIf Multiplex &lt; 32 Then                                      &#039;Shift the multiplexer one bit to the left until all 6 segments are done\r\n Shift Multiplex , Left , 1\r\nElse\r\n Multiplex = 1                                              &#039;Start over again at segment 1\r\nEnd If\r\n\r\nDebounce Button_min , 0 , Setminute , Sub                   &#039;One of the buttons pressed, jump to the sub to change the time\r\nDebounce Button_hr , 0 , Sethour , Sub\r\n\r\nLoop\r\nEnd\r\n\r\n&#039;=== Subs ===\r\nSetminute:\r\n Incr _min\r\n If _min &gt; 59 Then _min = 0\r\nReturn\r\n\r\nSethour:\r\n Incr _hour\r\n If _hour &gt; 23 Then _hour = 0\r\nReturn<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My second nixie clock design. This clock is compared with my other Nixie clock much simpler, it uses less components and the code is kept simple and short. The segments are multiplexed to increase lifetime of the tubes and simplify the 170V power supply. Due the separate tube pcb it&#8217;s possible to use it with [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-variousprojects"],"_links":{"self":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=81"}],"version-history":[{"count":57,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions"}],"predecessor-version":[{"id":1801,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions\/1801"}],"wp:attachment":[{"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/evertdekker.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}