{"id":1141,"date":"2020-05-12T21:20:38","date_gmt":"2020-05-13T03:20:38","guid":{"rendered":"https:\/\/kjcrr.org\/?page_id=1141"},"modified":"2020-05-24T10:53:16","modified_gmt":"2020-05-24T16:53:16","slug":"mqtt-wifi-turnout-controller","status":"publish","type":"page","link":"https:\/\/kjcrr.org\/?page_id=1141","title":{"rendered":"MQTT WiFi Turnout Controller"},"content":{"rendered":"<p>The circuit has a very few components:<\/p>\n<ul>\n<li>TB1 &#038; TB2 &#8211; 8 contact terminal blocks to connect to the Tortoise motors (4)<\/li>\n<li>TB3 &#038; TB4 &#8211; 3 contact terminal blocks for power 5 and 12v and ground<\/li>\n<li>U1 &#8211; the ESP8266 component<\/li>\n<li>U2 &#8211; the MCP23017 component a 16-Bit I\/O Expander with Serial Interface<\/li>\n<li>U3 &#038; U4 &#8211; L293D Quadruple Half-H Drivers<\/li>\n<li>C1 &#038; C3 &#8211; 33uf 16v capacitors<\/li>\n<li>C2 &#038; C4 &#8211; 0.1uf capacitors<\/li>\n<\/ul>\n<p>The follow schematic shows the circuit<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kjcrr.org\/wp-content\/uploads\/2020\/05\/Turnout-cntrlrv3.png\" alt=\"controller\" \/><br \/>\nThe PCB design can be found in the RAILS-HW project on<a href=\"https:\/\/github.com\/djbristow\/RAILS-HW\" target=\"_blank\" rel=\"noopener noreferrer\">my GitHub repository<\/a><br \/>\nThe source code for the ESP8266 can be found in the RAILS-Micro project on <a href=\"https:\/\/github.com\/djbristow\/RAILS-Micro\" target=\"_blank\" rel=\"noopener noreferrer\">my GitHub repository<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kjcrr.org\/wp-content\/uploads\/2020\/05\/IMG_1270.png\" alt=\"board\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The circuit has a very few components: TB1 &#038; TB2 &#8211; 8 contact terminal blocks to connect to the Tortoise motors (4) TB3 &#038; TB4 &#8211; 3 contact terminal blocks for power 5 and 12v and ground U1 &#8211; the ESP8266 component U2 &#8211; the MCP23017 component a 16-Bit I\/O Expander with Serial Interface U3\u2026 <span class=\"read-more\"><a href=\"https:\/\/kjcrr.org\/?page_id=1141\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":768,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/full-width.php","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-1141","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kjcrr.org\/index.php?rest_route=\/wp\/v2\/pages\/1141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kjcrr.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kjcrr.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kjcrr.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kjcrr.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1141"}],"version-history":[{"count":8,"href":"https:\/\/kjcrr.org\/index.php?rest_route=\/wp\/v2\/pages\/1141\/revisions"}],"predecessor-version":[{"id":1144,"href":"https:\/\/kjcrr.org\/index.php?rest_route=\/wp\/v2\/pages\/1141\/revisions\/1144"}],"up":[{"embeddable":true,"href":"https:\/\/kjcrr.org\/index.php?rest_route=\/wp\/v2\/pages\/768"}],"wp:attachment":[{"href":"https:\/\/kjcrr.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}