{"id":336,"date":"2018-01-05T22:40:34","date_gmt":"2018-01-05T22:40:34","guid":{"rendered":"http:\/\/www.burningimage.net\/cattrack\/?p=336"},"modified":"2023-07-22T07:56:57","modified_gmt":"2023-07-22T06:56:57","slug":"cattrack-base-station-schematic","status":"publish","type":"post","link":"https:\/\/www.burningimage.net\/cattrack\/cattrack-base-station-schematic\/","title":{"rendered":"CatTrack Base Station Schematic"},"content":{"rendered":"<p>Now that the CatTrack collar is working, I&#8217;ve been designing the schematic for the base station. \u00a0The base station is the handheld unit I&#8217;m going to use to communicate with the collar to work out where the cat is. \u00a0Currently I&#8217;m using a CC1125 development board. \u00a0More about that <a href=\"https:\/\/www.burningimage.net\/cattrack\/it-works\/\">here<\/a>.<\/p>\n<p>The idea is that the base station will mostly live at home, perhaps in my loft (to get decent range) and I&#8217;ll be able to communicate with it from my living room via Bluetooth from my laptop. \u00a0It should also be portable because if Buttons goes miles I want to be able to take the base station out and about to track him remotely.<\/p>\n<p><!--more--><\/p>\n<p>To that end, I&#8217;ve designed the following schematic (click to enlarge):<\/p>\n<p><a href=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2018\/01\/gps-cat-tracker-base-station-schematic.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-338\" src=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2018\/01\/gps-cat-tracker-base-station-schematic.png\" alt=\"\" width=\"547\" height=\"269\" srcset=\"https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2018\/01\/gps-cat-tracker-base-station-schematic.png 3090w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2018\/01\/gps-cat-tracker-base-station-schematic-300x147.png 300w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2018\/01\/gps-cat-tracker-base-station-schematic-768x377.png 768w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2018\/01\/gps-cat-tracker-base-station-schematic-1024x503.png 1024w, https:\/\/www.burningimage.net\/cattrack\/wp-content\/uploads\/2018\/01\/gps-cat-tracker-base-station-schematic-1440x707.png 1440w\" sizes=\"auto, (max-width: 547px) 100vw, 547px\" \/><\/a><\/p>\n<p>The base station can be powered one of three different ways:<\/p>\n<ol>\n<li>Lithium ion battery (for when out and about)<\/li>\n<li>Micro USB (also charges the lithium ion battery when connected)<\/li>\n<li>+5V screw terminal (again, charges the battery when connected)<\/li>\n<\/ol>\n<p>There is a switch present which disconnects the battery. \u00a0If USB or +5V are connected then the board automatically powers up, with the charging status of the battery shown on the LCD screen. The screen is a bog standard\u00a0<a href=\"https:\/\/www.sparkfun.com\/products\/255\">16&#215;2 LCD screen<\/a>, found in many consumer devices and available for only a few pounds.<\/p>\n<p>There are also a pair of buttons, used for controlling the base station when it&#8217;s being used as a standalone unit. \u00a0You&#8217;ll be able to use both beacon mode and the locate mode directly from the unit. \u00a0More about all the CatTrack modes <a href=\"https:\/\/www.burningimage.net\/cattrack\/writing-the-code\/\">here<\/a>. The idea is that the results from the &#8216;beacon&#8217; or the lat\/lon will be displayed on the screen once Buttons has been located.<\/p>\n<p>In addition to being able to control the base station from the hand held unit itself, I want to be able to talk to it remotely from my PC. \u00a0That way I can put the base station up in the loft to get maximum range, and communicate with it via my PC in the lounge. \u00a0To achieve that, I&#8217;ve added a <a href=\"https:\/\/www.sparkfun.com\/products\/12575\">Microchip RN41 Bluetooth module<\/a> to the unit. \u00a0This module takes care of all of the difficult Bluetooth stuff for you, creating a seamless UART connection from a PC to the base station via Bluetooth. \u00a0A lot of people use <a href=\"https:\/\/arduino-info.wikispaces.com\/BlueTooth-HC05-HC06-Modules-How-To\">HC-05 modules<\/a> for this purpose, which is basically an unbranded equivalent of the RN41, but I spotted some RN41 modules going cheap on eBay, so went for that!<\/p>\n<p>There are a number of other bits of interest on the board:<\/p>\n<ol>\n<li><strong>Microchip MCP73831<\/strong> &#8211; Lithium ion charging IC. \u00a0Takes care of charging the battery from the +5V input, ensuring it&#8217;s not overcharged. \u00a0The IC indicates to the microcontroller the charging status, so I can display it on the LCD.<\/li>\n<li><strong>Microchip PIC16LF18855<\/strong> &#8211; A 28-pin PIC microcontroller. \u00a0I&#8217;ve selected this one because it&#8217;s the cheapest one currently available that does everything I need it to. \u00a0It&#8217;s only just come out, but is widely available. \u00a0Every time Microchip bring out a new PIC they seem to make it cheaper than the previous generation, then they increase the price of all the older PICs. \u00a0This means that companies end up having to pay more and more for the Microcontrollers they&#8217;ve designed into products, as they can&#8217;t keep updating their old designs to new PICs.<\/li>\n<li><strong>Microchip MCP1700T<\/strong>\u00a0&#8211; 3V3 regulator<\/li>\n<li><strong>TI CC1125<\/strong> &#8211; The same transceiver IC used in the CatTrack collar, communicates with the PIC via SPI.<\/li>\n<li><strong>FET circuit<\/strong> &#8211; Q1, D1 and R1 are there to disable the battery power when external 5V power is present. \u00a0This ensures the battery is only used when it needs to be.<\/li>\n<li><strong>Jumpers<\/strong> &#8211; used to send the PIC UART either to the Bluetooth module or a header, used for debug purposes.<\/li>\n<\/ol>\n<p>I&#8217;ve also fed the li-ion battery voltage into an ADC pin on the PIC so I can work out the percentage remaining and display it on the screen. \u00a0The +5V voltage input is also fed into the PIC, just so that the PIC knows whether it&#8217;s currently running off battery power or external +5V.<\/p>\n<p>I&#8217;ll give it a good check for errors, then get on with laying out the PCB.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that the CatTrack collar is working, I&#8217;ve been designing the schematic for the base station. \u00a0The base station is the handheld unit I&#8217;m going to use to communicate with the collar to work out where the cat is. \u00a0Currently I&#8217;m using a CC1125 development board. \u00a0More about that here. The idea is that the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":338,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,92],"tags":[91,89,55,4,88,10,87,59,66,90,24,25,86,11],"class_list":["post-336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-posts","category-schematics","tag-base-station","tag-bluetooth-uart","tag-cattrack","tag-cc1125","tag-charger","tag-hc-05","tag-lcd","tag-li-ion","tag-mcp1700","tag-mcp73831","tag-microcontroller","tag-pic","tag-pic16lf18855","tag-uart"],"_links":{"self":[{"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/336","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=336"}],"version-history":[{"count":2,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":340,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/posts\/336\/revisions\/340"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/media\/338"}],"wp:attachment":[{"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/media?parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/categories?post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.burningimage.net\/cattrack\/wp-json\/wp\/v2\/tags?post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}