{"id":4135,"date":"2014-01-20T08:29:04","date_gmt":"2014-01-20T14:29:04","guid":{"rendered":"http:\/\/w0ep.us\/OM\/?p=4135"},"modified":"2014-01-20T08:32:41","modified_gmt":"2014-01-20T14:32:41","slug":"nixie-clock-switch-bounce","status":"publish","type":"post","link":"http:\/\/w0ep.us\/OM\/?p=4135","title":{"rendered":"Nixie clock &#8211; switch bounce"},"content":{"rendered":"<p>[Today&#8217;s run: none yet, hope for 3+ by end of day]<\/p>\n<p>I had put the nixie clock project on the shelf.<\/p>\n<p>I got the digits running and the increment roll-over from seconds to minutes and minutes to hours.\u00a0 I was happy with myself for getting that to work (even though it is a well-known problem and I just copied something I found on the net).<\/p>\n<p>My next problem was trying to set up some switches to change the time, for setting it to the correct time.\u00a0 Plain switches didn&#8217;t work because they caused multiple signals to come through at random times.\u00a0 This is because most any normal on-off switch has some in-between state where the contacts are just closing or just opening and the signal will bounce on and off multiple times during this time.<\/p>\n<p>I tried a couple of hair-brained things but they didn&#8217;t work.<\/p>\n<p>Anyway, recently I was reading my new 2014 ARRL handbook that I got for Christmas and the light came on.\u00a0 I could use a capacitor and resistor to make a debounce circuit.<\/p>\n<p>I had seen the debounce circuits on the net, I googled on switch debounce.\u00a0 But they were showing a switch to ground and that is not what I have.\u00a0 Mine is a switched signal path.\u00a0 I couldn&#8217;t get how to modify that.<\/p>\n<p>But with the RC chapter reading it seemed like I ought to be able to make that work somehow.<\/p>\n<p>So I put it together, and it seems to work OK!\u00a0 An on-line RC calculator helped me find some values that were in the .01-0.1 second range.\u00a0 What I have is a 220 microFarad electrolytic capacitor and a ~250 ohm resistor in parallel to ground.\u00a0 The signal in and the signal out both attach to the &#8220;high&#8221; side of the resistor\/cap pair.<\/p>\n<p>I breadboarded that and I think it will work!<\/p>\n<p>Here&#8217;s a picture:<\/p>\n<p><a href=\"http:\/\/w0ep.us\/OM\/?attachment_id=4136\" rel=\"attachment wp-att-4136\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-4136\" alt=\"Scan_Pic0086\" src=\"http:\/\/w0ep.us\/OM\/wp-content\/uploads\/2014\/01\/Scan_Pic0086-700x222.jpg\" width=\"700\" height=\"222\" srcset=\"http:\/\/w0ep.us\/OM\/wp-content\/uploads\/2014\/01\/Scan_Pic0086-700x222.jpg 700w, http:\/\/w0ep.us\/OM\/wp-content\/uploads\/2014\/01\/Scan_Pic0086-1024x325.jpg 1024w, http:\/\/w0ep.us\/OM\/wp-content\/uploads\/2014\/01\/Scan_Pic0086.jpg 1235w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>I&#8217;m going to have three of these switches:<\/p>\n<ol>\n<li>The seconds adjust switch\n<ul>\n<li>normal &#8211; 1 pps<\/li>\n<li>stopped &#8211; no input<\/li>\n<li>fast &#8211; 10 pps<\/li>\n<\/ul>\n<\/li>\n<li>The minutes adjust swtich\n<ul>\n<li>normal &#8211; rollover from the seconds<\/li>\n<li>fast &#8211; 10 pps<\/li>\n<\/ul>\n<\/li>\n<li>The hours adjust switch\n<ul>\n<li>normal &#8211; rollover from minutes<\/li>\n<li>fast &#8211; 10 pps<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>To set the clock I can turn the seconds to off. I can then adjust the minutes, then adjust the hours. I then wait until the right second and switch the seconds switch to normal and away we go.\u00a0 (It sounds like maybe I could do without the &#8216;fast&#8217; setting for the seconds if I want.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Today&#8217;s run: none yet, hope for 3+ by end of day] I had put the nixie clock project on the shelf. I got the digits running and the increment roll-over from seconds to minutes and minutes to hours.\u00a0 I was happy with myself for getting that to work (even though it is a well-known problem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4135","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/4135","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4135"}],"version-history":[{"count":5,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/4135\/revisions"}],"predecessor-version":[{"id":4141,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=\/wp\/v2\/posts\/4135\/revisions\/4141"}],"wp:attachment":[{"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4135"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/w0ep.us\/OM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}