{"id":1382,"date":"2018-08-18T03:52:04","date_gmt":"2018-08-18T02:52:04","guid":{"rendered":"https:\/\/ofalcao.pt\/blog\/?p=1382"},"modified":"2018-08-20T21:55:34","modified_gmt":"2018-08-20T20:55:34","slug":"the-powered-up-smoke-engine","status":"publish","type":"post","link":"https:\/\/ofalcao.pt\/blog\/2018\/the-powered-up-smoke-engine","title":{"rendered":"The Powered Up Smoke Engine"},"content":{"rendered":"<div class=\"seriesmeta\">This post is part 2 of 2 of \u00a0<a href=\"https:\/\/ofalcao.pt\/blog\/series\/gatto-negro\" class=\"series-339\" title=\"Gatto Negro\">Gatto Negro<\/a><\/div><p>I will now explain how to connect a smoke engine to the Powered Up Hub &#8211; a method that can be used for several type of electric or electronic devices, not just a smoke generator.<\/p>\n<p>First we need to remember the pinout. I show here the female plug on the hub, it&#8217;s easier to see the pins:<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large\" src=\"https:\/\/lh3.googleusercontent.com\/CtgC2_lmA_uZG4yfR6vf8kTNTY5YQ6_BQfLkAa9LVaBr9ZpA9nkW14JA2vTV0AuN_BZ6asz6L8C7Kmf_EfimBJxLKm12sLYqySSyMYSLWu814xGpSbxtOjXDryDxT3jwdb-kalpuvw=w1920-h1080\" width=\"1920\" height=\"1066\" \/><figcaption class=\"wp-caption-text\">Powered Up female connector<\/figcaption><\/figure>\n<p>Thanks to <a href=\"https:\/\/www.eurobricks.com\/forum\/index.php?\/forums\/topic\/162288-powered-up-a-tear-down\/\">JopieK<\/a> who opened up is PUP Train Motor for the good of science we already know the names given to each pin by LEGO:<\/p>\n<p style=\"padding-left: 30px;\">1 &#8211; M1<br \/>\n2 &#8211; M2<br \/>\n3 &#8211; GND<br \/>\n4 &#8211; VCC<br \/>\n5 &#8211; ID1<br \/>\n6 &#8211; ID2<\/p>\n<p>These are the names from the Train Motor side, not necessarily from the Hub side (some of us suspect that pin 5 and pin 6 combine Analog Input and UART functions). For this post purpose these names are enough.<\/p>\n<p>So to emulate a PUP Train Motor we just need to short ID1 to VCC and ID2 to GND and use the M1 and M2 pins:<\/p>\n<figure style=\"width: 293px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large\" src=\"https:\/\/lh3.googleusercontent.com\/ktnwR49MwyFOsyL_qII2IkSgsXnd0rk3v6Ux3488mOGtS9Wjlk3na6p4DnJD5GYfiDIfc0J_HPcFvndJK9wOhf73tfjWsIOdQ-IGOpi4F1l6_T0As4EW5zs3XQWdU_jZSKnWwBdOlQ=w1920-h1080\" width=\"293\" height=\"444\" \/><figcaption class=\"wp-caption-text\">Powered Up cable hack &#8211; train<\/figcaption><\/figure>\n<p>So I used a PF2 available cable (don&#8217;t ask) and stripped the insulation off, joined wire 3 to wire 6 and wire 4 to wire 5 and soldered these two junctions:<\/p>\n<figure style=\"width: 810px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large\" src=\"https:\/\/lh3.googleusercontent.com\/pPJfcV_fhccsiIWCG72P5wNzGpQXFEPRSPo0jfnbrwtpUFAHP3yyqyCGcNbdmqksAttKTF5jELeFveBDI2LygXXEfhU7N1kBvIkPeYwDzkTepWxotevvVApC6nRw38fLee8Wk5Np4Q=w1920-h1080\" width=\"810\" height=\"1080\" \/><figcaption class=\"wp-caption-text\">Powered Up cable with Train Motor AutoID<\/figcaption><\/figure>\n<p>Then used heat shrinking tube to isolate these junctions:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large\" src=\"https:\/\/lh3.googleusercontent.com\/p2m33oez0Mu3ms-NVNfyb-yOgok3YfeyHGJ5Sdj75D-45kTnqP0SXqmcQCny5VhC2EcKFh5BwvzS_LvAusVWjrRhR3JKfAyU5FiNwjrn2NsqZoOLGZUyTXdFgQp_pXrZRhKCbaRbrg=w1920-h1080\" width=\"810\" height=\"1080\" \/><\/p>\n<p>The two remaining wires can now be used to control anything we want with a PWM signal of\u00a0 near 9 Volt (from M1 to M2 or M2 to M1, depending on the direction we choose for the &#8220;train motor&#8221;). This is the same signal of Power Functions so if we want to connect a LEGO PF motor we just need to connect these two wires to C1 and C2 of a PF connector.<\/p>\n<p>But I want to use a <a href=\"http:\/\/seuthe-dampf.de\/wp-content\/uploads\/2015\/12\/nr-99.jpg\">Seuthe Nr. 99<\/a> smoke generator for H0 scale trains:<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large\" src=\"https:\/\/i0.wp.com\/seuthe-dampf.de\/wp-content\/uploads\/2015\/11\/Nr.-99-Packungsinhalt.jpg?resize=200%2C200\" width=\"200\" height=\"200\" \/><\/p>\n<p>This little device operates with a voltage between 8 and 14 Volt and consuming around 140 mA. My <a href=\"https:\/\/www.youtube.com\/watch?v=6sJ6to7npjY\">previous experiments with PF<\/a> revealed that I would need more than just 8V so direct attaching it to a PF cable wasn&#8217;t enough, I needed a boost circuit to raise voltage a bit &#8211; I used a small circuit and trimmed it to ~11.2 V.<\/p>\n<p>It worked quite well with my <a href=\"https:\/\/youtu.be\/tQTiLZT_2FE\">PF version of the BR80<\/a> so I just reused the circuit, replacing the PF cable with this PUP cable:<\/p>\n<figure style=\"width: 1440px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large\" src=\"https:\/\/lh3.googleusercontent.com\/X6gUWtMhqVn-rv0mk106GYIOPa8t7WOZh3SIA6PiRskED6uB_SS7diG4qz0297u46wjgf9oI4zz72d9yMs5q-IQ8IGua4TF9xEowq9_bnmi4U51abgkZo0YmXt4VjW16dfi9zvb7cQ=w1920-h1080\" width=\"1440\" height=\"1080\" \/><figcaption class=\"wp-caption-text\">Final cable<\/figcaption><\/figure>\n<p>The circuit is very simple, just a small rectifier bridge and a pre-assembled small boost circuit (<a href=\"https:\/\/www.pololu.com\/product\/799\">Pololu Adjustable Boost Regulator 4-25V, item #799<\/a>):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large\" src=\"https:\/\/lh3.googleusercontent.com\/qsCEGLcoclN8TYvBlRoT7e3zCUK908aw28aplP04xnBJDA7qMWekQ_yQrOXyUMWFAnDs_nt371SXsTw1Bl2pna-_gOKpyuIXG4Z6jPpokKimZX7G2xxsmu_-3ThaCRmm3fph_Tl6YA=w1920-h1080\" width=\"564\" height=\"337\" \/><\/p>\n<p>The rectifier bridge&#8217;s function is to prevent damage to the boost circuit that don&#8217;t work with negative voltages when we reverse the direction of the &#8220;motor train&#8221;.<\/p>\n<p>So how does it work?<\/p>\n<p>Since we are using the same AutoID of the PUP Train Motor, the Hub will notice it as such when we connect this PUP Smoke Engine. So if we use a PUP Handset we just need to press + or &#8211; button a few times until the &#8220;train motor&#8221; receives enough voltage for the boost circuit to work and heats the Seuthe to produce smoke. Same if we use the LEGO App&#8230; unfortunately with my BR80 the App doesn&#8217;t work because the PUP M motor is not accepted as a valid train motor.<\/p>\n<p>So I made my own &#8216;Gatto Negro&#8217; App.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"seriesmeta\">This post is part 2  of 2 of \u00a0<a href=\"https:\/\/ofalcao.pt\/blog\/series\/gatto-negro\" class=\"series-339\" title=\"Gatto Negro\">Gatto Negro<\/a><\/div><p>I will now explain how to connect a smoke engine to the Powered Up Hub &#8211; a method that can be used for several type of electric or electronic devices, not just a smoke generator. First we need to remember the pinout. I show here the female plug on the hub, it&#8217;s easier to see &hellip; <a href=\"https:\/\/ofalcao.pt\/blog\/2018\/the-powered-up-smoke-engine\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;The Powered Up Smoke Engine&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[1],"tags":[],"series":[339],"class_list":["post-1382","post","type-post","status-publish","format-standard","hentry","category-sem-categoria","series-gatto-negro"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2Mhyv-mi","_links":{"self":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/comments?post=1382"}],"version-history":[{"count":0,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/posts\/1382\/revisions"}],"wp:attachment":[{"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/media?parent=1382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/categories?post=1382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/tags?post=1382"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/ofalcao.pt\/blog\/wp-json\/wp\/v2\/series?post=1382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}