{"id":240,"date":"2020-09-29T15:16:01","date_gmt":"2020-09-29T15:16:01","guid":{"rendered":"http:\/\/www.beer.org\/blog\/?p=240"},"modified":"2020-09-29T18:19:01","modified_gmt":"2020-09-29T18:19:01","slug":"3d-printer-upgrade-klipper-thermistors-and-power-supplies","status":"publish","type":"post","link":"https:\/\/www.beer.org\/blog\/index.php\/2020\/09\/29\/3d-printer-upgrade-klipper-thermistors-and-power-supplies\/","title":{"rendered":"3D printer upgrade, Klipper, thermistors, and power supplies."},"content":{"rendered":"<h1>Boring preamble<\/h1>\n<p>It took forever for my 3D printer to reach temperate and then the bed heater just stopped working. Not sure what happened.\u00a0 So friend Derwyn gave me a spare Prusa magnetic heated bed.\u00a0 This was a terrific gift!<\/p>\n<p>Bad: it&#8217;s 24v and the rest of my printer is 12v.<\/p>\n<p>Good: I had a 24v 60A DC power supply!<\/p>\n<p>Good: I had a Creality CR10s v2 controller that has both 12v and 24vdc inputs.<\/p>\n<p>Bad: my extruder heater was 12v, fans were 12v, etc.\u00a0 I don&#8217;t have a spring steel sheet.<\/p>\n<p>Good: those items are cheap on Amazon.<\/p>\n<p>Anyway, to make along preamble shorter, I changed everything all at once except some acrylic and some bolts.\u00a0 \u00a0I also decided <a href=\"https:\/\/www.klipper3d.org\/\">Klipper<\/a> was worth a try because Marlin is a disgusting mess of nearly incomprehensible twisty #ifdef&#8217;s and my printer was a mashup of several different printers.\u00a0 Let me tell you, Klipper is a breath of fresh air and worthy of a different blog post.<\/p>\n<h2>Meat of this article<\/h2>\n<p>I was having trouble getting the PID on the extruder to settle on a temperature.\u00a0 \u00a0Especially the high temperatures (230+):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-241\" src=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-23-at-4.50.17-PM.png\" alt=\"PID can't settle this down\" width=\"596\" height=\"352\" srcset=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-23-at-4.50.17-PM.png 596w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-23-at-4.50.17-PM-300x177.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>It took forever for prints to start because Klipper could not get the printer to the proper temperature.<\/p>\n<p>I accidentally stumbled upon this <a href=\"https:\/\/hackaday.com\/2018\/03\/03\/creality-cr10-s-upgrade-shows-the-effect-of-bad-power\/\">Hackaday<\/a> post which is a link to <a href=\"https:\/\/www.jozerworx.com\/creality-cr-10s-c4-capacitor-diy-fix-tutorial\/\">this<\/a> fellow who helpfully outlines the process to change a capacitor to better <a href=\"https:\/\/www.th3dstudio.com\/2018\/01\/26\/cr-10s-v2-0-board-temperature-issues\/\">filter power on the CR10s v2.0 board<\/a> that I have.\u00a0 Could that be the problem?<\/p>\n<p>So first I decided to check the current state of things.<\/p>\n<div id=\"attachment_243\" style=\"width: 675px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-243\" class=\"wp-image-243 size-large\" src=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_084932-1024x768.jpg\" alt=\"\" width=\"665\" height=\"499\" srcset=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_084932-1024x768.jpg 1024w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_084932-300x225.jpg 300w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_084932-768x576.jpg 768w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_084932-1536x1152.jpg 1536w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_084932-660x495.jpg 660w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_084932.jpg 2000w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><p id=\"caption-attachment-243\" class=\"wp-caption-text\">Power with Extruder running.<\/p><\/div>\n<div id=\"attachment_242\" style=\"width: 675px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-242\" class=\"wp-image-242 size-large\" src=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_085008-1024x768.jpg\" alt=\"\" width=\"665\" height=\"499\" srcset=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_085008-1024x768.jpg 1024w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_085008-300x225.jpg 300w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_085008-768x576.jpg 768w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_085008-1536x1152.jpg 1536w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_085008-660x495.jpg 660w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/IMG_20200929_085008.jpg 2000w\" sizes=\"auto, (max-width: 665px) 100vw, 665px\" \/><p id=\"caption-attachment-242\" class=\"wp-caption-text\">Power with Extruder and Bed heater running<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>Here&#8217;s the best part.\u00a0 Normally, Octoprint turns on the bed heater first, and when that comes up to temperature, it turns on the extruder heater.\u00a0 However, I turned on the extruder first and set it to 260C.\u00a0 Then I turned on the bed heater.\u00a0 The two photos above show that.\u00a0 Here&#8217;s what happened on Octoprint:<\/p>\n<div id=\"attachment_244\" style=\"width: 646px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-244\" class=\"size-full wp-image-244\" src=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-29-at-8.54.59-AM.png\" alt=\"\" width=\"636\" height=\"603\" srcset=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-29-at-8.54.59-AM.png 636w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-29-at-8.54.59-AM-300x284.png 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><p id=\"caption-attachment-244\" class=\"wp-caption-text\">Note how Klipper was able to use PID to get the temperature under control until I turned on the bed heater<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>Look how the poor power filtering was affecting the ADC measurements for the Extruder heater?\u00a0 The NTC 100k (B3950) thermistors only read 380ohms (approx) at 240C.\u00a0 That means a difference of only a few ohms at high temperatures has a big affect on temperature.\u00a0 So voltage swings will dramatically affect ADC measurements, causing havoc with PID!<\/p>\n<p>I didn&#8217;t feel like waiting for Digikey and paying the shipping so I used a 220uf electrolytic capacitor instead.\u00a0 Ugly as fuck but much better.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-247\" src=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-29-at-11.37.21-AM.png\" alt=\"\" width=\"623\" height=\"568\" srcset=\"https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-29-at-11.37.21-AM.png 623w, https:\/\/www.beer.org\/blog\/wp-content\/uploads\/2020\/09\/Screen-Shot-2020-09-29-at-11.37.21-AM-300x274.png 300w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Boring preamble It took forever for my 3D printer to reach temperate and then the bed heater just stopped working. Not sure what happened.\u00a0 So friend Derwyn gave me a spare Prusa magnetic heated bed.\u00a0 This was a terrific gift! Bad: it&#8217;s 24v and the rest of my printer is 12v. Good: I had a&#8230; <a class=\"moretag\" href=\"https:\/\/www.beer.org\/blog\/index.php\/2020\/09\/29\/3d-printer-upgrade-klipper-thermistors-and-power-supplies\/\">Continue reading &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":[7],"tags":[],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-tech-stuff"],"_links":{"self":[{"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=240"}],"version-history":[{"count":3,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":248,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/240\/revisions\/248"}],"wp:attachment":[{"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.beer.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}