{"id":727,"date":"2014-02-15T13:10:10","date_gmt":"2014-02-15T13:10:10","guid":{"rendered":"http:\/\/blog.mentin.at\/?p=727"},"modified":"2016-01-04T17:06:56","modified_gmt":"2016-01-04T17:06:56","slug":"first-steps-with-integrating-rf-modules","status":"publish","type":"post","link":"https:\/\/blog.mentin.at\/?p=727","title":{"rendered":"First steps with integrating RF Modules"},"content":{"rendered":"<p>In addition to the main system controller module as described in the post from\u00a0June 12, i had to design something for me completely new. A RF Module has to be integrated for a Prototype ZWave to Industrial Analog Outupt:<\/p>\n<ul>\n<li><strong><span style=\"line-height: 13px;\">0-10V (default)<\/span><\/strong><\/li>\n<li>0-5V<\/li>\n<li>0-20mA<\/li>\n<li>4-20mA<\/li>\n<\/ul>\n<p>The ZWave Module is getting values from 0-255 from a ZWave Controller and these Values should be mapped to the DAC output. For this purpose i was going to use a tiny Microchip 8bit MCU (<a title=\"PIC18F14K22\" href=\"http:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/41365C.pdf\">PIC18LF14K22<\/a>) a DAC from Analog Devices, providing functionalities as described (<a title=\"AD5412\" href=\"http:\/\/www.analog.com\/en\/digital-to-analog-converters\/da-converters\/ad5412\/products\/product.html\">AD5412<\/a>) and a ZWave Module (<a href=\"http:\/\/www.digikey.at\/product-detail\/de\/ZM5202AU-CME3R\/703-1072-2-ND\/4135451\">ZM5202<\/a>) for RF Communications connected via a serial Interface to the MCU. The RF Module has 50\u03a9 Output Impedance, so for optimum RF Performance i had to design a\u00a050\u03a9 trace on the PCB for connecting a Antenna for \u00a0868,42\u00a0MHz.<\/p>\n<p>Therefore i took a look into the Design Tool TXLine:<\/p>\n<p><a href=\"http:\/\/mentin-blog.azurewebsites.net\/wp-content\/uploads\/TXLine.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-731\" src=\"http:\/\/mentin-blog.azurewebsites.net\/wp-content\/uploads\/TXLine.png\" alt=\"TXLine\" width=\"465\" height=\"274\" srcset=\"https:\/\/blog.mentin.at\/wp-content\/uploads\/TXLine.png 665w, https:\/\/blog.mentin.at\/wp-content\/uploads\/TXLine-300x176.png 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/a>I considered a PCB Anenna Trace in the configuration <em>&#8220;Coplanar Waveguide with Ground&#8221;.\u00a0<\/em>When using standard FR4 PCB Material you are going to expect a Dielectric Constant of 4.3 -4.7 and a Loss tangent of 0.021.<\/p>\n<p>In a Layer Stackup when using <em>100um Prepreg<\/em> and a Gap of <em>10mil <\/em>im going to expect a Trace Impedance of 49.95\u03a9.\u00a0In order to meet the requirements of the PCB Manufacturer i changed the Prepreg Thickness to <em>360um.\u00a0<\/em><\/p>\n<figure id=\"attachment_725\" aria-describedby=\"caption-attachment-725\" style=\"width: 360px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/mentin-blog.azurewebsites.net\/wp-content\/uploads\/IO_Extender.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-725\" title=\"ZWave to Industrial Analog Output Module\" src=\"http:\/\/mentin-blog.azurewebsites.net\/wp-content\/uploads\/IO_Extender.jpg\" alt=\"IO_Extender\" width=\"360\" height=\"596\" srcset=\"https:\/\/blog.mentin.at\/wp-content\/uploads\/IO_Extender.jpg 600w, https:\/\/blog.mentin.at\/wp-content\/uploads\/IO_Extender-181x300.jpg 181w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/a><figcaption id=\"caption-attachment-725\" class=\"wp-caption-text\">Antenna Trace as CPWG<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>Therefore the Trace dimensions and the Gap to the Top GND Plane had to be adopted. In order to get best\u00a0HF-Performance on the PCB it is recommended that you guide the Antenna Trace, not only with the Top GND Plane, you also have to make this GND very &#8220;low inductive&#8221;. So placing additional GND Via&#8217;s near the Trace is a good idea. As it can seen on the picture i added many of them. In fact i never designed impedance controlled traces before, i added a <strong>PI Filter Structure<\/strong> for Antenna matching if necessary. First tests were made without any matching circuitry and the RF performance was good. So no further maching was done. During my research i found another useful Tool for designing Impedance controlled traces and differential pairs: <a title=\"get it free here!\" href=\"http:\/\/www.saturnpcb.com\/pcb_toolkit.htm\">Saturn PCB Design ToolKit<\/a>. Its free, it does a good job and its really easy to use. I really recommend that Tool for every PCB designer to check the Impedance of critical Traces!<\/p>\n<p>After some startup problems, i was getting better and better in understanding the ZWave Serial API. Coding the firmware for some essential functions (ZWave- inclusion\\exclusion, Basic- set\\get) was a \u00a0bit challenging but now it works fine. Acutal the Operating Voltage \u00a0is polarity protected and\u00a0any Voltage\u00a0can be choosen \u00a0between 10.8V and 36V. When mounted in the housing for DIN Rail mount it looks like <a href=\"http:\/\/blog.mentin.at\/wp-content\/uploads\/IO_Extender_2.jpg\">this<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In addition to the main system controller module as described in the post from\u00a0June 12, i had to design something for me completely new. A RF Module has to be integrated for a Prototype ZWave to Industrial Analog Outupt: 0-10V (default) 0-5V 0-20mA 4-20mA The ZWave Module is getting values from 0-255 from a ZWave &hellip; <a href=\"https:\/\/blog.mentin.at\/?p=727\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">First steps with integrating RF Modules<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":772,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[41],"class_list":["post-727","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dms","tag-featured"],"_links":{"self":[{"href":"https:\/\/blog.mentin.at\/index.php?rest_route=\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mentin.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mentin.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mentin.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mentin.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=727"}],"version-history":[{"count":47,"href":"https:\/\/blog.mentin.at\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":3601,"href":"https:\/\/blog.mentin.at\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions\/3601"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.mentin.at\/index.php?rest_route=\/wp\/v2\/media\/772"}],"wp:attachment":[{"href":"https:\/\/blog.mentin.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mentin.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mentin.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}