{"id":71,"date":"2016-04-21T22:23:05","date_gmt":"2016-04-21T20:23:05","guid":{"rendered":"http:\/\/www.b00z.nl\/blog\/?p=71"},"modified":"2017-11-05T12:48:50","modified_gmt":"2017-11-05T11:48:50","slug":"my-first-steps-at-home-automation-and-pcb-design-otgw-led-panel-design-with-eagle-software","status":"publish","type":"post","link":"https:\/\/www.b00z.nl\/blog\/2016\/04\/my-first-steps-at-home-automation-and-pcb-design-otgw-led-panel-design-with-eagle-software\/","title":{"rendered":"My first steps at Home automation and PCB design: OTGW &#8211; LED Panel design with Eagle software"},"content":{"rendered":"<p>Due to my line of work (IT) I got interested in home automation. Everything that can be automated, means less things to do by hand \ud83d\ude09 So while looking around at the internet I came across the ESP-12E and Arduino. Bought some Arduino nano&#8217;s and ESP-12E modules. As network engineer I was more interested in the ESP-12E because it&#8217;s a small wifi enabled module. Handy for small sensors. After playing around with those I also came across the OTGW &#8211; <a href=\"http:\/\/otgw.tclcode.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/otgw.tclcode.com\/<\/a><\/p>\n<p>How awesome is that! Controlling your home heating system! You could buy something like Toon (in the Netherlands) but it has some strange drawbacks and building your own system is much more fun.<\/p>\n<p>Since I got my own solder iron for my birthday I ordered only the PCB and the components to build it yourself. And as I wanted to do it all by myself, I thought, just by the PIC&#8217;s and also program them myself. On Aliexpress I found the PICs and the programmer. Both received really quickly<\/p>\n<p>So I first soldered the gateway together:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-77\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1465-300x170.jpg\" alt=\"PCB1\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1465-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1465-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1465-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-76 alignleft\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1464-300x170.jpg\" alt=\"PCB2\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1464-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1464-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1464-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-78\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1466-300x170.jpg\" alt=\"PCB3\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1466-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1466-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1466-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>After struggling with programming the PIC, I finally managed to have it programmed. [link to post will follow]<\/p>\n<p>Added all together and had a working gateway. This gateway has also connections for status LED&#8217;s. However, I didn&#8217;t find anything about getting the LED&#8217;s connected and build in the housing. So there started the first idea of designing my own PCB. I&#8217;m someone who takes the difficult road just for the fun of it. And now I had a real goal for designing a real PCB. I downloaded the Eagle PCB design software and just started &#8220;drawing&#8221;.<\/p>\n<p>After couple of hours (read: days ;o) ) I finally got it and managed to create my PCB. Yeah!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-90\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/panelschema-300x244.png\" alt=\"panelschema\" width=\"300\" height=\"244\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/panelschema-300x244.png 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/panelschema.png 366w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-89\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/panellayout.png\" alt=\"panellayout\" width=\"298\" height=\"298\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/panellayout.png 298w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/panellayout-150x150.png 150w\" sizes=\"auto, (max-width: 298px) 100vw, 298px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Now I needed to have my design manufactured and found DirtyPCB&#8217;s &#8211; <a href=\"http:\/\/dirtypcbs.com\/store\/designer\/browse\/10401\" target=\"_blank\" rel=\"noopener\">http:\/\/dirtypcbs.com\/<\/a> &#8211; which is quite cheap as far as I know. Their standard sizes are 5&#215;5 and 10&#215;10; 5&#215;5 happened to be the perfect size for my project! win-win!<br \/>\nIf you like the PCB and want to order it, and you value the time I&#8217;ve put in it, please use this link to order it: <a href=\"http:\/\/dirtypcbs.com\/store\/designer\/browse\/10401\" target=\"_blank\" rel=\"noopener\">http:\/\/dirtypcbs.com\/store\/designer\/browse\/10401<\/a><br \/>\nWhen you do, thank you! It will help me create more great stuff. Also, Post a comment when you&#8217;ve PCB&#8217;s left so other can contact you to buy your leftovers. \ud83d\ude09<\/p>\n<p>So I send them my files, actually I send it 4 times because I didn&#8217;t know all the needed file formats yet but I got there. They even provide a graphic preview of the design you upload so that&#8217;s really handy! At least for a n00b like me.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-91\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/Screenshot-from-2016-02-21-181551-300x180.png\" alt=\"PCBPreview\" width=\"300\" height=\"180\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/Screenshot-from-2016-02-21-181551-300x180.png 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/Screenshot-from-2016-02-21-181551-768x460.png 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/Screenshot-from-2016-02-21-181551.png 962w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>After waiting some time I got my own, first self designed PCB! That was really cool.<br \/>\nAs soon as I received the PCB&#8217;s I soldered the components and installed it in the housing. As I already thought, all fitted like it should be! As a drilling template I printed the PCB export and glued it onto a piece of cardboard. You can download the template PDF at the end of the post.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-79\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1510-300x170.jpg\" alt=\"Template1\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1510-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1510-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1510-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-80 alignnone\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1511-300x170.jpg\" alt=\"Template2\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1511-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1511-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1511-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-86\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1517-170x300.jpg\" alt=\"CompletedPanel\" width=\"170\" height=\"300\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1517-170x300.jpg 170w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1517-768x1358.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1517-579x1024.jpg 579w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1517.jpg 1520w\" sizes=\"auto, (max-width: 170px) 100vw, 170px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-81\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1512-300x170.jpg\" alt=\"Case1\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1512-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1512-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1512-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-82 alignnone\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1513-300x170.jpg\" alt=\"Case2\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1513-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1513-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1513-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-83\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1514-300x170.jpg\" alt=\"Case3\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1514-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1514-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1514-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-84\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1515-170x300.jpg\" alt=\"Case4\" width=\"170\" height=\"300\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1515-170x300.jpg 170w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1515-768x1358.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1515-579x1024.jpg 579w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1515.jpg 1520w\" sizes=\"auto, (max-width: 170px) 100vw, 170px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-85\" src=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1516-300x170.jpg\" alt=\"Case5\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1516-300x170.jpg 300w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1516-768x434.jpg 768w, https:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/IMAG1516-1024x579.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>So I&#8217;m quite happy about my first &#8216;steps&#8217; in PCB design. As resistor values I&#8217;ve used the following:<\/p>\n<p>Yellow\/R1: 2k Ohm<br \/>\nGreen\/R2: 2k Ohm<br \/>\nBlue\/R3: 20k Ohm<br \/>\nRed\/R4: 10k Ohm<\/p>\n<p>Side note: As I had to order 10 pcs of the PCB, and only needed one for myself, I&#8217;ve 9 left, so if you&#8217;re interested in buying one, let me know! Costs are 2 EUR plus shipping. In the Netherlands it would cost a stamp or two, but let me know where you live and I&#8217;ll let you know the costs with regular mail.<\/p>\n<p>That was all for this post. I hope it (will) help you on your own quest \ud83d\ude09<\/p>\n<p>Links and downloads<br \/>\n&#8211; Template PDF for drilling: <a href=\"http:\/\/www.b00z.nl\/blog\/wp-content\/uploads\/2016\/04\/gateway-LED.pdf\">gateway-LED-DrillingTemplate<\/a><br \/>\n&#8211; PCB Ordering: <a href=\"http:\/\/dirtypcbs.com\/store\/designer\/browse\/10401\">http:\/\/dirtypcbs.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to my line of work (IT) I got interested in home automation. Everything that can be automated, means less things to do by hand \ud83d\ude09 So while looking around at the internet I came across the ESP-12E and Arduino. &hellip; <a href=\"https:\/\/www.b00z.nl\/blog\/2016\/04\/my-first-steps-at-home-automation-and-pcb-design-otgw-led-panel-design-with-eagle-software\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":86,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[43,42,44,45,40,41,39],"class_list":["post-71","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howto","tag-aliexpress-otgw-panel","tag-design","tag-dirty-pcb","tag-dirtypcb","tag-eagle","tag-otgw","tag-pcb"],"_links":{"self":[{"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/posts\/71","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":12,"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions\/147"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/media\/86"}],"wp:attachment":[{"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.b00z.nl\/blog\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}