{"id":1511,"date":"2019-10-30T21:10:44","date_gmt":"2019-10-30T21:10:44","guid":{"rendered":"http:\/\/tomblog.firstsolo.net\/?p=1511"},"modified":"2023-05-09T15:55:49","modified_gmt":"2023-05-09T15:55:49","slug":"wiring-tricks-for-the-coffee-machine","status":"publish","type":"post","link":"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/","title":{"rendered":"Wiring tricks for the coffee machine"},"content":{"rendered":"<p>When <a href=\"http:\/\/tomblog.firstsolo.net\/index.php\/hobbies\/pimping-my-coffee-machine\/\">modding a coffee machine<\/a>, it is easy to overlook questions around just how to connect up the wiring. The space the wiring occupies can be very hot. Just the air can easily be over 70<span class=\"symbol\">\u00b0C and if the wire touches the boiler itself, that can be well over 100\u00b0C. Some wires also have to carry fairly large currents and mains voltage. The large currents cause extra heating and the large currents and voltages both cause electromagnetic interference.<\/span><\/p>\n<p>Here are some wiring tricks I have learnt over the years.<!--more--><\/p>\n<h1>What kind of wire won&#8217;t melt \/ catch fire?<\/h1>\n<p>The insulation on most wire can&#8217;t handle the temperatures. This is particularly true of mains voltage wires which also often carry high currents &#8211; so they generate their own heat &#8211; and are often physically touching some part of the boiler. I have been using 18AWG silicone insulated wire. This appears to handle the current and heat very well. For logic wires, though, I have got away with any old wire I had handy.<\/p>\n<p>Also be careful to get tinned copper wire. Bare copper oxidises easily, and more so at high temperatures. Unfortunately copper oxide is a conductor, so current flows through it, but it is a poor conductor, so it drops quite a large voltage. Power = voltage x current. That means the copper oxide layer makes an excellent heating element. This, in turn increases the rate at which the copper in the wire oxidises. This continues until something starts burning.<\/p>\n<h1>Connecting mains wires to other things<\/h1>\n<p>You often can&#8217;t get away with soldering wires. The temperatures get too high and the solder melts. And, anyway, soldering wires is fiddly. I have found crimp terminals and screw terminals can work well. A top tip is to use ferrules around the ends of the wires. I bought a box full of them:<\/p>\n<p><a href=\"http:\/\/tomblog.firstsolo.net\/wp-content\/uploads\/2019\/10\/ferrules.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1512\" src=\"http:\/\/tomblog.firstsolo.net\/wp-content\/uploads\/2019\/10\/ferrules.jpg\" alt=\"\" width=\"400\" height=\"355\" \/><\/a>Just slip the smallest ferrule that works over the end of the wire, and insert it into the crimp\/screw space. This makes for a very easy and neat job. I have found sometimes I also have to cut the ferrule shorter. Do this after inserting the wire not before because cutting the ferrule tends to crush it.<\/p>\n<p>For joining wires to other things, like thermal fuses or heating elements, the barrel inside a &#8220;chocolate block&#8221; connector is great. [Edit 9 May 2023: I now prefer crimps for the thermal fuse and there&#8217;s a <a href=\"http:\/\/tomblog.firstsolo.net\/index.php\/gaggia-boiler-terminal-connectors\/\">much better solution for the boiler terminals<\/a>.] The plastic insulator generally cannot handle the temperature, so I use just the barrel and slide a bit of silicone tubing over the completed assembly. Sometimes it helps to cut the screws shorter.<\/p>\n<div id=\"attachment_1514\" style=\"width: 410px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/tomblog.firstsolo.net\/wp-content\/uploads\/2019\/10\/chocblock1.jpg\"><img aria-describedby=\"caption-attachment-1514\" loading=\"lazy\" class=\"wp-image-1514 size-full\" src=\"http:\/\/tomblog.firstsolo.net\/wp-content\/uploads\/2019\/10\/chocblock1.jpg\" alt=\"\" width=\"400\" height=\"363\" \/><\/a><p id=\"caption-attachment-1514\" class=\"wp-caption-text\">That&#8217;s silicone insulated tinned copper wire with ferrules and chocolate block barrels. One with the silicone tubing slid back and one with it in place. If you squint just right, you can also see a thermal fuse on the top of the boiler with the same trick. I give credit for the silicone tubing idea to Gaggia who use this trick for this thermal fuse themselves.<\/p><\/div>\n<p>To remove the barrel, undo the screws all the way, find something to poke inside and push them out and then the barrel slides out easily.<\/p>\n<h1><a href=\"http:\/\/tomblog.firstsolo.net\/wp-content\/uploads\/2019\/10\/chocblock2.jpg\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1513\" src=\"http:\/\/tomblog.firstsolo.net\/wp-content\/uploads\/2019\/10\/chocblock2.jpg\" alt=\"\" width=\"400\" height=\"200\" \/><\/a>Electromagnetic interference<\/h1>\n<p>Whenever possible, run wires as twisted pairs: This applies to logic wires (e.g. a pair of wires to a switch) just as much as mains wires (e.g. a pair of wires to a heater element). For logic wires, it means they are much less susceptible to inductive coupling and for mains wires it means they generate a lot less inductive noise. In early attempts at a PID controller, I found the microcontroller kept rebooting because of voltage spikes picked up through inductive coupling.<\/p>\n<p>Keep mains wires and logic wires away from each other: This isn&#8217;t always possible, but do so as far as you can. This helps reduce capacitive coupling. I bunch the mains and logic wires together into looms with cable ties.<\/p>\n<p>Terminate logic wires with a low impedance path to ground: Basically, this means any wire leading to an analogue or digital input should have a capacitor to ground on the PCB. I have found 10nF works well. DC supply lines like 5V or GND already have a low impedance path to ground, so no need to use caps for them.<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=facebook\" target=\"_blank\" title=\"Share on Facebook\" id=\"sharing-facebook-1511\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" id=\"sharing-twitter-1511\"><span>Twitter<\/span><\/a><\/li><li class=\"share-google-plus-1\"><a rel=\"nofollow\" class=\"share-google-plus-1 sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=google-plus-1\" target=\"_blank\" title=\"Click to share on Google+\" id=\"sharing-google-1511\"><span>Google<\/span><\/a><\/li><li class=\"share-reddit\"><a rel=\"nofollow\" class=\"share-reddit sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=reddit\" target=\"_blank\" title=\"Click to share on Reddit\"><span>Reddit<\/span><\/a><\/li><li class=\"share-pocket\"><a rel=\"nofollow\" class=\"share-pocket sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=pocket\" target=\"_blank\" title=\"Click to share on Pocket\"><span>Pocket<\/span><\/a><\/li><li><a href=\"#\" class=\"sharing-anchor sd-button share-more\"><span>More<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><div class=\"sharing-hidden\"><div class=\"inner\" style=\"display: none;\"><ul><li class=\"share-tumblr\"><a rel=\"nofollow\" class=\"share-tumblr sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=tumblr\" target=\"_blank\" title=\"Click to share on Tumblr\"><span>Tumblr<\/span><\/a><\/li><li class=\"share-stumbleupon\"><a rel=\"nofollow\" class=\"share-stumbleupon sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=stumbleupon\" target=\"_blank\" title=\"Click to share on StumbleUpon\"><span>StumbleUpon<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-pinterest\"><a rel=\"nofollow\" class=\"share-pinterest sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=pinterest\" target=\"_blank\" title=\"Click to share on Pinterest\"><span>Pinterest<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>When modding a coffee machine, it is easy to overlook questions around just how to connect up the wiring. The space the wiring occupies can be very hot. Just the air can easily be over 70\u00b0C and if the wire &hellip; <a href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-facebook\"><a rel=\"nofollow\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=facebook\" target=\"_blank\" title=\"Share on Facebook\" id=\"sharing-facebook-1511\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" id=\"sharing-twitter-1511\"><span>Twitter<\/span><\/a><\/li><li class=\"share-google-plus-1\"><a rel=\"nofollow\" class=\"share-google-plus-1 sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=google-plus-1\" target=\"_blank\" title=\"Click to share on Google+\" id=\"sharing-google-1511\"><span>Google<\/span><\/a><\/li><li class=\"share-reddit\"><a rel=\"nofollow\" class=\"share-reddit sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=reddit\" target=\"_blank\" title=\"Click to share on Reddit\"><span>Reddit<\/span><\/a><\/li><li class=\"share-pocket\"><a rel=\"nofollow\" class=\"share-pocket sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=pocket\" target=\"_blank\" title=\"Click to share on Pocket\"><span>Pocket<\/span><\/a><\/li><li><a href=\"#\" class=\"sharing-anchor sd-button share-more\"><span>More<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><div class=\"sharing-hidden\"><div class=\"inner\" style=\"display: none;\"><ul><li class=\"share-tumblr\"><a rel=\"nofollow\" class=\"share-tumblr sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=tumblr\" target=\"_blank\" title=\"Click to share on Tumblr\"><span>Tumblr<\/span><\/a><\/li><li class=\"share-stumbleupon\"><a rel=\"nofollow\" class=\"share-stumbleupon sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=stumbleupon\" target=\"_blank\" title=\"Click to share on StumbleUpon\"><span>StumbleUpon<\/span><\/a><\/li><li class=\"share-end\"><\/li><li class=\"share-pinterest\"><a rel=\"nofollow\" class=\"share-pinterest sd-button share-icon\" href=\"http:\/\/tomblog.firstsolo.net\/index.php\/wiring-tricks-for-the-coffee-machine\/?share=pinterest\" target=\"_blank\" title=\"Click to share on Pinterest\"><span>Pinterest<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/posts\/1511"}],"collection":[{"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/comments?post=1511"}],"version-history":[{"count":7,"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/posts\/1511\/revisions"}],"predecessor-version":[{"id":1871,"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/posts\/1511\/revisions\/1871"}],"wp:attachment":[{"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/media?parent=1511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/categories?post=1511"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tomblog.firstsolo.net\/index.php\/wp-json\/wp\/v2\/tags?post=1511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}