{"id":31,"date":"2017-11-06T22:15:27","date_gmt":"2017-11-06T21:15:27","guid":{"rendered":"http:\/\/www.ok2wy.com\/?p=31"},"modified":"2017-11-10T16:03:58","modified_gmt":"2017-11-10T15:03:58","slug":"automatic-antenna-switch","status":"publish","type":"post","link":"http:\/\/www.ok2wy.com\/?p=31&lang=en","title":{"rendered":"Automatic antenna switch"},"content":{"rendered":"<p><strong><em>Human laziness is momentum of progress.<\/em><\/strong><\/p>\n<p>I am too lazy change often antenna cables, seek their ends in mess on my table and toggle all the weird manual antenna switches again and again. One solution for cleaning my hamshack table and obtain as goal possible remotely operated hamshack is an automatic antenna switch.&nbsp;<\/p>\n<p><!--more--><\/p>\n<p>Commercialy available things are even far of my budget or not fulfill my expectation about their functionality. So one nice evening I was start my own homebrew project.<\/p>\n<p>Switch is intended for use with ICOM CI-V protocol. When is used alone with transceiver without PC control (CAT software, any logging software with CAT functionality), the &#8222;CI-V transceive&#8220; option in TRX setup shall be set to &#8222;ON&#8220;.&nbsp;<\/p>\n<h2>Control unit<\/h2>\n<p>Core of control unit is cheap and simple Arduino Nano board (available as cheap chinese clones on ebay or not so expensive originals in local shops). I was diving into my garbage bin, table drawers and waste under table in my workshop and collect some usefull things &#8211; several relays, 16&#215;2 LCD panel, rotary encoder and nice new anodized aluminium box which is big enough for all this garbage. I was deciding not to made the PCB due to simplicity. The relay box do not need PCB too.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_36\" aria-describedby=\"caption-attachment-36\" style=\"width: 997px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/schematic.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-36 size-full\" src=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/schematic.png\" alt=\"\" width=\"997\" height=\"700\" srcset=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/schematic.png 997w, http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/schematic-300x211.png 300w, http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/schematic-768x539.png 768w\" sizes=\"auto, (max-width: 997px) 100vw, 997px\" \/><\/a><figcaption id=\"caption-attachment-36\" class=\"wp-caption-text\">Schematic diagram of control box<\/figcaption><\/figure>\n<p>All capacitors are ceramic blocking, inductor L1 is an ferrite choke SMD inductor found in my drawer.&nbsp; Arduino is very sensitive to RFI induced in cables without filtering of power supply.<\/p>\n<p>Control unit was realized as rats nest on table, code was writen and tested and I was start playing with mechanical construction. This task helps me solved an excellent Autodesk Fusion360 3D CAD. For hobby use it is free, just anual registration is needed. Of course, some time I was spent by learning to use it. I am often using it for construction of 3D things printable on 3D printer (of course, homemade \ud83d\ude09 ). 3D model of my aluminium box I have found on manufacturer&#8217;s website, some other components like Arduino Nano, LCD panel, encoder, connectors and relay I have found on Grabcad website and simple ones I construct myself directly in Fusion360. Then, I got 3D model of entire box assembly, what allowes me to make front and rear panel with holes and engraved texts and base plate from 1,5 mm thick GFK board on my CNC router (of course homemade too \ud83d\ude09 ).<\/p>\n<figure id=\"attachment_34\" aria-describedby=\"caption-attachment-34\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/internal_view.png\" rel=\"attachment wp-att-34\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-34 size-medium\" src=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/internal_view-300x240.png\" alt=\"\" width=\"300\" height=\"240\" srcset=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/internal_view-300x240.png 300w, http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/internal_view-768x614.png 768w, http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/internal_view-1024x819.png 1024w, http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/internal_view.png 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-34\" class=\"wp-caption-text\">3D render of control box assembly<\/figcaption><\/figure>\n<p>Components are allocated on GFK board and directly wired, nothing special. Holders for LCD panels are printed on 3D printer from plastic, screwed to board and display by screws (standard metric M2, M3, thread is cuted directly in plastic, or self tapped small screws can be used). Wires to relay box connector goes through EMI ferrite choke to prevent RFI comming through cable inside box.<\/p>\n<p>Pictures of real construction:<\/p>\n<table class=\" aligncenter\" style=\"height: 200px;\" width=\"480\">\n<tbody>\n<tr>\n<td style=\"width: 160px; height: 160px; text-align: center; vertical-align: middle;\"><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/control_internal-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-48 size-thumbnail\" src=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/control_internal-1-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\"><\/a><\/td>\n<td style=\"width: 160px; height: 160px; text-align: center; vertical-align: middle;\"><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/ctrl.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-49 size-thumbnail\" src=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/ctrl-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\"><\/a><\/td>\n<td style=\"width: 160px; height: 160px; text-align: center; vertical-align: middle;\"><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/ctrl_rear.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-50 size-thumbnail\" src=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/ctrl_rear-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\"><\/a><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 22px; text-align: center;\">inside look&nbsp;<\/td>\n<td style=\"width: 22px; text-align: center;\">Front panel<\/td>\n<td style=\"width: 23px; text-align: center;\">Rear panel<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>&nbsp;<\/h2>\n<h2 style=\"text-align: center;\">Relay box<\/h2>\n<p style=\"text-align: left;\">Relay box is simplest possible part of antenna switch. I have used an aluminium die-cast box with appropriate dimensions. It can be rain water resistant if it will be located connectors side down and appropriately shielded, because UHF connectors are not watertight. If you want to use it outside directly exposed by rain, choose sealed N-type connectors instead and do not forget drill small hole at lowest side of box, which allows condensed water from air humidity inside box drain out. I have used GFK board&nbsp;again,&nbsp; relays are glued by drop of cyanoacrylate glue to this board and wired directly in air. Cable to control box should be shielded type, shielding connected on both side to conductive boxes (conector body).<\/p>\n<figure id=\"attachment_61\" aria-describedby=\"caption-attachment-61\" style=\"width: 931px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay_box.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61 size-full\" src=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay_box.png\" alt=\"Relay box schematic\" width=\"931\" height=\"568\" srcset=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay_box.png 931w, http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay_box-300x183.png 300w, http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay_box-768x469.png 768w\" sizes=\"auto, (max-width: 931px) 100vw, 931px\" \/><\/a><figcaption id=\"caption-attachment-61\" class=\"wp-caption-text\">Relay box schematic<\/figcaption><\/figure>\n<p>Pictures of real construction:<\/p>\n<table class=\" aligncenter\" width=\"320\">\n<tbody>\n<tr>\n<td><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/plastic-parts.zip\">plastic parts<\/a><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay_open-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-52\" src=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay_open-1-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\"><\/a><\/td>\n<td><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-thumbnail wp-image-51\" src=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relay-1-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\"><\/a><\/td>\n<\/tr>\n<tr>\n<td>inside look&nbsp;<\/td>\n<td>connectors<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>What else?<\/h2>\n<p>&nbsp;Following you find STL files of plastic parts for printing on 3D printer &#8211; display holder (2 pcs. needed) and knob for rotary encoder with D-shape shaft 6 mm in diameter. Recommended filament is ABS or PETG:<\/p>\n<p><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/plastic-parts.zip\"><span style=\"color: #0000ff;\">plastic parts<\/span><\/a><\/p>\n<p>And last but not least, arduino code. Please read comments, you should understand how setup through serial terminal works. If not, download any serial terminal (for example PUTTY), set COM port where you have connected Arduino, set speed 38400 Baud, pres ENTER key and read instructions on your screen \ud83d\ude09 .<\/p>\n<p><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/antenna_switch_OK2WY.zip\"><span style=\"color: #0000ff;\">arduino code<\/span><\/a><\/p>\n<p>Schematics in PDF:<\/p>\n<p><a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/sw.pdf\"><span style=\"color: #0000ff;\">control box<\/span><\/a>&nbsp; and&nbsp;&nbsp;<a href=\"http:\/\/www.ok2wy.com\/wp-content\/uploads\/2017\/11\/relaybox.pdf\"><span style=\"color: #0000ff;\">relay box<\/span><\/a><\/p>\n<p>Feel free to use this article yourself, but please do not use it for commercial purposes. I will not take any responsibility for injuries, natural disasters, divorces, damaged equipments, car accidents, lost kittens and missed DX QSOs happened due to usage of my construction \ud83d\ude09<\/p>\n<p><strong>Have fun with HAMradio!<\/strong><\/p>\n<p>73! de Jiri&nbsp; OK2WY (twisted_sour_fish) ok2wy.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Human laziness is momentum of progress. I am too lazy change often antenna cables, seek their ends in mess on my table and toggle all the weird manual antenna switches again and again. One solution for cleaning my hamshack table and obtain as goal possible remotely operated hamshack is an automatic antenna switch.&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-31","post","type-post","status-publish","format-standard","hentry","category-projects"],"_links":{"self":[{"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=\/wp\/v2\/posts\/31","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=31"}],"version-history":[{"count":18,"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":77,"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions\/77"}],"wp:attachment":[{"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ok2wy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}