{"id":3220,"date":"2017-02-14T23:27:00","date_gmt":"2017-02-15T07:27:00","guid":{"rendered":"https:\/\/digitalnigel.com\/wordpress\/?p=3220"},"modified":"2022-04-01T23:31:16","modified_gmt":"2022-04-02T06:31:16","slug":"binary-addition-machine-2","status":"publish","type":"post","link":"https:\/\/digitalnigel.com\/wordpress\/?p=3220","title":{"rendered":"Binary Addition Machine"},"content":{"rendered":"\n<p>A few years ago, the idea came to me to build a binary addition machine as a display piece. The logic would be constructed of SPDT (Single Pole Double Throw) relays, which reduces the number of relays and simplifies the design a bit.&nbsp;The schematic represents a single Full Adder, eight of which will compose the full addition machine.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/Full_Adder.jpg\"><img decoding=\"async\" src=\"http:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/Full_Adder-150x98.jpg\" alt=\"\" class=\"wp-image-31\" title=\"Full_Adder\"\/><\/a><\/figure><\/div>\n\n\n\n<p>Note that A and B are the inputs from the two numbers, S is the output, CarryIN in the input from the previous bit, and CarryOUT is the output to the next bit.<\/p>\n\n\n\n<p>My original efforts on this project were based on home etched PCBs, using the photo etching process I&#8217;ve posted about in the past on this blog. Here&#8217;s an example of one of the single sided boards I designed to compose a single Full Adder.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_1801.jpg\"><img decoding=\"async\" src=\"http:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_1801-112x150.jpg\" alt=\"\" class=\"wp-image-32\" title=\"Etched Board and Transparency\"\/><\/a><\/figure><\/div>\n\n\n\n<p>You&#8217;ll notice that some areas of the ground plane on the PCB seem to get a little spotty. It&#8217;s important to make sure you get the settings on your printer as dark as possible to avoid this. After tuning for my printer, I came up with the darkest print I could manage. The old transparency is on the top, and the new is on the bottom.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"http:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_1819.jpg\"><img decoding=\"async\" src=\"http:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_1819-112x150.jpg\" alt=\"\" class=\"wp-image-33\" title=\"Transparency Results\"\/><\/a><\/figure><\/div>\n\n\n\n<p>As you can see, it is a good bit darker on the new print, which leads to better etchings.<\/p>\n\n\n\n<p>However, the whole process of exposing, etching, and cleanup is rather fiddly and time consuming, so I never managed to get around to making all eight Full Adders required to complete the machine.<\/p>\n\n\n\n<p>Several years went by with the project languishing in my random electronics box, and was recently brought back to light. I decided that I was going to design a new board and have it professionally made to save the time, and have a better looking end result, and work on making the mount and the various other bits as pretty as possible since the goal was a display piece.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4736.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4736-300x225.jpg\" alt=\"\" class=\"wp-image-2621\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4736-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4736-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4736-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4736-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4728.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"225\" height=\"300\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4728-225x300.jpg\" alt=\"\" class=\"wp-image-2623\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4728-225x300.jpg 225w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4728-113x150.jpg 113w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4728-768x1024.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>I ordered the PCBs and the parts to populate them, and in the meantime started work on laying out the mounting on a piece of Oak I picked up from the hardware store.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4741.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4741-300x225.jpg\" alt=\"\" class=\"wp-image-2624\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4741-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4741-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4741-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4741-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Once the mounting was all sorted out, there was lots of sanding and lacquering.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4749.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4749-300x225.jpg\" alt=\"\" class=\"wp-image-2627\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4749-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4749-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4749-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4749-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>I decided I wanted to etch the labels into the brass plate that would hold the 16 bit switches (two eight bit numbers that get added together).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4746.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4746-300x225.jpg\" alt=\"\" class=\"wp-image-2625\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4746-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4746-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4746-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4746-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4747.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4747-300x225.jpg\" alt=\"\" class=\"wp-image-2626\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4747-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4747-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4747-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4747-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>The etching turned out really well!<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4752.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4752-300x225.jpg\" alt=\"\" class=\"wp-image-2628\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4752-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4752-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4752-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4752-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>The display plate also got put together with nine LEDs (the 8 bit number and a 9th for the carry).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4754.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4754-300x225.jpg\" alt=\"\" class=\"wp-image-2630\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4754-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4754-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4754-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4754-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Instead of buying brass standoffs that would go with the switch and display plates, I bought a section of brass tubing, cut it down into equal lengths, trimmed the ends on my lathe, and brushed them with a wire wheel on my grinder.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4753.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4753-300x225.jpg\" alt=\"\" class=\"wp-image-2629\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4753-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4753-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4753-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4753-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>Finally, it was time to assemble the boards.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4734.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4734-300x225.jpg\" alt=\"\" class=\"wp-image-2622\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4734-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4734-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4734-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4734-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>And then get them mounted on the base.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4756.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4756-300x225.jpg\" alt=\"\" class=\"wp-image-2631\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4756-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4756-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4756-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4756-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4764.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4764-300x225.jpg\" alt=\"\" class=\"wp-image-2632\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4764-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4764-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4764-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4764-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4773.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4773-300x225.jpg\" alt=\"\" class=\"wp-image-2633\" srcset=\"https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4773-300x225.jpg 300w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4773-150x113.jpg 150w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4773-768x576.jpg 768w, https:\/\/digitalnigel.com\/wordpress\/wp-content\/uploads\/2011\/11\/IMG_4773-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>In the end, I&#8217;m extremely pleased with how this project came out, it&#8217;s a beautiful result, and is really fun to show people how the math works here. It&#8217;s also really neat to see the propagation delay in a multi-bit carry due to the relay switching times.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few years ago, the idea came to me to build a binary addition machine as a display piece. The logic would be constructed of SPDT (Single Pole Double Throw) relays, which reduces the number of relays and simplifies the &hellip; <a href=\"https:\/\/digitalnigel.com\/wordpress\/?p=3220\">Continue reading <span class=\"meta-nav\">&rarr;<\/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":[13,20,4],"tags":[],"class_list":["post-3220","post","type-post","status-publish","format-standard","hentry","category-electronics","category-projects","category-random"],"_links":{"self":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3220"}],"version-history":[{"count":1,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3220\/revisions"}],"predecessor-version":[{"id":3223,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/3220\/revisions\/3223"}],"wp:attachment":[{"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalnigel.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}