Swaping thermistor channel when using DueX4 November 26, 2014 06:13AM |
Registered: 10 years ago Posts: 780 |
Quote
dc42
One solution that occurred to me just now is to connect the second hot end thermistor to the heated bed thermistor pins on the Duet, and the heated bed thermistor to the DueX4 board hot end thermistor pins. Then add support in the firmware for a configuration gcode to deal with this change. The heated bed thermistor reading is less critical and less affected by noise because of its lower value. I think I'll add this configuration option in my next firmware release.
Quote
appjaws1
This sounds really good, I don't know why I didn't think of it.
I think this will solve the problem and report accurate temperatures for the second nozzle, I won't need to modify my boards
Looking forward to your next release, will it include all of zpl's changes? especially the external fan control and the pause and resume action.
Quote
dc42
On the Ormerod 1, the wiring will be a little tricky because the thermistor uses the 2 middle wires of the ribbon cable. So you will need to cut just those 2 conductors at the Duet end of the cable, peel them back a bit, and connect them to a 2-pin header connector to plug in to the DueX4. The conductors are quite thin, so you might want to use some silicone rubber or similar as a strain relief. Make sure you use the correct 2 conductors, otherwise you will end up connecting 12V to the thermistor input via the thermistor! Alternatively, run a separate cable from the bed thermistor to the DueX4. Connecting the second hot end to the bed thermistor input can be done using the separate BED_TEMP pins provided on the Duet (you will need to solder a couple of header pins or a terminal block to those pads on the Duet).
For describing the change to the firmware, I think the M305 code could have an option to specify the thermistor channel. All the obvious parameter letters are already used in the M305 command, but X Y Z and J are free. So perhaps M305 P0 X2 would tell the Duet that heater 0 uses thermistor channel 2, and M305 P2 X0 would tell it the converse for the second hot end.
If I do you a special temporary firmware release that swaps the channels, would you like to test this out? I'd like to know whether the noise on the bed temperature is acceptable before I make the changes to M305. My firmware already has cooling fan support. What it doesn't have yet is the code queue for synchronizing fan speed change commands with movements in the queue, or the instant pause facility where moves already in the queue are paused as well as new moves. This is partly because I need to keep the Move code simple pending my next round of changes to it, and partly because the instant pause facility could result in missed steps if it isn't carefully timed. I have already included zpl's pause/resume macro files and networking changes.
Re: Swaping thermistor channel when using DueX4 November 26, 2014 09:37AM |
Registered: 10 years ago Posts: 14,672 |
Re: Swaping thermistor channel when using DueX4 November 26, 2014 10:43AM |
Registered: 10 years ago Posts: 14,672 |
Re: Swaping thermistor channel when using DueX4 November 27, 2014 08:28AM |
Registered: 10 years ago Posts: 780 |
Re: Swaping thermistor channel when using DueX4 November 27, 2014 09:37AM |
Registered: 10 years ago Posts: 14,672 |
Re: Swaping thermistor channel when using DueX4 November 27, 2014 10:27AM |
Registered: 10 years ago Posts: 780 |
Quote
dc42
By how much is the head 2 temperature overshooting? If it is a large amount, this may indicate that you need to reduce the M301 S parameter for that heater. I had to reduce S on my #1 nozzle to 0.9. The heater cartridges form RRP seem to vary somewhat, the new ones I bought from them are more powerful than the original one that came with the kit.
Quote
dc42
Are you using a 4-wire PWM fan, and if so, how do you have it connected? The tacho output on a 3-wire fan won't work properly if you PWM the ground wire, which is what the Duet does. Also, if you connect a 3-wire fan to the Fan output on the Duey and then connect the tacho output to the Duet, you may end up damaging the Duet, because 12V may get fed through the tacho output when the fan mosfet is off.
Quote
dc42
Heating a nozzle from standby (150C) to active (185C) on my system takes only 35 seconds to get within the allowed 2C of target temperature. I don't wait for the active nozzle to cool right down to standby temperature in my tool change files. Do you really thing a 2C temperature error would make that much difference to print quality?
Re: Swaping thermistor channel when using DueX4 November 27, 2014 10:50AM |
Registered: 10 years ago Posts: 14,672 |
Quote
appjaws1
Yes I am using two 4 wire fans, connected to the normal fan output which is working well and gives me a wide range, 20% to 100%. The yellow wire I have connected to the dueX4 as suggested by zpl and when running the fan can be at a constant speed but the Fan RPM on the web interface fluctuates constantly so you never know what the speed is.
Re: Swaping thermistor channel when using DueX4 November 27, 2014 11:18AM |
Registered: 10 years ago Posts: 780 |
Quote
dc42
That's not the right way to connect a 4-wire fan. The fan red and black wires should be connected to +12V and ground (you can use the Fan+ output for the +12V if you wish). The fan PWM inputs should be connected to the anode of a small signal diode e.g. 1N4148, and the cathode of that diode should be connected to the Fan- output. You will need to use the M106 option to invert the PWM. There is another way to connect the fan RPM inputs using an NPN transistor and resistor instead, which avoids the need to invert the PWM..
Quote
dc42
I presume you have just one of the yellow wires connected to the Duet ran RPM input pin?
Re: Swaping thermistor channel when using DueX4 November 27, 2014 06:03PM |
Registered: 10 years ago Posts: 14,672 |
Quote
appjaws1
When you have time could you give me detailed instructions on an alternative way to connect the yellow wire so that the web interface will display a steady reading