{"id":258,"date":"2017-10-29T15:40:37","date_gmt":"2017-10-29T15:40:37","guid":{"rendered":"http:\/\/www.burningimage.net\/cattrack\/?p=258"},"modified":"2023-07-22T07:56:58","modified_gmt":"2023-07-22T06:56:58","slug":"soldering-matching-the-antenna","status":"publish","type":"post","link":"https:\/\/www.burningimage.net\/cattrack\/soldering-matching-the-antenna\/","title":{"rendered":"PCBs have arrived! Soldering and matching the antenna&#8230;"},"content":{"rendered":"<p>The PCBs have arrived from OSH Park! \u00a0As expected, they look good and the quality is excellent. \u00a0As an added bonus, they even fit in the case I designed them for. \u00a0Result!<\/p>\n<p>Over the last couple of weeks I have also been ordering all the components from a combination of <a href=\"http:\/\/uk.farnell.com\">Farnell<\/a> and <a href=\"https:\/\/www.tme.eu\/en\/\">tme<\/a>. \u00a0Everything&#8217;s arrived and it&#8217;s all ready to solder into place. \u00a0I&#8217;ve also got the firmware into a state such that\u00a0<em>something<\/em> should work too.<\/p>\n<p>Now it&#8217;s time to get soldering!<\/p>\n<p><!--more--><\/p>\n<h4>Soldering<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-266 alignleft\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/fullsizeoutput_a3e.jpeg\" alt=\"\" width=\"401\" height=\"301\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/fullsizeoutput_a3e.jpeg 2048w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/fullsizeoutput_a3e-300x225.jpeg 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/fullsizeoutput_a3e-768x576.jpeg 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/fullsizeoutput_a3e-1024x768.jpeg 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/fullsizeoutput_a3e-1440x1080.jpeg 1440w\" sizes=\"auto, (max-width: 401px) 100vw, 401px\" \/>This is my soldering station (my wife calls it the Dining Room). \u00a0On the left is my Vector Network Analyser (VNA) &#8211; this is what is used to get the antenna match right. \u00a0We want to ensure we transfer the maximum possible amount of power from the output stage of the CC1125 into the antenna. \u00a0I&#8217;ve also got a microscope &#8211; it cost me around \u00a3200, so it&#8217;s not the world&#8217;s best microscope, but it makes soldering a large collection of 0402 components a lot easier. \u00a0My soldering iron is pretty poor &#8211; it is a thermostatic one, but even the smallest ground plan can pull the heat out of the iron quicker than it can pump the heat back in. \u00a0I&#8217;ll get myself a better one one day! \u00a0I used to solder 0402 with a huge iron from Maplin, so although my current one is a bit rubbish, it&#8217;s a huge step up.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-268 alignright\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattracl-soldering.jpeg\" alt=\"\" width=\"405\" height=\"309\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattracl-soldering.jpeg 1668w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattracl-soldering-300x229.jpeg 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattracl-soldering-768x587.jpeg 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattracl-soldering-1024x782.jpeg 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattracl-soldering-1440x1100.jpeg 1440w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><\/p>\n<p>The most difficult component to solder is the CC1125. \u00a0This is because it&#8217;s a QFN device with a ground paddle. \u00a0There are plenty of youtube videos on how to solder these devices. \u00a0I put a small amount of solder on each of the pads, then used a hot air gun to pre-heat the board. \u00a0Once heated I placed the device down and continued to heat from above. \u00a0This causes the solder to melt and create a good contact with the ground paddle and pads.<\/p>\n<p>The first thing I want to do once it&#8217;s all soldered is to measure the output power of the CC1125. \u00a0In order to do this I&#8217;ve connected a small SMA RF lead to the CC1125 output, using the area of copper next to &#8216;v1.2&#8217; that I&#8217;ve purposely not covered in solder resist as a ground plan. \u00a0I&#8217;ve written some basic code in the PIC that tells the CC1125 to output a Continous Wave (CW) at 868 MHz, to allow me to take my measurement. \u00a0The value we are looking for is 15.0 dBm &#8211; the advertised power from the CC1125.<\/p>\n<p>Let&#8217;s see how we get on&#8230;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-270 aligncenter\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-power-measurement.jpg\" alt=\"\" width=\"670\" height=\"502\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-power-measurement.jpg 2048w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-power-measurement-300x225.jpg 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-power-measurement-768x576.jpg 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-power-measurement-1024x768.jpg 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-power-measurement-1440x1080.jpg 1440w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/p>\n<p>Hurrah! 15.83 dBm! \u00a0A great relief&#8230; it means that I&#8217;ve probably soldered everything correctly and got all the right inductor\/capacitor values on the CC1125 output.<\/p>\n<h4>Antenna Match<\/h4>\n<p>The last and often most time-consuming job. \u00a0I&#8217;ve left it to last because it can be affected by pretty much everything else. \u00a0We need to make sure we adjust the match with all of the components soldered in place, in the final enclosure.<\/p>\n<p>As I&#8217;ve said previously, we need to ensure that we get the maximum power transfer from the CC1125 into the antenna. \u00a0If you just whack the chip antenna on the board and connect it directly to the CC1125 output then nothing will happen &#8211; you won&#8217;t be transmitting any power at all. \u00a0Most of the power will end up reflected back into the CC1125. \u00a0By implementing a correct antenna match we can ensure that there is very little power reflected back into the CC1125, and the maximum amount of power makes it into the antenna.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-272 alignright\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matching-components.png\" alt=\"\" width=\"283\" height=\"187\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matching-components.png 970w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matching-components-300x198.png 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matching-components-768x507.png 768w\" sizes=\"auto, (max-width: 283px) 100vw, 283px\" \/><\/p>\n<p>I&#8217;ve left this &#8216;pi&#8217; configuration on the PCB: C11, L8 and C10. \u00a0A combination of capacitors and inductors will form the matching circuit. \u00a0The best place to start is the example values given on the datasheet.<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-273 aligncenter\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/868mhz-johanson-matching.png\" alt=\"\" width=\"702\" height=\"328\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/868mhz-johanson-matching.png 2010w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/868mhz-johanson-matching-300x140.png 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/868mhz-johanson-matching-768x358.png 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/868mhz-johanson-matching-1024x478.png 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/868mhz-johanson-matching-1440x672.png 1440w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/p>\n<p>As we can see, a series inductor of 18 nH and a shunt capacitor of 3.9 pF is Johanson&#8217;s recommendation. \u00a0We&#8217;ll ignore the 0.3 pF capacitor for now &#8211; that will only bring the frequency in ever so slightly, so we can see where we get to just using the two elements then see if it needs a final tweak.<\/p>\n<p>In order to measure the match, I have connected the VNA to the &#8216;input&#8217; port of the antenna, with the CC1125 output disconnected from it. \u00a0We know that the CC1125 is matched to 50 ohms, so we will now match the antenna to 50 ohms at our design frequency of 868 MHz. \u00a0That way when we connected them both back together, there will be maximum power transfer between them.<\/p>\n<p>The VNA tells us how much power is being reflected back from the antenna at each frequency. \u00a0Simplistically speaking, we are looking for a deep notch on the VNA display at 868 MHz. \u00a0This tells us that at this frequency all of the power is going into the antenna and very little is being reflected back. \u00a0We could also use a Smith chart to get a more accurate view of what&#8217;s happening, but that&#8217;s probably a little complex to explain here!<\/p>\n<p>We also want to ensure that the conditions are as realistic as possible, so we want to measure the match with the PCB inside its case. \u00a0To that end, I&#8217;ve had to make some modifications to one of the cases&#8230;!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-262 aligncenter\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-case-match.jpg\" alt=\"\" width=\"510\" height=\"382\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-case-match.jpg 2048w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-case-match-300x225.jpg 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-case-match-768x576.jpg 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-case-match-1024x768.jpg 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/cattrack-case-match-1440x1080.jpg 1440w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/p>\n<p>At first, with the 18 nH series inductor and 3.9 pF shunt capacitor, the match was well off &#8211; it was resonating around 950 MHz &#8211; nowhere near the 868 MHz we&#8217;re after. \u00a0At this point, with a fairly simple design like this, I tend to just start adjusting the values whilst watching what happens on the VNA. \u00a0You can soon get a feel for how much each component variation alters the match. \u00a0Broadly speaking, adjusting the capacitor will alter the match at a specific frequency (the notch will get shallower or deeper), and the inductor will adjust the frequency.<\/p>\n<p>After 15 minutes or so of fiddling, I found that I had to switch to a series capacitor and a shunt inductor. \u00a0This becomes obvious as you continue to reduce the inductor value, but you can&#8217;t bring the frequency down far enough.<\/p>\n<p>I eventually settled on a series capacitor of 1.2 pF and a shunt inductor of 6.8 nH.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-265\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matched.jpeg\" alt=\"\" width=\"3264\" height=\"2448\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matched.jpeg 2048w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matched-300x225.jpeg 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matched-768x576.jpeg 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matched-1024x768.jpeg 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/10\/matched-1440x1080.jpeg 1440w\" sizes=\"auto, (max-width: 3264px) 100vw, 3264px\" \/><\/p>\n<p>As you can see I&#8217;ve got two traces on the display. \u00a0One is a saved trace and the other is a live trace. \u00a0I like to save a trace of the match once it&#8217;s complete, then wiggle the board around and hold it up to my skin (or a cat!) and check that the notch frequency of the live trace doesn&#8217;t deviate too much from the design frequency. \u00a0A bit of &#8216;liveliness&#8217; in the notch as you bring your hand in its vicinity is a really good sign that the antenna is radiating well.<\/p>\n<p>Our marker at 868 MHz on the display shows that we are getting a match of 22.21 dB into the antenna. \u00a0This means that the power reflected back from the antenna is 22.21 dB lower than the power going in. \u00a0 This is very good indeed! \u00a0Usually you&#8217;d consider an antenna &#8216;good&#8217; if you had a match of 10 dB or better. We do need to just bear in mind that this is a very narrow-band match, so it&#8217;s much easier to get a nice deep notch than it is with a wider-band match.<\/p>\n<p>There are all sorts of fancy pieces of software to help with this process &#8211; <a href=\"http:\/\/www.antune.net\">AnTune<\/a> is a good example.<\/p>\n<p>Phew! \u00a0Time now to finish the firmware and then get it tested it out on Buttons for real!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The PCBs have arrived from OSH Park! \u00a0As expected, they look good and the quality is excellent. \u00a0As an added bonus, they even fit in the case I designed them for. \u00a0Result! Over the last couple of weeks I have also been ordering all the components from a combination of Farnell and tme. \u00a0Everything&#8217;s arrived [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":259,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,4,74,69,76,75,78,77],"class_list":["post-258","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-posts","tag-antenna","tag-cc1125","tag-matching","tag-pcb","tag-qfn","tag-soldering","tag-spectrum-analyser","tag-vna"],"_links":{"self":[{"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":6,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":276,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/258\/revisions\/276"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/media\/259"}],"wp:attachment":[{"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}