{"id":240,"date":"2017-09-20T19:30:51","date_gmt":"2017-09-20T18:30:51","guid":{"rendered":"http:\/\/www.burningimage.net\/cattrack\/?p=240"},"modified":"2023-07-22T07:56:58","modified_gmt":"2023-07-22T06:56:58","slug":"gps-cat-tracker-pcb-design","status":"publish","type":"post","link":"https:\/\/www.burningimage.net\/cattrack\/gps-cat-tracker-pcb-design\/","title":{"rendered":"CatTrack PCB Design"},"content":{"rendered":"<p>Before designing the PCB I need to decide on an enclosure to use. \u00a0Ideally I need something plastic, with flanges such that it can be attached easily to a cat&#8217;s collar. \u00a0Clearly size will be a big factor &#8211; I want something small, but not so small that the <a href=\"https:\/\/www.burningimage.net\/cattrack\/gps-cat-tracker-antenna\/\">chip antenna<\/a> is ineffective, or that it&#8217;s a nightmare to lay out and fit everything in.<\/p>\n<p><!--more--><\/p>\n<p>After a bit of searching on Farnell, I found <a href=\"https:\/\/www.hammfg.com\/files\/parts\/pdf\/1551FFLBK.pdf\">this box<\/a> from Hammond &#8211; a big name in the enclosures business! \u00a0It&#8217;s 50mm x 35mm x 15mm and has a plastic flange &#8211; perfect for attaching to Buttons&#8217; collar.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-242 aligncenter\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/1551fflbk-hammond-box.jpg\" alt=\"\" width=\"294\" height=\"200\" \/><\/p>\n<p>There&#8217;s enough space for a small PCB alongside a lithium-ion battery. \u00a0The dimensions of the box closely match the size of the PCB used by Johanson on their <a href=\"https:\/\/www.johansontechnology.com\/datasheets\/antennas\/0868AT43A0020.pdf\">chip antenna development board<\/a>, so hopefully I&#8217;ll be able to get the full performance from the chip antenna.<\/p>\n<p>Very helpfully, Hammond specify the maximum PCB size in their datasheet:<img loading=\"lazy\" decoding=\"async\" class=\" wp-image-243 aligncenter\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/hammond-maximum-pcb-size.png\" alt=\"\" width=\"427\" height=\"327\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/hammond-maximum-pcb-size.png 766w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/hammond-maximum-pcb-size-300x230.png 300w\" sizes=\"auto, (max-width: 427px) 100vw, 427px\" \/><\/p>\n<p>Now I can load this PCB outline directly from the dxf file provided by Hammond into the dimensions layer in my favourite PCB design tool, <a href=\"https:\/\/www.autodesk.com\/products\/eagle\/overview\">Eagle<\/a>.<\/p>\n<p>And then&#8230; after a lot of head-scratching later, the PCB is complete!<a href=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-1-2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-245 size-full aligncenter\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-1-2.png\" alt=\"\" width=\"5274\" height=\"3654\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-1-2.png 5274w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-1-2-300x208.png 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-1-2-768x532.png 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-1-2-1024x709.png 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-1-2-1440x998.png 1440w\" sizes=\"auto, (max-width: 5274px) 100vw, 5274px\" \/><\/a><a href=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-3-4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-246 size-full aligncenter\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-3-4.png\" alt=\"\" width=\"5274\" height=\"3654\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-3-4.png 5274w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-3-4-300x208.png 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-3-4-768x532.png 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-3-4-1024x709.png 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/cattrack-pcb-layers-3-4-1440x998.png 1440w\" sizes=\"auto, (max-width: 5274px) 100vw, 5274px\" \/><\/a>The first image above shows PCB layers 1 and 2, and the image below it shows layers 3 and 4. \u00a0 \u00a0Click them to enlarge. \u00a0There was no way that I could have got the design onto a 2 layer PCB, given all the RF circuitry required.<\/p>\n<p>I&#8217;ve had numerous PCBs made by <a href=\"https:\/\/oshpark.com\">OSH Park<\/a> in the past. \u00a0They are incredibly inexpensive and very high quality, so I&#8217;ll definitely be using them for my CatTrack design.<\/p>\n<p>I&#8217;ve used layer 2 as a ground reference for all of the RF circuitry around the CC1125 on layer 1, so there is no routing in layer 2 in this area. Additionally I&#8217;ve made sure that the RF traces are the correct width for 50 ohm microstrip, using the 4-layer OSH Park stackup, <a href=\"http:\/\/docs.oshpark.com\/services\/four-layer\/\">here<\/a>.<\/p>\n<p>The copper is cleared on all four layers around the antenna, allowing it to radiate effectively. \u00a0I&#8217;ve also cleared the copper from layers 1-3 underneath the GPS module and avoided routing in this area. \u00a0The GPS module will be using layer 4 as a ground reference. \u00a0I&#8217;ve made sure that I&#8217;ve followed the 3mm keep-out area around the GPS module from the datasheet, so hopefully I&#8217;ll get some decent performance from the module.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-247 aligncenter\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/org1411-keepout-area.png\" alt=\"\" width=\"486\" height=\"227\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/org1411-keepout-area.png 1872w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/org1411-keepout-area-300x140.png 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/org1411-keepout-area-768x359.png 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/org1411-keepout-area-1024x478.png 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2017\/09\/org1411-keepout-area-1440x672.png 1440w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/p>\n<p>I spent quite a lot of time refining the silkscreen on the PCB (the silkscreen is the white writing that appears on PCBs). \u00a0It makes life so much easier during soldering and debug if the silkscreen is neat and accurate. \u00a0Plus it makes the PCB look much better!<\/p>\n<p>Now to send the design files off to OSH Park and wait excitedly by the postbox for the boards to arrive!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before designing the PCB I need to decide on an enclosure to use. \u00a0Ideally I need something plastic, with flanges such that it can be attached easily to a cat&#8217;s collar. \u00a0Clearly size will be a big factor &#8211; I want something small, but not so small that the chip antenna is ineffective, or that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":245,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,55,4,70,72,17,71,73,69],"class_list":["post-240","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-posts","tag-antenna","tag-cattrack","tag-cc1125","tag-eagle","tag-enclosure","tag-gps","tag-hammond","tag-osh-park","tag-pcb"],"_links":{"self":[{"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/240","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=240"}],"version-history":[{"count":3,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":250,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/240\/revisions\/250"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/media\/245"}],"wp:attachment":[{"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}