<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[SoliForum - 3D Printing Community — Help with heater constantly heating up to no end...]]></title>
	<link rel="self" href="https://www.soliforum.com/feed/atom/topic/18014/" />
	<updated>2019-04-05T19:37:13Z</updated>
	<generator>PunBB</generator>
	<id>https://www.soliforum.com/topic/18014/help-with-heater-constantly-heating-up-to-no-end/</id>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150077/#p150077" />
			<content type="html"><![CDATA[<p>Here is the setup and code in case some else runs into the same issue. <br /><span class="postimg"><img src="http://soliforum.com/i/?bNoqh1p.jpg" alt="http://soliforum.com/i/?bNoqh1p.jpg" /></span> <br /><span class="postimg"><img src="http://soliforum.com/i/?rADGWZt.jpg" alt="http://soliforum.com/i/?rADGWZt.jpg" /></span></p><p>Arduino Uno Code:<br />#include &lt;PID_v1.h&gt;<br />// Analog output pin<br />#define outputPin 9<br />// thermistor analog pin<br />#define THERMISTORPIN A0<br />// how many samples to take and average<br />#define NUMSAMPLES 7<br />// how long between pid/sampling<br />#define SAMPLETIME 1000<br />//Define Variables we&#039;ll be connecting to<br />double Setpoint, currentTemp, Output;<br />//Specify the links and initial tuning parameters<br />PID myPID(&amp;currentTemp, &amp;Output, &amp;Setpoint,9.06,0.66,31, DIRECT);<br />void setup() {<br />&nbsp; Serial.begin(9600);<br />&nbsp; analogReference(EXTERNAL);<br />&nbsp; pinMode(outputPin, OUTPUT);<br />&nbsp; //initialize PID setpoint *C<br />&nbsp; Setpoint = 100; //This is the target temp you need. I have it set for 100C <br />&nbsp; //turn the PID on<br />&nbsp; myPID.SetMode(AUTOMATIC);<br />&nbsp; myPID.SetSampleTime(SAMPLETIME);<br />&nbsp; //pid Autotuner<br />}<br />void loop() {<br />&nbsp; if (Serial.available() &gt; 0) {<br />&nbsp; &nbsp; // get incoming byte:<br />&nbsp; &nbsp; Setpoint = Serial.parseFloat();<br />&nbsp; }<br />&nbsp; uint8_t i;<br />&nbsp; double average = 0;<br />&nbsp; // take N samples in a row, with a slight delay<br />&nbsp; for (i = 0; i &lt; NUMSAMPLES; i++) {<br />&nbsp; &nbsp; average += analogRead(THERMISTORPIN);<br />&nbsp; &nbsp; delay(10);<br />&nbsp; }<br />&nbsp; average /= NUMSAMPLES;<br />&nbsp; currentTemp=resistanceToC(inputToResistance(average));<br />&nbsp; myPID.Compute();<br />&nbsp; analogWrite(outputPin, Output);</p><p>&nbsp; Serial.print(&quot;Set Point: &quot;);<br />&nbsp; Serial.print(Setpoint);<br />&nbsp; Serial.println(&quot; *C)&quot;);<br />&nbsp; Serial.print(&quot;Temperature: &quot;);<br />&nbsp; Serial.print(currentTemp);<br />&nbsp; Serial.println(&quot; *C)&quot;);<br />&nbsp; Serial.print(&quot;PID output &quot;);<br />&nbsp; Serial.println(Output);<br />&nbsp; delay(SAMPLETIME);<br />}<br />double inputToResistance(double input) {<br />&nbsp; // funtion to convert the input value to resistance<br />&nbsp; // the value of the &#039;other&#039; resistor<br />&nbsp; double SERIESRESISTOR = 10000;<br />&nbsp; input = 1023 / input - 1;<br />&nbsp; return SERIESRESISTOR / input;<br />}<br />double resistanceToC(double resistance) {<br />&nbsp; // funtion to convert resistance to c<br />&nbsp; // temp/resistance for nominal<br />&nbsp; double THERMISTORNOMINAL = 118000;<br />&nbsp; double TEMPERATURENOMINAL = 25;<br />&nbsp; // beta coefficent<br />&nbsp; double BCOEFFICIENT = 3950;<br />&nbsp; double steinhart;<br />&nbsp; steinhart = resistance / THERMISTORNOMINAL;&nbsp; &nbsp; &nbsp;// (R/Ro)<br />&nbsp; steinhart = log(steinhart);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // ln(R/Ro)<br />&nbsp; steinhart /= BCOEFFICIENT;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// 1/B * ln(R/Ro)<br />&nbsp; steinhart += 1.0 / (TEMPERATURENOMINAL + 273.15); // + (1/To)<br />&nbsp; steinhart = 1.0 / steinhart;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Invert<br />&nbsp; steinhart -= 273.15;&nbsp; &nbsp;// convert to C<br />&nbsp; return steinhart;<br />}</p>]]></content>
			<author>
				<name><![CDATA[vela0050]]></name>
				<uri>https://www.soliforum.com/user/21518/</uri>
			</author>
			<updated>2019-04-05T19:37:13Z</updated>
			<id>https://www.soliforum.com/post/150077/#p150077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150062/#p150062" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>vela0050 wrote:</cite><blockquote><p>I made it work!</p><p>I am using the Arduino with PID code to control a stable temperature I got it +/-2C which is way then before. Here is a tutorial I followed:<br /><a href="http://randomdamon.blogspot.com/2015/12/diy-hot-end-arduino-pid-control.html">http://randomdamon.blogspot.com/2015/12 … ntrol.html</a></p><p>This guys PID values are OK, but it just overshoots slightly and crawls too slow to reach final temp. </p><p>Does anybody know how to get the original PID values from repetier?</p></blockquote></div><p>There are no original values. They are different for every machine as every heater and thermistor combination will require different values. The base values simply get you in the ball park and can be found on any image of Repetier firmware from their download site.</p>]]></content>
			<author>
				<name><![CDATA[carl_m1968]]></name>
				<uri>https://www.soliforum.com/user/7731/</uri>
			</author>
			<updated>2019-04-05T11:51:03Z</updated>
			<id>https://www.soliforum.com/post/150062/#p150062</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150051/#p150051" />
			<content type="html"><![CDATA[<p>I made it work!</p><p>I am using the Arduino with PID code to control a stable temperature I got it +/-2C which is way then before. Here is a tutorial I followed:<br /><a href="http://randomdamon.blogspot.com/2015/12/diy-hot-end-arduino-pid-control.html">http://randomdamon.blogspot.com/2015/12 … ntrol.html</a></p><p>This guys PID values are OK, but it just overshoots slightly and crawls too slow to reach final temp. </p><p>Does anybody know how to get the original PID values from repetier?</p>]]></content>
			<author>
				<name><![CDATA[vela0050]]></name>
				<uri>https://www.soliforum.com/user/21518/</uri>
			</author>
			<updated>2019-04-05T04:11:17Z</updated>
			<id>https://www.soliforum.com/post/150051/#p150051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150029/#p150029" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>carl_m1968 wrote:</cite><blockquote><div class="quotebox"><cite>n2ri wrote:</cite><blockquote><p>remember when testing modern electronics (Transistor era lol) dont use Simmons Meters or others like LED displays&nbsp; that have 9v battery as that can burn out components.</p></blockquote></div><p>No offense, but what rock have you been hiding under? All modern DMM&#039;s are 9 volt powered. </p><p>I am a tech by trade specializing in Rectifiers for the telecom/wireless industry.. I repair rectifiers that take 240AC Single phase or 480 AC 3 phase and covert it down to -48 or -24 VDC at 20 to 200 amps. We only use Fluke 115 DMM&#039;s and those all use 9 volt batteries and we always test MOSFETS and other semiconductors with Resistance and Diode check functions and have never had a part damaged by a meter.</p></blockquote></div><p><img src="https://www.soliforum.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[wardjr]]></name>
				<uri>https://www.soliforum.com/user/2291/</uri>
			</author>
			<updated>2019-04-03T21:15:03Z</updated>
			<id>https://www.soliforum.com/post/150029/#p150029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150028/#p150028" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>n2ri wrote:</cite><blockquote><p>remember when testing modern electronics (Transistor era lol) dont use Simmons Meters or others like LED displays&nbsp; that have 9v battery as that can burn out components.</p></blockquote></div><p>No offense, but what rock have you been hiding under? All modern DMM&#039;s are 9 volt powered. </p><p>I am a tech by trade specializing in Rectifiers for the telecom/wireless industry.. I repair rectifiers that take 240AC Single phase or 480 AC 3 phase and covert it down to -48 or -24 VDC at 20 to 200 amps. We only use Fluke 115 DMM&#039;s and those all use 9 volt batteries and we always test MOSFETS and other semiconductors with Resistance and Diode check functions and have never had a part damaged by a meter.</p>]]></content>
			<author>
				<name><![CDATA[carl_m1968]]></name>
				<uri>https://www.soliforum.com/user/7731/</uri>
			</author>
			<updated>2019-04-03T20:54:28Z</updated>
			<id>https://www.soliforum.com/post/150028/#p150028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150024/#p150024" />
			<content type="html"><![CDATA[<p>remember when testing modern electronics (Transistor era lol) dont use Simmons Meters or others like LED displays&nbsp; that have 9v battery as that can burn out components.</p>]]></content>
			<author>
				<name><![CDATA[n2ri]]></name>
				<uri>https://www.soliforum.com/user/795/</uri>
			</author>
			<updated>2019-04-03T20:03:50Z</updated>
			<id>https://www.soliforum.com/post/150024/#p150024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150019/#p150019" />
			<content type="html"><![CDATA[<p>Yeah I think I am going over to the Arduino Forum and ask them how to program the PID. Last night I got really close to getting the temp stabilized. If that does not work, I am just going to buy the MOSFET and attempt to solder it in myself. And if that fails I will get a new board. It might be time to get a new 2019 3d Printer if I can afford it. LOL. Thank you, everybody.</p>]]></content>
			<author>
				<name><![CDATA[vela0050]]></name>
				<uri>https://www.soliforum.com/user/21518/</uri>
			</author>
			<updated>2019-04-03T10:49:29Z</updated>
			<id>https://www.soliforum.com/post/150019/#p150019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150018/#p150018" />
			<content type="html"><![CDATA[<p>I know little about the davincici. the marlin OS firmware has two heating modes . PWM and bing bang aka on and off. </p><p>You do also have to have the correct themirisistors set as different&nbsp; sensor have different temp curve. and then one need to tune the PID loop.</p>]]></content>
			<author>
				<name><![CDATA[Tin Falcon]]></name>
				<uri>https://www.soliforum.com/user/6775/</uri>
			</author>
			<updated>2019-04-03T09:05:44Z</updated>
			<id>https://www.soliforum.com/post/150018/#p150018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150016/#p150016" />
			<content type="html"><![CDATA[<p>So I set this thing up. Used my Arduino Uno and a relay with a thermister on the Arduino to control the temp. Yup that did not work.<br />It heats up too fast and then has to cool down. The result is a +/-10C swinging nozzle temp. Way too much. I don&#039;t know how but 3d printers must have a gradual heating thing going on. It&#039;s not full 12v ON and then 0V for off. <span class="postimg"><img src="http://soliforum.com/i/?yV6Djf4.jpg" alt="http://soliforum.com/i/?yV6Djf4.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[vela0050]]></name>
				<uri>https://www.soliforum.com/user/21518/</uri>
			</author>
			<updated>2019-04-03T06:00:08Z</updated>
			<id>https://www.soliforum.com/post/150016/#p150016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150011/#p150011" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>vela0050 wrote:</cite><blockquote><p>I just want to be sure we are talking about the same source. the image below shows where I always get 12v. The other connections marked with x in the picture are always hot. The 12v that I have disconnected in the image, goes straight to the heating element and it is always hot.</p></blockquote></div><p>Yes, that 12V you point to is always hot, as the heater is GROUND switched.&nbsp; The misconception is that the printer turns 12v on and off, it does not.&nbsp; As part of your troubleshooting, you should test for a ground short at the heating element first before replacing parts on your board (or getting a new board).&nbsp; Note that on a stock extruder, the heating block is grounded, and ground will take any path including through the heater block to turn on the heating element.&nbsp; Isolate the heating element and test for proper operation, then replace parts on your board if needed.</p>]]></content>
			<author>
				<name><![CDATA[ppl117]]></name>
				<uri>https://www.soliforum.com/user/10774/</uri>
			</author>
			<updated>2019-04-02T17:44:57Z</updated>
			<id>https://www.soliforum.com/post/150011/#p150011</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150007/#p150007" />
			<content type="html"><![CDATA[<p>There is always power to the heaters. To control it they switch ground off and on using the MOSFET I referenced. That being said this MOSFET is shorted so ground is always applied.</p>]]></content>
			<author>
				<name><![CDATA[carl_m1968]]></name>
				<uri>https://www.soliforum.com/user/7731/</uri>
			</author>
			<updated>2019-04-02T10:18:08Z</updated>
			<id>https://www.soliforum.com/post/150007/#p150007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150006/#p150006" />
			<content type="html"><![CDATA[<p>I am going pretty crazy without my printer. It&#039;s been 4 days now that I haven&#039;t printed anything. I think I am going to start a gofundme to get the $85. Wow, being a millennial is just so great...either you have no money but have health insurance or have money but no health insurance. 4 days ago I would have never thought I would be begging the internet for a new Da Vinci 1.0 board to buy from ebay. Thank you all as always.</p>]]></content>
			<author>
				<name><![CDATA[vela0050]]></name>
				<uri>https://www.soliforum.com/user/21518/</uri>
			</author>
			<updated>2019-04-02T08:05:14Z</updated>
			<id>https://www.soliforum.com/post/150006/#p150006</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150005/#p150005" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>FYI, on my 1.0A, the 12v to extruder heater IS always on.</p></blockquote></div><p>I just want to be sure we are talking about the same source. the image below shows where I always get 12v. The other connections marked with x in the picture are always hot. The 12v that I have disconnected in the image, goes straight to the heating element and it is always hot. <span class="postimg"><img src="http://soliforum.com/i/?To8ymMG.jpg" alt="http://soliforum.com/i/?To8ymMG.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[vela0050]]></name>
				<uri>https://www.soliforum.com/user/21518/</uri>
			</author>
			<updated>2019-04-02T06:38:03Z</updated>
			<id>https://www.soliforum.com/post/150005/#p150005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150004/#p150004" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>vela0050 wrote:</cite><blockquote><p>It feels like the 12V supply is stuck open and keeps supplying 12 v as soon as the printer turns on. If I removed the bridge solder that I put across the broken fuse then I get no voltage at all wheater I ask the printer to heat up or not.</p></blockquote></div><p>FYI, on my 1.0A, the 12v to extruder heater IS always on.&nbsp; On these printers, the heater and the fans, are ground switched so the power lines are always hot.&nbsp; I tap that line at the extruder connector to run 12v fans with the normal fan grounds, so they can be controlled via gcode.&nbsp; You should be looking at the ground line to the heater, which should have no connection until the heater it turned on.&nbsp; So you might want to test that to make sure that something else isn&#039;t causing the heater to always be grounded.</p>]]></content>
			<author>
				<name><![CDATA[ppl117]]></name>
				<uri>https://www.soliforum.com/user/10774/</uri>
			</author>
			<updated>2019-04-02T04:54:38Z</updated>
			<id>https://www.soliforum.com/post/150004/#p150004</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Help with heater constantly heating up to no end...]]></title>
			<link rel="alternate" href="https://www.soliforum.com/post/150001/#p150001" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>carl_m1968 wrote:</cite><blockquote><p>In your images, Q1 is the part I circled and listed. That is most likely the problem with your board.</p></blockquote></div><p>Ok, I will see if there is a electronics shop around my town and see if they can repair it cheaply. Meanwhile I will see if I can test it with a multimeter and see if I can learn anything. </p><p>I know its a long shot, but if anyone can afford and is willing to buy the board off ebay for me and ship to me I&#039;d be willing to send you a package of things as a Thank you once I get my financials straighten out. I can&#039;t afford $80 for a board. Here is the link:<br /><a href="https://www.ebay.com/itm/XYZ-printing-Da-Vinci-Main-Board/264256678636">https://www.ebay.com/itm/XYZ-printing-D … 4256678636</a></p><p>Thank you all fro helping. I will keep you posted with updates.</p>]]></content>
			<author>
				<name><![CDATA[vela0050]]></name>
				<uri>https://www.soliforum.com/user/21518/</uri>
			</author>
			<updated>2019-04-01T19:14:45Z</updated>
			<id>https://www.soliforum.com/post/150001/#p150001</id>
		</entry>
</feed>
