Temp Sensor Madness
-
@aidar Agreed. This line was an artifact from my thermocouple tests, and I should have dropped it. I am going to head back to the machine this evening and do some more investigating re: the resistance across my cables and noise reduction. Thanks @Dougal1957 and @Wyvern as well for the info.
-
I would check your solder joints where you are tying your pair to a single lead. I would also use a DMM in continuity mode to test that wiring to make sure you didn’t cross a pair somewhere. On the PT100 board make sure jumpers are removed to make it a 4 wire measurement, and then check you config file to make sure you are telling it to use the PT100 board and not the thermistor pins. 4 wire should be fine for that length as the idea is the extra impedance from that long run should be cancelled out. That said there may still be a practical limit. I stress MAY.
-
Also forgive me for assuming you don’t know this but I figured I would mention it. Make sure each lead of the pair is plugged into the same same side of the pt100 boards not mixed. I had an issue with my pt100 and I had cross leads and clearly that didn’t work right.
-
@bpislife These are good points to check. I will investigate when I am back at the machine. I used conventional cat5e cable because of the colored pairs and the shielding to help me keep things correctly wired. I did remove the jumpers when I did the 4wire, per the documentation. I am not giving up hope just yet. Thank you.
-
I made some more tests. Replaced the CAT5 with some 22gauge shielded cable with stranded vs solid conductors. Resistance of my cable with my multimeter seems to be 7-8 Ohms on each individual conductor. I have the 2-wire PT100 wired up in 4-wire configuration with the jumpers removed on the daughterboard. I still get a solid 2000C temperature, even with the included resistor instead of the sensor. If I shorten the cable, the sensor reads correctly.
I am unable to shorten the cable enough to make a difference with my machine geometry.
Is there a way to introduce a cable length compensation for temperature sensors?
Other ideas? -
Cable length shouldn't be an issue with a PT100, but interference pickup may be. It's probably possible to add one or more capacitors to help suppress it, but I haven't tried yet. A 100nF capacitor between the two inner terminals of the 4-way terminal block might be a good start.
-
The cap(s) didn't help. We are going to try getting a scope on the cable this weekend and see what is happening.
-
UPDATE: No chance to apply a 'scope to look at the signals, so I am using lower-tech methods. I have reverted back to the thermocouple daughterboard and my previous sensors. I was able to get a good solid temperature reading from the Duet, but only if I disabled all my external stepper drivers by disconnecting their power. As soon as I connected power to even one driver, the temperature returns to 2000C, and the fault LED on the daughter board flashes about once per 1-2 seconds.
I will continue to seek the interference source(s) that are preventing me from running and will let you know the results. -
I failed to mention the basics:
Firmware Version: 2.02(RTOS) (2018-12-24b1)
Web Interface Version: 1.22.6
This is an IDEX sort of mechanism with 2 independent X drives on a moving Y gantry.
There are external stepper drivers Wantai DQM542 and the motors are big Nema23's with part number 23HS45-4204S.
I replaced the Arduino/ramps hardware with the Duet board, and replaced the overstuffed direct-wired electronics cabinet with a larger industrial enclosure. -
@billwhit said in Temp Sensor Madness:
UPDATE: No chance to apply a 'scope to look at the signals, so I am using lower-tech methods. I have reverted back to the thermocouple daughterboard and my previous sensors. I was able to get a good solid temperature reading from the Duet, but only if I disabled all my external stepper drivers by disconnecting their power. As soon as I connected power to even one driver, the temperature returns to 2000C, and the fault LED on the daughter board flashes about once per 1-2 seconds.
I will continue to seek the interference source(s) that are preventing me from running and will let you know the results.Thermocouples produce a very small signal (about 40 microvolts per degC) so they pick up inductive interference very easily. Stepper motor cables carry pulsed currents, so they generate inductive interference. So here are some things to check and try:
-
Check with a multimeter that there is no connection between the thermocouple wires and the metalwork of the hot end that it is fitted into.
-
The thermocouple wires must be twisted pair thermocouple wires of the correct type for the thermocouple, all the way from the thermocouple back to the daughter board.
-
Keep the thermocouple wires away from the stepper motor wires.
-
To reduce the amount of interference generated by the stepper motor wires, use 2-pair twisted pair cable for each stepper motor, one pair for each phase.
-
If you are using the older version of our thermocouple board (the one where you use X100 in the M305 command, not X150), add the capacitors as described on the wiki. The later version (X150 in the M305 command) has additional filtering built-in.
-
Grounding the hot end metal work that the thermocouple is fitted into might help.
-
-
Things are working.
I added ferrite cores on the motor output lines of the external stepper drivers, to help reduce the noise. I made sure all the cable shields, power supplies, and drivers are on the same ground. And finally I wrapped the TC in a layer of kapton tape to make sure it wasn't grounding against the nozzle housing.