MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.24k stars 19.22k forks source link

E3D PT100 #5543

Closed bsculley closed 6 years ago

bsculley commented 7 years ago

I am attempting to interface PT100 with mini-Rambo. As you know there are no AUX analog pins available on mini-Rambo, so I need to use the original T0 pins. I do not want to remove the 4k7 pullup on T0 for fear of destroying the board.

I understand that sensor type 147 was added to the firmware to allow direct connection of PT100 to the T0 pins (without amplifier). When I tried this I got readings of -10 at room temperature. Is there some sort of additional calibration or adjustment required?

Also, just wondering, is there any method of connecting the amplifier output to the original T0 pins that will work?

Grogyan commented 7 years ago

The E3D PT100 uses temp_sensor 20 and wiring up to an analog input Looking at the schematic you could use X-Max, Y-Max or Z-Max which are analog inputs direct to the micro

manianac commented 7 years ago

Its not worth trying to measure a resistance difference between 4.7k and ~180ohms (or whatever temp you're printing at). Use the e3d amp and pick any analog input as @Grogyan stated and you'll be much happier.

bsculley commented 7 years ago

Thanks a lot for your input here. I'd like to understand this pin assignment better though.
The default pin for TEMP_0_PIN is 0 (indicating analog input 0, I'm assuming). In order to use the XMAX pin for the PT100, would the pin assignment be:

#define TEMP_0_PIN 30 (same as X_MAX_PIN)

Is pin 30 really an analog input? None of the pinouts identify it that way, and you wouldn't really need an analog input for a limit switch. Sorry to be so nerdy, but I'm confused by this and don't want to blow anything up.

By the way, just for the record, I replaced the calculated temperature table for sensor type 147 with a manually adjusted one and got usable (although probably inaccurate) results. I have include the table below. If anyone has any way of verifying (or improving) this I think it would be appreciated by everyone.

const short temptable_147[][2] PROGMEM = {
  // only few values are needed as the curve is very flat  
  {292,0},
  {356,50},
  {420,100},
  {484,150},
  {548,200},
  {612,250},
  {660,300},
  {724,350},
  {772,400},
  {820,450},
  {884,500},
  {932,550},
};
thinkyhead commented 7 years ago

Is pin 30 really an analog input?

Analog pins only go from 0-15. On Mega boards, the corresponding digital pin numbers are 54-69.

Bob-the-Kuhn commented 7 years ago

Almost all the pins on the 2560 have alternate functions. In the cases of ports F & K , they have the standard digital I/O cell attached to the physical pin plus they also have an analog input cell attached to the physical pin. They are completely independent of each other. You could set the pin as a digital out and do an analog read of the pin. You wouldn't get much useable data from the analog read but it can be done and done without damaging anything.

I agree. The "simple" solution is to use an analog input without that pesky pullup.

I'm also scratching my head over using the limit inputs as an analog input. The schematic I found shows that none of the limit pins go to an analog input. In fact it shows that the only analog capable pins that go to a connector/header are the three thermistor inputs, all of which have the 4.7k pullup. Sure would be nice if we were looking at the wrong revision of the schematic. Just to be sure I've attached the schematic I found.

I too ran into troubles using an E3D PT100 amplifier with my Azteeg X3Ppro. The amplifier just doesn't have the muscle to drive that 4.7K pullup on the thermistor inputs.

The custom thermistor table is probably a reasonable solution. My unit was reading about 25C high at room temperature. As I look at the effects of the amplifier's considerable output impedance it looks like the error actually gets smaller as the temperature increases (the current the amp has to pull from the 4.7K gets smaller as the temperature [and the voltage from the amp] increases). At 400C it looks to be about 2/3 of the error at room temperature.

If the amplifier's output impedance is the issue then the controller will be reporting a higher than actual reading.
Mini-Rambo.PDF

bsculley commented 7 years ago

I don’t believe pin 30 (XMAX) has any analog capabilities. The documentation is pretty clear that there are 16 analog inputs and this is not one of them.

Did you come to any solution with your issue? I have decided that the only possible solutions are either to physically remove the pull-up, or to wire up one of the unused analog inputs. Both of these require altering the SMD’s in some way and I’m not happy about that, but I don’t see an alternative.

From: Bob-the-Kuhn [mailto:notifications@github.com] Sent: Monday, December 19, 2016 7:57 PM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Author author@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Almost all the pins on the 2560 have alternate functions. In the cases of ports F & K , they have the standard digital I/O cell attached to the physical pin plus they also have an analog input cell attached to the physical pin. They are completely independent of each other. You could set the pin as a digital out and do an analog read of the pin. You wouldn't get much useable data from the analog read but it can be done and done without damaging anything.

I agree. The "simple" solution is to use an analog input without that pesky pullup.

I'm also scratching my head over using the limit inputs as an analog input. The schematic I found shows that none of the limit pins go to an analog input. In fact it shows that the only analog capable pins that go to a connector/header are the three thermistor inputs, all of which have the 4.7k pullup. Sure would be nice if we were looking at the wrong revision of the schematic. Just to be sure I've attached the schematic I found.

I too ran into troubles using an E3D PT100 amplifier with my Azteeg X3Ppro. The amplifier just doesn't have the muscle to drive that 4.7K pullup on the thermistor inputs.

The custom thermistor table is probably a reasonable solution. My unit was reading about 25C high at room temperature. As I look at the effects of the amplifier's considerable output impedance it looks like the error actually gets smaller as the temperature increases (the current the amp has to pull from the 4.7K gets smaller as the temperature [and the voltage from the amp] increases). At 400C it looks to be about 2/3 of the error at room temperature.

If the amplifier's output impedance is the issue then the controller will be reporting a higher than actual reading. Mini-Rambo.PDF https://github.com/MarlinFirmware/Marlin/files/662647/Mini-Rambo.PDF

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268148430 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-M5IzH4FJVoZj-MLOPKE4Ol-Gg9K4ks5rJ1IkgaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M9onUwqnmOng61QDMFlC-l36nnurks5rJ1IkgaJpZM4LQNGh.gif

Grogyan commented 7 years ago

X-MAX, Y-MAX and Z-MAX are indeed all analog inputs that can be easily connected to on your board. The PT100 must be connected to an analog input without the additional external pull ups.

manianac commented 7 years ago

@Grogyan I'm not sure thats correct. As @Bob-the-Kuhn stated, only ports F & K are ADC. Port A is just a generic port that can double as external memory (page 75 @ 2560 datasheet).

@bsculley I am not a fan at all of using the PT100 with the pullup, I think it will be difficult to get a good reading. Also it seems Rambo 1.2 and Mini-Rambo use a resistor in-line with the ADC as well as the 4.7k pullup. While this shouldn't cause any real issues, I'm wondering if you're now a few millivolts off trying to read the PT100.

It may be hard as balls, but I recommend just soldering a wire to the side of the 4.7k going into the ADC pin.

Grogyan commented 7 years ago

@manianac Whoops, my mistake, you are correct.

@bsculley You will need to remove a pullup resistor with a soldering iron Or Change to another board, RAMPS or RAMBo Or Use a thermistor (yuck)

madhunm commented 7 years ago

@bsculley

How did you generate the new table? I could not find the datasheet for the e3d PT100 sensor.

Bob-the-Kuhn commented 7 years ago

Here's the link that I used.

It's a table of temperature vs. output voltage of the amplifier assuming a 5V power supply. When you convert it into analog in counts it's at most one count away from the Marlin table.

I take it you're going to be creating a custom table for your system. An easy way is to just add the error count you see at room temperature to all the values in the Marlin table. If you want more accuracy then:

madhunm commented 7 years ago

@Bob-the-Kuhn

The problem is this:

When I use the amp and set the temp_sensor_0 to be 20; I read 40 degrees when the ambient is 20 degrees. When I use the PT100 directly, and I set temp_sensor_0 to be 147, I read 0 degrees when the ambient is 20 degrees.

I understand that if I desolder the 4k7 pullup and select temo_sensor_0 to be 20 and use the amp; my problems will go away. However, I am trying to do this without that.

Bob-the-Kuhn commented 7 years ago

I don't know how good is good enough when it comes to knowing the temperature of the extruder. I do know that I've seen 10-20C ranges given for working with ABS and that all the calibration guides I've read say that the sweet spot for the temperature will vary from machine to machine and from filament batch to filament batch.

From that I conclude that you use the temperature reading to get in the neighborhood and after that it's adjusted based on the results of the calibration.

I can't offer any first hand experience as I have not yet had a successful calibration run. I just started my very first calibration run when the Z_MIN sensor failed which caused my extruder to be driven into the hot bed which produced a bent heat break which broke when I tried to straighten it.

Give me a couple of days to do some calculations. I may be able to predict the compensation based just on the error you see at room temperature. It'd be better to do it based on DMM readings.

madhunm commented 7 years ago

@Bob-the-Kuhn

Here is some info for you:

I stuck the sensor in an ice bath. the display read 18 degrees at an ambient of ~23 degrees, it reads 41 degrees.

Looks like there is an off set of 18 degrees over the actual temperature.

Do you want me to log temperatures at some pre-defined increments?

bsculley commented 7 years ago

What temperature table are you using for this? My experience was pretty opposite. With the current 147 table (calculated, so you can’t actually see the vaues) I was reading -10 at ambient temperature of 18-20.

Something isn’t lining up here…

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:18 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn

Here is some info for you:

I stuck the sensor in an ice bath. the display read 18 degrees at an ambient of ~23 degrees, it reads 41 degrees.

Looks like there is an off set of 18 degrees over the actual temperature.

Do you want me to log temperatures at some pre-defined increments?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268797655 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-MwDeuDvQNt3KLhOXSRvzsCNSfp4aks5rKniGgaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M0OTTEA5PR9u6WRGl8UsOTiy8631ks5rKniGgaJpZM4LQNGh.gif

bsculley commented 7 years ago

Did you use the amplifier with the pull-up still in place, or on a different analog input.

I didn’t have any luck with amplifier / pull-up combination.

I also got a low reading with 147 at ambient. Mine was below zero.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 2:07 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn

The problem is this:

When I use the amp and set the temp_sensor_0 to be 20; I read 40 degrees when the ambient is 20 degrees. When I use the PT100 directly, and I set temp_sensor_0 to be 147, I read 0 degrees when the ambient is 20 degrees.

I understand that if I desolder the 4k7 pullup and select temo_sensor_0 to be 20 and use the amp; my problems will go away. However, I am trying to do this without that.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268765316 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-M1jzzQOBxAOCUrnPNg0gGciYXd-6ks5rKku3gaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M7tZ4iiw18AO8ze2FTxpkk_E981Kks5rKku3gaJpZM4LQNGh.gif

bsculley commented 7 years ago

I found a PT100 temperature table here. http://www.micropik.com/PDF/pt100.pdf

I made the bold assumption that they are all pretty much the same.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 12:28 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@bsculley https://github.com/bsculley

How did you generate the new table? I could not find the datasheet for the e3d PT100 sensor.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268745969 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-M4Y_zl2z8ufwv9pmvOTWEJe_JMHSks5rKjSagaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-MyUlqo3mYLkfazlsQJkSTPg_FKIRks5rKjSagaJpZM4LQNGh.gif

madhunm commented 7 years ago

@Bob-the-Kuhn @bsculley

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

When I use 147, ice bath reads -12 and room temp reads 0

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

bsculley commented 7 years ago

That is odd. Are you measuring the voltage just on the amplifier or on the amplifier connected to the analog input?

Is the pull-up still in place in the analog input?

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:43 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn @bsculley https://github.com/bsculley

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268801985 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-M0po9vbeJzuotmVhCyk-B36ihS4-ks5rKn59gaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M6qiDM1mpbKo5ABPYMLYqHXtpcTkks5rKn59gaJpZM4LQNGh.gif

madhunm commented 7 years ago

Yes. I am measuring with the amp connected to the abalog input.

the 4k7 pull up is still in place.

On Thu, Dec 22, 2016 at 7:28 PM, bsculley notifications@github.com wrote:

That is odd. Are you measuring the voltage just on the amplifier or on the amplifier connected to the analog input?

Is the pull-up still in place in the analog input?

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:43 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention < mention@noreply.github.com> Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn @bsculley < https://github.com/bsculley>

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ MarlinFirmware/Marlin/issues/5543#issuecomment-268801985 , or mute the thread https://github.com/notifications/unsubscribe- auth/AFN-M0po9vbeJzuotmVhCyk-B36ihS4-ks5rKn59gaJpZM4LQNGh . < https://github.com/notifications/beacon/AFN-M6qiDM1mpbKo5ABPYMLYqHXtpcTkks 5rKn59gaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268804804, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRW1r4TxY7dnviYhttJI99VwMCL0kks5rKoIegaJpZM4LQNGh .

bsculley commented 7 years ago

Then the voltage is being affected by the potential from the pull-up, which has 5v on the other side of it.

Try measuring the output of the amplifier while it is not connected to the input.

I think maybe this configuration can be made to work, but it will probably require a different temperature table.

If this is feasible it would be great if one of the gurus could create another device type (247 maybe) for PT100 amplifier connected to analog input with 4k7 pull-up.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:00 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Yes. I am measuring with the amp connected to the abalog input.

the 4k7 pull up is still in place.

On Thu, Dec 22, 2016 at 7:28 PM, bsculley <notifications@github.com mailto:notifications@github.com > wrote:

That is odd. Are you measuring the voltage just on the amplifier or on the amplifier connected to the analog input?

Is the pull-up still in place in the analog input?

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:43 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com mailto:Marlin@noreply.github.com > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com mailto:bsculley@IntegratedSoftwareSvcs.com >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn @bsculley < https://github.com/bsculley>

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ https://github.com/%0b MarlinFirmware/Marlin/issues/5543#issuecomment-268801985> , or mute the thread <https://github.com/notifications/unsubscribe- https://github.com/notifications/unsubscribe-%0b auth/AFN-M0po9vbeJzuotmVhCyk-B36ihS4-ks5rKn59gaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN-M6qiDM1mpbKo5ABPYMLYqHXtpcTkks 5rKn59gaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268804804, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRW1r4TxY7dnviYhttJI99VwMCL0kks5rKoIegaJpZM4LQNGh .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268805051 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-M8DAFfhu3vxs_Qlg8tIuKbJCwIarks5rKoJwgaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M_GhDymjxTrm4VZtKXnLL8cObKSYks5rKoJwgaJpZM4LQNGh.gif

madhunm commented 7 years ago

Just to eliminate a defective sensor, I am currently compiling a custom 147 thermistor table. Please stand by, I shall update shortly.

On Thu, Dec 22, 2016 at 7:39 PM, bsculley notifications@github.com wrote:

Then the voltage is being affected by the potential from the pull-up, which has 5v on the other side of it.

Try measuring the output of the amplifier while it is not connected to the input.

I think maybe this configuration can be made to work, but it will probably require a different temperature table.

If this is feasible it would be great if one of the gurus could create another device type (247 maybe) for PT100 amplifier connected to analog input with 4k7 pull-up.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:00 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention < mention@noreply.github.com> Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Yes. I am measuring with the amp connected to the abalog input.

the 4k7 pull up is still in place.

On Thu, Dec 22, 2016 at 7:28 PM, bsculley <notifications@github.com mailto:notifications@github.com > wrote:

That is odd. Are you measuring the voltage just on the amplifier or on the amplifier connected to the analog input?

Is the pull-up still in place in the analog input?

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:43 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com <mailto: Marlin@noreply.github.com> > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com <mailto:bsculley@ IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn @bsculley < https://github.com/bsculley>

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268801985> , or mute the thread <https://github.com/notifications/unsubscribe- < https://github.com/notifications/unsubscribe-%0b> auth/AFN-M0po9vbeJzuotmVhCyk-B36ihS4-ks5rKn59gaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN- M6qiDM1mpbKo5ABPYMLYqHXtpcTkks 5rKn59gaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/ 5543#issuecomment-268804804, or mute the thread https://github.com/notifications/unsubscribe-auth/ AEAgRW1r4TxY7dnviYhttJI99VwMCL0kks5rKoIegaJpZM4LQNGh .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ MarlinFirmware/Marlin/issues/5543#issuecomment-268805051 , or mute the thread https://github.com/notifications/unsubscribe- auth/AFN-M8DAFfhu3vxs_Qlg8tIuKbJCwIarks5rKoJwgaJpZM4LQNGh . < https://github.com/notifications/beacon/AFN-M_ GhDymjxTrm4VZtKXnLL8cObKSYks5rKoJwgaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268806595, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRfdMec8X-fobaZdq103nn9TiJO4Bks5rKoR8gaJpZM4LQNGh .

bsculley commented 7 years ago

Great!

By the way, the E3d docs on the amplifier (http://wiki.e3d-online.com/wiki/E3D_PT100_Amplifier_Documentation#Output_Characteristics

) show that a voltage of 1.219 corresponds about 25 degrees.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:13 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Just to eliminate a defective sensor, I am currently compiling a custom 147 thermistor table. Please stand by, I shall update shortly.

On Thu, Dec 22, 2016 at 7:39 PM, bsculley <notifications@github.com mailto:notifications@github.com > wrote:

Then the voltage is being affected by the potential from the pull-up, which has 5v on the other side of it.

Try measuring the output of the amplifier while it is not connected to the input.

I think maybe this configuration can be made to work, but it will probably require a different temperature table.

If this is feasible it would be great if one of the gurus could create another device type (247 maybe) for PT100 amplifier connected to analog input with 4k7 pull-up.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:00 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com mailto:Marlin@noreply.github.com > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com mailto:bsculley@IntegratedSoftwareSvcs.com >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Yes. I am measuring with the amp connected to the abalog input.

the 4k7 pull up is still in place.

On Thu, Dec 22, 2016 at 7:28 PM, bsculley <notifications@github.com mailto:notifications@github.com%0b mailto:notifications@github.com > wrote:

That is odd. Are you measuring the voltage just on the amplifier or on the amplifier connected to the analog input?

Is the pull-up still in place in the analog input?

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:43 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com mailto:Marlin@noreply.github.com%20%3cmailto:%0b <mailto: Marlin@noreply.github.com mailto:Marlin@noreply.github.com > > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com mailto:bsculley@IntegratedSoftwareSvcs.com%20%3cmailto:bsculley@%0b <mailto:bsculley@ IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn @bsculley < https://github.com/bsculley>

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ https://github.com/%20%3c%0b < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268801985> , or mute the thread <https://github.com/notifications/unsubscribe- https://github.com/notifications/unsubscribe-%20%3c%0b < https://github.com/notifications/unsubscribe-%0b> auth/AFN-M0po9vbeJzuotmVhCyk-B36ihS4-ks5rKn59gaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN- M6qiDM1mpbKo5ABPYMLYqHXtpcTkks 5rKn59gaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/MarlinFirmware/Marlin/issues/ https://github.com/MarlinFirmware/Marlin/issues/%0b 5543#issuecomment-268804804>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ https://github.com/notifications/unsubscribe-auth/%0b AEAgRW1r4TxY7dnviYhttJI99VwMCL0kks5rKoIegaJpZM4LQNGh> .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ https://github.com/%0b MarlinFirmware/Marlin/issues/5543#issuecomment-268805051> , or mute the thread <https://github.com/notifications/unsubscribe- https://github.com/notifications/unsubscribe-%0b auth/AFN-M8DAFfhu3vxsQlg8tIuKbJCwIarks5rKoJwgaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN-M GhDymjxTrm4VZtKXnLL8cObKSYks5rKoJwgaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268806595, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRfdMec8X-fobaZdq103nn9TiJO4Bks5rKoR8gaJpZM4LQNGh .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268807264 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-M5gMYaFeJMZprW8SvXhLQ_sV7dtAks5rKoVegaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-Mx9MYD82tporNOu91adRPFtPsYWAks5rKoVegaJpZM4LQNGh.gif

madhunm commented 7 years ago

Progress! I used the values for 147 as listed here:

http://shop.prusa3d.com/forum/improvements-f14/mini-rambo-1-3-and-e3d-with-pt100-t700-s40.html#p20938

at room temperature, I am now at 34 degrees!

On Thu, Dec 22, 2016 at 7:50 PM, bsculley notifications@github.com wrote:

Great!

By the way, the E3d docs on the amplifier (http://wiki.e3d-online.com/ wiki/E3D_PT100_Amplifier_Documentation#Output_Characteristics

) show that a voltage of 1.219 corresponds about 25 degrees.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:13 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention < mention@noreply.github.com> Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Just to eliminate a defective sensor, I am currently compiling a custom 147 thermistor table. Please stand by, I shall update shortly.

On Thu, Dec 22, 2016 at 7:39 PM, bsculley <notifications@github.com mailto:notifications@github.com > wrote:

Then the voltage is being affected by the potential from the pull-up, which has 5v on the other side of it.

Try measuring the output of the amplifier while it is not connected to the input.

I think maybe this configuration can be made to work, but it will probably require a different temperature table.

If this is feasible it would be great if one of the gurus could create another device type (247 maybe) for PT100 amplifier connected to analog input with 4k7 pull-up.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:00 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com <mailto: Marlin@noreply.github.com> > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com <mailto:bsculley@ IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Yes. I am measuring with the amp connected to the abalog input.

the 4k7 pull up is still in place.

On Thu, Dec 22, 2016 at 7:28 PM, bsculley <notifications@github.com mailto:notifications@github.com%0b mailto:notifications@github.com > wrote:

That is odd. Are you measuring the voltage just on the amplifier or on the amplifier connected to the analog input?

Is the pull-up still in place in the analog input?

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:43 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com <mailto: Marlin@noreply.github.com%20%3cmailto:%0b> <mailto: Marlin@noreply.github.com mailto:Marlin@noreply.github.com > > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com <mailto:bsculley@ IntegratedSoftwareSvcs.com%20%3cmailto:bsculley@%0b> <mailto:bsculley@ IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn @bsculley < https://github.com/bsculley>

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ < https://github.com/%20%3c%0b> < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268801985> , or mute the thread <https://github.com/notifications/unsubscribe- < https://github.com/notifications/unsubscribe-%20%3c%0b> < https://github.com/notifications/unsubscribe-%0b> auth/AFN-M0po9vbeJzuotmVhCyk-B36ihS4-ks5rKn59gaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN- M6qiDM1mpbKo5ABPYMLYqHXtpcTkks 5rKn59gaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/MarlinFirmware/Marlin/issues/ https://github.com/ MarlinFirmware/Marlin/issues/%0b 5543#issuecomment-268804804>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ < https://github.com/notifications/unsubscribe-auth/%0b> AEAgRW1r4TxY7dnviYhttJI99VwMCL0kks5rKoIegaJpZM4LQNGh> .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268805051> , or mute the thread <https://github.com/notifications/unsubscribe- < https://github.com/notifications/unsubscribe-%0b> auth/AFN-M8DAFfhu3vxsQlg8tIuKbJCwIarks5rKoJwgaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN-M GhDymjxTrm4VZtKXnLL8cObKSYks5rKoJwgaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/ 5543#issuecomment-268806595, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRfdMec8X- fobaZdq103nn9TiJO4Bks5rKoR8gaJpZM4LQNGh .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ MarlinFirmware/Marlin/issues/5543#issuecomment-268807264 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN- M5gMYaFeJMZprW8SvXhLQ_sV7dtAks5rKoVegaJpZM4LQNGh . https://github.com/ notifications/beacon/AFN-Mx9MYD82tporNOu91adRPFtPsYWAks 5rKoVegaJpZM4LQNGh.gif

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268808621, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRTnQ9-KFd69GDpFH4F_h3LFMJ2i-ks5rKocZgaJpZM4LQNGh .

bsculley commented 7 years ago

That’s the table I made. The first two entries (0 and 50 degrees) are not rational. I fudged them to get reasonable readings. The calculated values were 341 (0 degrees) and 406 (50 degrees).

Can you confirm your exact hardware/firmware setup? I really want to make the amplifier work with the pull-up!

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:25 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Progress! I used the values for 147 as listed here:

http://shop.prusa3d.com/forum/improvements-f14/mini-rambo-1-3-and-e3d-with-pt100-t700-s40.html#p20938

at room temperature, I am now at 34 degrees!

On Thu, Dec 22, 2016 at 7:50 PM, bsculley <notifications@github.com mailto:notifications@github.com > wrote:

Great!

By the way, the E3d docs on the amplifier (http://wiki.e3d-online.com/ wiki/E3D_PT100_Amplifier_Documentation#Output_Characteristics

) show that a voltage of 1.219 corresponds about 25 degrees.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:13 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com mailto:Marlin@noreply.github.com > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com mailto:bsculley@IntegratedSoftwareSvcs.com >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Just to eliminate a defective sensor, I am currently compiling a custom 147 thermistor table. Please stand by, I shall update shortly.

On Thu, Dec 22, 2016 at 7:39 PM, bsculley <notifications@github.com mailto:notifications@github.com%0b mailto:notifications@github.com > wrote:

Then the voltage is being affected by the potential from the pull-up, which has 5v on the other side of it.

Try measuring the output of the amplifier while it is not connected to the input.

I think maybe this configuration can be made to work, but it will probably require a different temperature table.

If this is feasible it would be great if one of the gurus could create another device type (247 maybe) for PT100 amplifier connected to analog input with 4k7 pull-up.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:00 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com mailto:Marlin@noreply.github.com%20%3cmailto:%0b <mailto: Marlin@noreply.github.com mailto:Marlin@noreply.github.com > > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com mailto:bsculley@IntegratedSoftwareSvcs.com%20%3cmailto:bsculley@%0b <mailto:bsculley@ IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Yes. I am measuring with the amp connected to the abalog input.

the 4k7 pull up is still in place.

On Thu, Dec 22, 2016 at 7:28 PM, bsculley <notifications@github.com mailto:notifications@github.com%0b mailto:notifications@github.com%0b mailto:notifications@github.com > wrote:

That is odd. Are you measuring the voltage just on the amplifier or on the amplifier connected to the analog input?

Is the pull-up still in place in the analog input?

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:43 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com mailto:Marlin@noreply.github.com%20%3cmailto:%0b <mailto: Marlin@noreply.github.com%20%3cmailto:%0b mailto:Marlin@noreply.github.com%20%3cmailto:%0b > <mailto: <mailto:%0b> Marlin@noreply.github.com mailto:Marlin@noreply.github.com mailto:Marlin@noreply.github.com > > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com mailto:bsculley@IntegratedSoftwareSvcs.com%20%3cmailto:bsculley@%0b <mailto:bsculley@ IntegratedSoftwareSvcs.com%20%3cmailto:bsculley@%0b> <mailto:bsculley@ mailto:bsculley@%0b IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com mailto:mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn @bsculley < https://github.com/bsculley>

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ https://github.com/%20%3c%0b < https://github.com/%20%3c%0b> < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268801985> , or mute the thread <https://github.com/notifications/unsubscribe- https://github.com/notifications/unsubscribe-%20%3c%0b < https://github.com/notifications/unsubscribe-%20%3c%0b> < https://github.com/notifications/unsubscribe-%0b> auth/AFN-M0po9vbeJzuotmVhCyk-B36ihS4-ks5rKn59gaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN- M6qiDM1mpbKo5ABPYMLYqHXtpcTkks 5rKn59gaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/MarlinFirmware/Marlin/issues/ https://github.com/MarlinFirmware/Marlin/issues/%20%3chttps:/github.com/%0b https://github.com/ MarlinFirmware/Marlin/issues/%0b 5543#issuecomment-268804804>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ https://github.com/notifications/unsubscribe-auth/%20%3c%0b < https://github.com/notifications/unsubscribe-auth/%0b> AEAgRW1r4TxY7dnviYhttJI99VwMCL0kks5rKoIegaJpZM4LQNGh> .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ https://github.com/%20%3c%0b < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268805051> , or mute the thread <https://github.com/notifications/unsubscribe- https://github.com/notifications/unsubscribe-%20%3c%0b < https://github.com/notifications/unsubscribe-%0b> auth/AFN-M8DAFfhu3vxsQlg8tIuKbJCwIarks5rKoJwgaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN-M GhDymjxTrm4VZtKXnLL8cObKSYks5rKoJwgaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/MarlinFirmware/Marlin/issues/ https://github.com/MarlinFirmware/Marlin/issues/%0b 5543#issuecomment-268806595>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEAgRfdMec8X- https://github.com/notifications/unsubscribe-auth/AEAgRfdMec8X-%0b fobaZdq103nn9TiJO4Bks5rKoR8gaJpZM4LQNGh> .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ https://github.com/%0b MarlinFirmware/Marlin/issues/5543#issuecomment-268807264> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AFN- https://github.com/notifications/unsubscribe-auth/AFN-%0b M5gMYaFeJMZprW8SvXhLQ_sV7dtAks5rKoVegaJpZM4LQNGh> . <https://github.com/ https://github.com/%0b notifications/beacon/AFN-Mx9MYD82tporNOu91adRPFtPsYWAks 5rKoVegaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268808621, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRTnQ9-KFd69GDpFH4F_h3LFMJ2i-ks5rKocZgaJpZM4LQNGh .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268809413 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-MwJIKo9tsRoevFIKX5gjSFhm40jYks5rKogegaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M3Xo_efkPFNXBi1aK3WciQT6Gna2ks5rKogegaJpZM4LQNGh.gif

madhunm commented 7 years ago

My setup is the e3d PT100 kit. I would love to use the amp. Seems a and bit to use it. But, if I can get away without resoldering the pullups.

On Dec 22, 2016 8:14 PM, "bsculley" notifications@github.com wrote:

That’s the table I made. The first two entries (0 and 50 degrees) are not rational. I fudged them to get reasonable readings. The calculated values were 341 (0 degrees) and 406 (50 degrees).

Can you confirm your exact hardware/firmware setup? I really want to make the amplifier work with the pull-up!

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:25 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention < mention@noreply.github.com> Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Progress! I used the values for 147 as listed here:

http://shop.prusa3d.com/forum/improvements-f14/mini-rambo-1- 3-and-e3d-with-pt100-t700-s40.html#p20938

at room temperature, I am now at 34 degrees!

On Thu, Dec 22, 2016 at 7:50 PM, bsculley <notifications@github.com mailto:notifications@github.com > wrote:

Great!

By the way, the E3d docs on the amplifier (http://wiki.e3d-online.com/ wiki/E3D_PT100_Amplifier_Documentation#Output_Characteristics

) show that a voltage of 1.219 corresponds about 25 degrees.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:13 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com <mailto: Marlin@noreply.github.com> > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com <mailto:bsculley@ IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Just to eliminate a defective sensor, I am currently compiling a custom 147 thermistor table. Please stand by, I shall update shortly.

On Thu, Dec 22, 2016 at 7:39 PM, bsculley <notifications@github.com mailto:notifications@github.com%0b mailto:notifications@github.com > wrote:

Then the voltage is being affected by the potential from the pull-up, which has 5v on the other side of it.

Try measuring the output of the amplifier while it is not connected to the input.

I think maybe this configuration can be made to work, but it will probably require a different temperature table.

If this is feasible it would be great if one of the gurus could create another device type (247 maybe) for PT100 amplifier connected to analog input with 4k7 pull-up.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 6:00 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com <mailto: Marlin@noreply.github.com%20%3cmailto:%0b> <mailto: Marlin@noreply.github.com mailto:Marlin@noreply.github.com > > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com <mailto:bsculley@ IntegratedSoftwareSvcs.com%20%3cmailto:bsculley@%0b> <mailto:bsculley@ IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Yes. I am measuring with the amp connected to the abalog input.

the 4k7 pull up is still in place.

On Thu, Dec 22, 2016 at 7:28 PM, bsculley <notifications@github.com mailto:notifications@github.com%0b mailto:notifications@github.com%0b mailto:notifications@github.com > wrote:

That is odd. Are you measuring the voltage just on the amplifier or on the amplifier connected to the analog input?

Is the pull-up still in place in the analog input?

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 5:43 AM To: MarlinFirmware/Marlin <Marlin@noreply.github.com <mailto: Marlin@noreply.github.com%20%3cmailto:%0b> <mailto: Marlin@noreply.github.com%20%3cmailto:%0b <mailto:Marlin@noreply.github. com%20%3cmailto:%0b> > <mailto: <mailto:%0b> Marlin@noreply.github.com mailto:Marlin@noreply.github.com <mailto: Marlin@noreply.github.com> > > Cc: bsculley <bsculley@IntegratedSoftwareSvcs.com <mailto:bsculley@ IntegratedSoftwareSvcs.com%20%3cmailto:bsculley@%0b> <mailto:bsculley@ IntegratedSoftwareSvcs.com%20%3cmailto:bsculley@%0b> <mailto:bsculley@ mailto:bsculley@%0b IntegratedSoftwareSvcs.com> >; Mention < mention@noreply.github.com mailto:mention@noreply.github.com mailto:mention@noreply.github.com mailto:mention@noreply.github.com > Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

@Bob-the-Kuhn https://github.com/Bob-the-Kuhn @bsculley < https://github.com/bsculley>

I tried both 147 and 20. Currently, I am on 20 with the amp connected.

Odd thing is, the PT100 reads 110.6 ohms. but, the Amp output is 1.219V (which corresponds to 42 degrees)

The display is showing 42 degrees.

Maybe my amp is fried?

Thanks, Madhu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ <https://github.com/%20%3c%0b < https://github.com/%20%3c%0b> < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268801985> , or mute the thread <https://github.com/notifications/unsubscribe- < https://github.com/notifications/unsubscribe-%20%3c%0b> < https://github.com/notifications/unsubscribe-%20%3c%0b> < https://github.com/notifications/unsubscribe-%0b> auth/AFN-M0po9vbeJzuotmVhCyk-B36ihS4-ks5rKn59gaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN- M6qiDM1mpbKo5ABPYMLYqHXtpcTkks 5rKn59gaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/MarlinFirmware/Marlin/issues/ < https://github.com/MarlinFirmware/Marlin/issues/% 20%3chttps:/github.com/%0b> https://github.com/ MarlinFirmware/Marlin/issues/%0b 5543#issuecomment-268804804>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ < https://github.com/notifications/unsubscribe-auth/%20%3c%0b> < https://github.com/notifications/unsubscribe-auth/%0b> AEAgRW1r4TxY7dnviYhttJI99VwMCL0kks5rKoIegaJpZM4LQNGh> .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ < https://github.com/%20%3c%0b> < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268805051> , or mute the thread <https://github.com/notifications/unsubscribe- < https://github.com/notifications/unsubscribe-%20%3c%0b> < https://github.com/notifications/unsubscribe-%0b> auth/AFN-M8DAFfhu3vxsQlg8tIuKbJCwIarks5rKoJwgaJpZM4LQNGh> . < https://github.com/notifications/beacon/AFN-M GhDymjxTrm4VZtKXnLL8cObKSYks5rKoJwgaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/MarlinFirmware/Marlin/issues/ https://github.com/ MarlinFirmware/Marlin/issues/%0b 5543#issuecomment-268806595>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEAgRfdMec8X- < https://github.com/notifications/unsubscribe-auth/AEAgRfdMec8X-%0b> fobaZdq103nn9TiJO4Bks5rKoR8gaJpZM4LQNGh> .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <https://github.com/ < https://github.com/%0b> MarlinFirmware/Marlin/issues/5543#issuecomment-268807264> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AFN- < https://github.com/notifications/unsubscribe-auth/AFN-%0b> M5gMYaFeJMZprW8SvXhLQ_sV7dtAks5rKoVegaJpZM4LQNGh> . https://github.com/ <https://github.com/%0b notifications/beacon/AFN-Mx9MYD82tporNOu91adRPFtPsYWAks 5rKoVegaJpZM4LQNGh.gif>

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/ 5543#issuecomment-268808621, or mute the thread https://github.com/notifications/unsubscribe- auth/AEAgRTnQ9-KFd69GDpFH4F_h3LFMJ2i-ks5rKocZgaJpZM4LQNGh .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ MarlinFirmware/Marlin/issues/5543#issuecomment-268809413 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN- MwJIKo9tsRoevFIKX5gjSFhm40jYks5rKogegaJpZM4LQNGh . https://github.com/ notifications/beacon/AFN-M3Xo_efkPFNXBi1aK3WciQT6Gna2ks5rKog egaJpZM4LQNGh.gif

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268813354, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRYZWwmZUXQz4jaJQmf0sDM0QUe7Xks5rKoy3gaJpZM4LQNGh .

Bob-the-Kuhn commented 7 years ago

The problem with the PT100 amplifier is that it has about 80 Ohms of output impedance (per my calculations). At room temperature there's about 0.8mA being sunk by the amplifier (when driving the 4.7K pullup). 0.8mA x 100 Ohms gives us about 80mV which translates to a reading 20C higher than actual.

At 200C the current drops down to 0.65mA which gives us a 65mV offset which is a 16C error.

You're seeing a 20C error at room temp. My amp had a 25C error.

I'll generate a table based on the 20C offset you're seeing.

madhunm commented 7 years ago

Bob,

If you're using a spreadsheet, please attach the same... Or at least, the calculation.

Thanks!

On Dec 22, 2016 8:59 PM, "Bob-the-Kuhn" notifications@github.com wrote:

The problem with the PT100 amplifier is that it has about 80 Ohms of output impedance (per my calculations). At room temperature there's about 0.8mA being sunk by the amplifier (when driving the 4.7K pullup). 0.8mA x 100 Ohms gives us about 80mV which translates to a reading 20C higher than actual.

At 200C the current drops down to 0.65mA which gives us a 65mV offset which is a 16C error.

You're seeing a 20C error at room temp. My amp had a 25C error.

I'll generate a table based on the 20C offset you're seeing.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268822940, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRer_EyTrBUmN8pT-Kozdx8Y7gZqRks5rKpdXgaJpZM4LQNGh .

bsculley commented 7 years ago

Here’s the table.

The first 2 columns are from the PT100 datasheet.

Volts = (Ohms/(4700+Ohms)) * 5

ADC steps = (1024/5) * Volts

147 = ADC Steps * 16

Let me know if any of the calcs are not clear.

Temp

Ohms

Volts

ADC steps

147

0

100

0.104

21

336

50

119.4

0.124

25

400

100

138.5

0.143

29

464

150

157.33

0.162

33

528

200

175.86

0.18

37

576

250

194.1

0.198

41

640

300

212.05

0.216

44

704

350

229.72

0.233

48

752

400

247.09

0.25

51

816

450

264.18

0.266

54

864

500

280.98

0.282

58

912

550

297.49

0.298

61

976

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 7:31 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Bob,

If you're using a spreadsheet, please attach the same... Or at least, the calculation.

Thanks!

On Dec 22, 2016 8:59 PM, "Bob-the-Kuhn" <notifications@github.com mailto:notifications@github.com > wrote:

The problem with the PT100 amplifier is that it has about 80 Ohms of output impedance (per my calculations). At room temperature there's about 0.8mA being sunk by the amplifier (when driving the 4.7K pullup). 0.8mA x 100 Ohms gives us about 80mV which translates to a reading 20C higher than actual.

At 200C the current drops down to 0.65mA which gives us a 65mV offset which is a 16C error.

You're seeing a 20C error at room temp. My amp had a 25C error.

I'll generate a table based on the 20C offset you're seeing.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268822940, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRer_EyTrBUmN8pT-Kozdx8Y7gZqRks5rKpdXgaJpZM4LQNGh .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268823352 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-MyEhXMLzqM4G2gDagiCNzApimx82ks5rKpfMgaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M29G6qvSIvAtI4VqYnwOR2cq0YTUks5rKpfMgaJpZM4LQNGh.gif

bsculley commented 7 years ago

Will the offset be constant or vary with the voltage?

Looking forward to the table!

Can you include a calibration adjustment for the particular PT100/amplifier readings?

From: Bob-the-Kuhn [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 7:29 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

The problem with the PT100 amplifier is that it has about 80 Ohms of output impedance (per my calculations). At room temperature there's about 0.8mA being sunk by the amplifier (when driving the 4.7K pullup). 0.8mA x 100 Ohms gives us about 80mV which translates to a reading 20C higher than actual.

At 200C the current drops down to 0.65mA which gives us a 65mV offset which is a 16C error.

You're seeing a 20C error at room temp. My amp had a 25C error.

I'll generate a table based on the 20C offset you're seeing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268822940 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-M_PKGKnaM2GfK0J2n9kxGh9lRAsyks5rKpdXgaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M-Yx20gAWRWgRGsD2harubE47-5Vks5rKpdXgaJpZM4LQNGh.gif

bsculley commented 7 years ago

Oh, I guess you didn’t mean me. Sorry.

From: madhunm [mailto:notifications@github.com] Sent: Thursday, December 22, 2016 7:31 AM To: MarlinFirmware/Marlin Marlin@noreply.github.com Cc: bsculley bsculley@IntegratedSoftwareSvcs.com; Mention mention@noreply.github.com Subject: Re: [MarlinFirmware/Marlin] E3D PT100 (#5543)

Bob,

If you're using a spreadsheet, please attach the same... Or at least, the calculation.

Thanks!

On Dec 22, 2016 8:59 PM, "Bob-the-Kuhn" <notifications@github.com mailto:notifications@github.com > wrote:

The problem with the PT100 amplifier is that it has about 80 Ohms of output impedance (per my calculations). At room temperature there's about 0.8mA being sunk by the amplifier (when driving the 4.7K pullup). 0.8mA x 100 Ohms gives us about 80mV which translates to a reading 20C higher than actual.

At 200C the current drops down to 0.65mA which gives us a 65mV offset which is a 16C error.

You're seeing a 20C error at room temp. My amp had a 25C error.

I'll generate a table based on the 20C offset you're seeing.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268822940, or mute the thread https://github.com/notifications/unsubscribe-auth/AEAgRer_EyTrBUmN8pT-Kozdx8Y7gZqRks5rKpdXgaJpZM4LQNGh .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarlinFirmware/Marlin/issues/5543#issuecomment-268823352 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFN-MyEhXMLzqM4G2gDagiCNzApimx82ks5rKpfMgaJpZM4LQNGh . https://github.com/notifications/beacon/AFN-M29G6qvSIvAtI4VqYnwOR2cq0YTUks5rKpfMgaJpZM4LQNGh.gif

madhunm commented 7 years ago

@Bob-the-Kuhn

I used the values you gave above; at room temp, the display is reading 550 degrees.

I measured the output of the amp when connected to the Rambo; it is reading 1.218 volts.

Going by the logic you have posted above, the ADC should never read more than 976 (for 550 degrees). However, the amp has a gain of 10. Doesnt this need to be incorporated somehow?

Edit: If I modify your logic to say ADC steps = (1024/5) (Volts 10), room temperature is now reading 62 degrees.

manianac commented 7 years ago

Small recommendation, rather than using the calculations, and given you're trying to account for very small change in ADC steps, just enable SHOW_TEMP_ADC_VALUES in Configuration_adv.h and try calibrating using those. I'm still believing the RAMBO and the mini will have the adc steps a few off than other boards.

Bob-the-Kuhn commented 7 years ago

Here's an Excel file that'll take your temperature readings and create a column that you can paste into Marlin as is.

PT100 calculator.zip

You'll need to convert the room temperature and the temperature reported by the controller into voltages per the PT100 table mentioned a couple of times here. That table is already in the Excel spreadsheet.

You can also play around with variations in supply voltages & resistances to see how they affect the reported temperature.

This is definitely NOT an ideal solution. There's definitely better ways to generate the desired table.

My guess is this method will get you within 5C of actual at 200C, not including things like the PT100 sensor's accuracy and the non-linear behavior of the amplifier.

madhunm commented 7 years ago

@Bob-the-Kuhn

Thanks a million! this works spotlessly... Although, since I dont know if this is the right place to ask you for an explanation of the formulae, please let me know how I may contact you outside of here.

Thanks, madhu.

madhunm commented 7 years ago

quick one... is it fair to compare the PT100 to the bed thermistor?

The bed is reporting that it is ALWAYS 10 degrees hotter than the PT100...

thanks.

manianac commented 7 years ago

For whats its worth, my PT100 is using the e3d amp and connected to an open analog input, no resistors. At room temperature (21degC) my bed thermistor (after sitting overnight) reads 21.6degC, the PT100 18degC.

Point I'm trying to make is unless you have an external source to calibrate, room temp is not that great for the PT100.

madhunm commented 7 years ago

@manianac I agree.

I am using a Fluke thermocouple to measure against. Before @Bob-the-Kuhn posted the excel file, i was off by 20 degrees.

hence the maniacal stubbornness. Now, I am comparing it against the heatbed; i dont know if that is right. the thermocouple and PT100 are within 3 degrees of one other.

Bob-the-Kuhn commented 7 years ago

Here's the best I can do without spending half the day learning how to run a schematic capture program. PT100 equations.docx

The docx file contains a hand drawn system diagram and the equations for it.

madhunm commented 7 years ago

@Bob-the-Kuhn

Sorry to be a pest; but, the doc has no hand drawn document - at least, nothing that can be seen. At the top, there is a thumbnail for img021.pdf but that cannot be opened.

Bob-the-Kuhn commented 7 years ago

Here it is.

system_diagram.pdf

bsculley commented 7 years ago

Season’s Greetings!

Don’t want to be a freeloader, but if anybody has actually calculated a temperature table it would be great if you could share it. I don’t trust my math skills all that well.

Bob-the-Kuhn commented 7 years ago

Further up this chain you'll see a PT100.calculator.zip file. I think that'll do what you want.

bsculley commented 7 years ago

Got it, thanks.

What does anybody think about adding a new device type for this configuration?

madhunm commented 7 years ago

@Bob-the-Kuhn

I would like to use a PT100 without the amp for the heated bed. Is that recommended?

The reason I ask is because, the gremlins of 147 are back to haunt me. I am not able to get a sensible reading when compared to the PT100 with amp.

If I consider the amped sensor as reference, and I mount them to the same heat block, I'm not able to get readings that are even in the same ballpark. The readings are off by 50 degrees sometimes.

Thanks, Madhu.

thinkyhead commented 7 years ago

How's it going? Any progress?

Bob-the-Kuhn commented 7 years ago

I did a few calculations and the 147 table only has about 9 degrees C resolution.

If the internal pullup was also enabled then his readings would be off by 100C and more.

The 4.7k pullup would have to be off by 10% in order to throw the readings off by 50C at 260C.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.