{"id":1947,"date":"2019-10-25T16:58:36","date_gmt":"2019-10-25T14:58:36","guid":{"rendered":"https:\/\/blog.shade.sh\/?p=1947"},"modified":"2020-05-01T17:14:49","modified_gmt":"2020-05-01T15:14:49","slug":"ender-5-skr-mini-e3-bltouch-octoprint","status":"publish","type":"post","link":"https:\/\/blog.shade.sh\/index.php\/archive\/1947","title":{"rendered":"Ender 5, SKR Mini E3, BLTouch, Octoprint (+512k)"},"content":{"rendered":"\n<p>For those, with that combination at home and searched for a simple and structured setup without many visible cables floating around: Thats for you!<\/p>\n\n\n\n<p>I&#8217;ve integrated the RPI (3b), the power supply for it (230v AC to 5v DC 2A) and a 24v to 5v buck converter in the stock housing of the ender 5, as a bonus without a USB cable outside \ud83d\ude09<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>The BTT SKR Mini E3 is a good and easy replacement for original Creality Boards but somehow bitchy board. The most common problem here is, the limited PROGMEM of 256kb and no EEPROM&#8230; but what does this mean? Well at least, no Unified Bed Leveling for us (yet) and a bit more tweaking of available space and EEPROM Emulation. At writing time there was no stable solution to use the SDCard as EEPROM storage. <strong>The maximum marlin size is currently 224kb, keep that in mind!<\/strong><\/p>\n\n\n\n<p>As you can see here, this is my current setup inside the electronic box:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1500\" height=\"844\" src=\"https:\/\/blog.shade.sh\/wp-content\/uploads\/2019\/10\/box.jpg\" alt=\"\" class=\"wp-image-1952\"\/><\/figure>\n\n\n\n<p>The RPI is mounted with <a href=\"http:\/\/www.thingiverse.com\/thing:3010304\">this self printed mount<\/a> you have to drill 4 holes to mount the plate to the case. The rest is fixed with strong double sided duct tape. The RPI has a direct UART connection to the board using the<\/p>\n\n\n\n<p><code>enable_uart=1<\/code><\/p>\n\n\n\n<p>parameter inside the Octoprint \/boot\/config.txt and using the TFT header (RX0\/TX0\/GND) on the SKR Mini E3 as connection to the board. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"322\" height=\"79\" src=\"https:\/\/blog.shade.sh\/wp-content\/uploads\/2020\/05\/Bildschirmfoto-2020-05-01-um-17.12.54.png\" alt=\"\" class=\"wp-image-1983\"\/><\/figure>\n\n\n\n<p>This should work directly out of the box, because we&#8217;re using this parameter in Configuration.h:<\/p>\n\n\n\n<p><code>\/**&nbsp;*&nbsp;Select&nbsp;the&nbsp;serial&nbsp;port&nbsp;on&nbsp;the&nbsp;board&nbsp;to&nbsp;use&nbsp;for&nbsp;communication&nbsp;with&nbsp;the&nbsp;host.&nbsp;*&nbsp;This&nbsp;allows&nbsp;the&nbsp;connection&nbsp;of&nbsp;wireless&nbsp;adapters&nbsp;(for&nbsp;instance)&nbsp;to&nbsp;non-default&nbsp;port&nbsp;pins.&nbsp;*&nbsp;Note:&nbsp;The&nbsp;first&nbsp;serial&nbsp;port&nbsp;(-1&nbsp;or&nbsp;0)&nbsp;will&nbsp;always&nbsp;be&nbsp;used&nbsp;by&nbsp;the&nbsp;Arduino&nbsp;bootloader.&nbsp;*&nbsp;*&nbsp;:[-1,&nbsp;0,&nbsp;1,&nbsp;2,&nbsp;3,&nbsp;4,&nbsp;5,&nbsp;6,&nbsp;7]&nbsp;*\/<\/code><\/p>\n\n\n\n<p><code>#define&nbsp;SERIAL_PORT&nbsp;2<br><\/code><\/p>\n\n\n\n<p><code>\/**&nbsp;*&nbsp;Select&nbsp;a&nbsp;secondary&nbsp;serial&nbsp;port&nbsp;on&nbsp;the&nbsp;board&nbsp;to&nbsp;use&nbsp;for&nbsp;communication&nbsp;with&nbsp;the&nbsp;host.&nbsp;*&nbsp;This&nbsp;allows&nbsp;the&nbsp;connection&nbsp;of&nbsp;wireless&nbsp;adapters&nbsp;(for&nbsp;instance)&nbsp;to&nbsp;non-default&nbsp;port&nbsp;pins.&nbsp;*&nbsp;Serial&nbsp;port&nbsp;-1&nbsp;is&nbsp;the&nbsp;USB&nbsp;emulated&nbsp;serial&nbsp;port,&nbsp;if&nbsp;available.&nbsp;*&nbsp;*&nbsp;:[-1,&nbsp;0,&nbsp;1,&nbsp;2,&nbsp;3,&nbsp;4,&nbsp;5,&nbsp;6,&nbsp;7]&nbsp;*\/<\/code><\/p>\n\n\n\n<p><code>#define&nbsp;SERIAL_PORT_2&nbsp;-1<\/code><\/p>\n\n\n\n<p>The RPI UART wiring is simple, you have to use 3 wires, the own RPI UART RX\/TX GPIO and one of the GND pins. So RX from the SKR Mini E3 TFT Header to TX (BCM 14) on the RPI and the TX from the SKR Mini E3 TFT Header to RX (BCM 15) on the RPI. For GND you can choose any GND Pin on the RPI. In the Octoprint settings you have to add the additional serial Port &#8220;\/dev\/ttyAMA0&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.shade.sh\/wp-content\/uploads\/2019\/10\/Bildschirmfoto-2019-10-25-um-16.33.42.png\" alt=\"\" class=\"wp-image-1956\" width=\"215\" height=\"245\"\/><\/figure>\n\n\n\n<p>The Relay is powered by the RPI 5v feed and uses BCM 18 as control GPIO. You need the Octoprint Plugin <a href=\"https:\/\/plugins.octoprint.org\/plugins\/psucontrol\/\">&#8220;PSU Control&#8221;<\/a> to control the Relay with Octoprint.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1372\" height=\"1014\" src=\"https:\/\/blog.shade.sh\/wp-content\/uploads\/2019\/10\/Bildschirmfoto-2019-10-25-um-16.51.28.png\" alt=\"\" class=\"wp-image-1961\"\/><\/figure>\n\n\n\n<p>I&#8217;m also powering the RPI via GPIO. For that i&#8217;m using a AC 230v to DC 5v converter inside the box, which is connected directly from the first AC 230v incoming feed. On the RPI you can use any 5v and GND pin. So my RPI is always on. But keep in mind, every safety protection from the USB powering isn&#8217;t active if you power your RPI via GPIO! Advice: Buy a good quality AC \/ DC converter board.<\/p>\n\n\n\n<p>The DC 24v to DC 5v converter is for a LED board, it&#8217;s a good light source for the print bed. You can connect the converter directly to the 24v PSU feeds or the 24v FAN output on the SKR Mini E3. I&#8217;ve used the 24v directly from the PSU.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Shopping List:<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" aria-label=\"BTT SKR Mini E3 v1.2 (opens in a new tab)\" href=\"https:\/\/www.aliexpress.com\/item\/33042554065.html\" target=\"_blank\">BTT SKR Mini E3 v1.2<\/a><\/li><li><a rel=\"noreferrer noopener\" aria-label=\"1 Channel 5v Relay Low Trigger (opens in a new tab)\" href=\"https:\/\/www.aliexpress.com\/item\/32898156749.html\" target=\"_blank\">1 Channel 5v Relay Low Trigger<\/a><\/li><li><a rel=\"noreferrer noopener\" aria-label=\"DC 24v to DC 5v Converter (opens in a new tab)\" href=\"https:\/\/ebay.us\/BonJSz\" target=\"_blank\">DC 24v to DC 5v Converter<\/a><\/li><li><a rel=\"noreferrer noopener\" aria-label=\"Raspberry PI 3b (or 4b) (opens in a new tab)\" href=\"https:\/\/www.amazon.de\/dp\/B01CD5VC92\/ref=cm_sw_em_r_mt_dp_U_jLbTDb2K2ZD78\" target=\"_blank\">Raspberry PI 3b (or 4b)<\/a><\/li><li>Different color cables and Dupont Connector<\/li><li><a rel=\"noreferrer noopener\" aria-label=\"Genuine BLTouch v3.1 (opens in a new tab)\" href=\"https:\/\/www.roboter-bausatz.de\/1344\/bltouch-autolevel-sensor-fuer-3d-drucker\" target=\"_blank\">Genuine BLTouch v3.1<\/a><\/li><li><a rel=\"noreferrer noopener\" aria-label=\"WAGO Connectors (opens in a new tab)\" href=\"https:\/\/www.aliexpress.com\/item\/4000239037661.html\" target=\"_blank\">WAGO Connectors<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Downloads:<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/s.shade.sh\/marlin\/marlin2-e5-skre3-bltouch.zip\">Marlin 2.0 Bugfix Source<\/a><\/li><li><a href=\"https:\/\/s.shade.sh\/marlin\/marlin2-e5-skre3-bltouch.bin\">Marlin 2.0 Binary<\/a><\/li><li><a href=\"https:\/\/s.shade.sh\/marlin2-e5-skre3-bltouch-512K.bin\">Marlin 2.0 Binary<\/a> (512k Edition with UBL and TMC Debug)<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>For those, with that combination at home and searched for a simple and structured setup without many visible cables floating around: Thats for you! I&#8217;ve integrated the RPI (3b), the power supply for it (230v AC to 5v DC 2A) &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/blog.shade.sh\/index.php\/archive\/1947\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[391,1],"tags":[399,397,400,402,398,401],"class_list":["post-1947","post","type-post","status-publish","format-standard","hentry","category-3d-printing","category-allgemein","tag-bltouch","tag-ender-5","tag-octoprint","tag-serial","tag-skr-mini-e3","tag-uart"],"_links":{"self":[{"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/posts\/1947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/comments?post=1947"}],"version-history":[{"count":25,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/posts\/1947\/revisions"}],"predecessor-version":[{"id":1984,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/posts\/1947\/revisions\/1984"}],"wp:attachment":[{"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/media?parent=1947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/categories?post=1947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.shade.sh\/index.php\/wp-json\/wp\/v2\/tags?post=1947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}