E-LAB Computers
 

My LM75 / DS75 Unit

  • 1
  • 2
  • Seite 1 von 2
nwrightson
Benutzer
Avatar
Geschlecht:
Herkunft: Newcastle
Homepage: nweha.homeserver.c…
Beiträge: 362
Dabei seit: 08 / 2003
Betreff:

My LM75 / DS75 Unit

 · 
Gepostet: 08.10.2009 - 00:16 Uhr  ·  #1
Hi,

Here is the unit I developed for ready the LM75 or DS75 I2C Temperature interface IC's.

It handles the I2C or TWI Interface with multiple different levels of required accuracy.
mc-electronic
Benutzer
Avatar
Geschlecht: keine Angabe
Herkunft: Sauerland NRW
Beiträge: 372
Dabei seit: 03 / 2008
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 14.04.2010 - 13:27 Uhr  ·  #2
Hello Neil,

the Unit's source is no longer in the new forum. Can you send it to me by PM or try to upload it once more?

Thank you, Michael

@rh:
PS: I suppose, this happened when the forum got updated.. I still get no Mail announcements, when I receive answers in 'my' threads. I deleted all my mails, as you suggested...
Harry
Moderator
Avatar
Geschlecht:
Herkunft: zwischen Augsburg und Ulm
Beiträge: 2185
Dabei seit: 03 / 2003
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 15.04.2010 - 08:47 Uhr  ·  #3
Hallo Michael,

ich dachte zwar ich hätte die Unit irgendwo gespeichert, aber ich finde sie nicht mehr. Evtl. hilft dir das aber weiter.

gruss
Harry
mc-electronic
Benutzer
Avatar
Geschlecht: keine Angabe
Herkunft: Sauerland NRW
Beiträge: 372
Dabei seit: 03 / 2008
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 15.04.2010 - 10:14 Uhr  ·  #4
Hello Harry,

I had seen that link already - and I am using this way of communicating with the LM75. However, I find, that the LM75 has wide variations: I am running presently a series of 10 identical devices, each with one LM75 as internal temerature sensor and find the following:

  • 1 Some of the LM 75 have up to 2°C difference to the real temperature. That is in accordance with the data sheet.
  • 2 Some of the LM75 (in my case 3 of the 10) JUMP in the temperature readings from second to second for up to 5°C, i.e. they show 35°C, then 30.5°C and again 34.5°C.


I had been thinking, that I was having I²C bus problems, but there are more devices on the bus, that operate without problems (and yes: the pullups are installed !).
So, after some investigation, I came to the conclusion, that it is not the software, but rather a production variation of the LM75.

Anybody, who can confirm these observations??

Regards, Michael
Harry
Moderator
Avatar
Geschlecht:
Herkunft: zwischen Augsburg und Ulm
Beiträge: 2185
Dabei seit: 03 / 2003
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 15.04.2010 - 14:00 Uhr  ·  #5
Hallo Michael,

genau wegen diesen Temperatursprüngen hab ich mit den LM75 nichts mehr gemacht, hab aber inzwischen gehört, daß die Versorgungsspannung am LM75 sehr stabil sein muß. Ich bin leider noch nicht dazu gekommen weitere Tests zu machen, aber ich würde mal einen übertrieben großen Kondensator bei den Problem-ICs anlöten. Und es ist duchaus möglich, daß das nicht bei allen auftritt.

gruss
Harry
Avra
Schreiberling
Avatar
Geschlecht:
Herkunft: Belgrade, Serbia
Homepage: rs.linkedin.com/in…
Beiträge: 656
Dabei seit: 07 / 2002
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 15.04.2010 - 22:33 Uhr  ·  #6
I hope that Neil doesn't have objections on me reposting his code...

Michael, take a note of Neil's remark:
Zitat
This unit adds temperature monitoring facilities ustilising the DS75 I2C Interface IC's
The DS75 is a drop in replacement for the LM75 but it can also be programmed to give a
higher accuracy i.e. up to 12 Bit accuracy which is equal to a resolution of 0.0625C.
The LM75 is only good for 0.5 DegC accuracy.
This unit should also work with the LM75 but will only give the standard accuracy.
*** Note LM75 is only good for 100KHz data bus.

This might give you a hint what's going on if you use LM75 on 400kHz bus.
Anhänge an diesem Beitrag
Dateiname: uTemperature.7z
Dateigröße: 2.48 KB
Titel: LM75 or DS75 over I2C
Heruntergeladen: 25
mc-electronic
Benutzer
Avatar
Geschlecht: keine Angabe
Herkunft: Sauerland NRW
Beiträge: 372
Dabei seit: 03 / 2008
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 16.04.2010 - 07:54 Uhr  ·  #7
Hello Avra,

thank you for the download. I will have a look at the DS75 and try also a local caps near to the device, as Harry suggested. However, I had tested the I²C wich 100 and 400 KBit/s each, and had no difference in behaviour. Then I swapped the Power supply unit of one device with good readings +/- 0.5°C with one with bad readings (+/- 2.5°C) and again: the bad one was still bad. So, I came to the conclusion, that the problem lies within the LM75 - although I can't imagine, that someone supplies a temp sensor with such a bad variety in readings. I do not think, that the problem is due to the hardware of the boards, they are full SMD, robot placed elements, industrial soldered, with LC-noise suppression etc...

I will investigate further and I will replace a bad LM75 with a DS75. I will keep in touch.

Thank you! Michael
nwrightson
Benutzer
Avatar
Geschlecht:
Herkunft: Newcastle
Homepage: nweha.homeserver.c…
Beiträge: 362
Dabei seit: 08 / 2003
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 19.04.2010 - 06:02 Uhr  ·  #8
Trying to add the file?
mc-electronic
Benutzer
Avatar
Geschlecht: keine Angabe
Herkunft: Sauerland NRW
Beiträge: 372
Dabei seit: 03 / 2008
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 24.04.2010 - 22:43 Uhr  ·  #9
@Harry: I tried the cap near the device - no change.

@Avra: I have replaced the LM75 with a ST DS75 - shoud be a drop in replacement, but it gives only one reading and hangs the I2C Bus (and so my application) after that. Any Idea??

Regards, Michael

PS Tried 100 and 400 kBit of course - no good...
Avra
Schreiberling
Avatar
Geschlecht:
Herkunft: Belgrade, Serbia
Homepage: rs.linkedin.com/in…
Beiträge: 656
Dabei seit: 07 / 2002
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 25.04.2010 - 13:54 Uhr  ·  #10
Have you tried with both hardware and software I2C driver? You can also try with shortest cable length, and different power supply.

Take a look at these AvrCo demos:
..AVRcoDemosI2CloopI2Cctrl.pas
..AVRcoDemosI2CtestI2Cbus.pas
mc-electronic
Benutzer
Avatar
Geschlecht: keine Angabe
Herkunft: Sauerland NRW
Beiträge: 372
Dabei seit: 03 / 2008
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 25.04.2010 - 16:50 Uhr  ·  #11
Hello Avra,

I changed from TWIMaster to I2CPort. And - it works now! I had also read in this forum, that according to Gunter Rolf once had mumbled somthing about Atmel's poor implemetation of the I2C on their chips - I can confirm that now. I will repeat the testing of the LM75 and the DS75 now with the Soft I2CPort and see, how the results are. This is really interesting!

Thank you for your hints - very helpful!

Michael
Avra
Schreiberling
Avatar
Geschlecht:
Herkunft: Belgrade, Serbia
Homepage: rs.linkedin.com/in…
Beiträge: 656
Dabei seit: 07 / 2002
Betreff:

Re: My LM75 / DS75 Unit

 · 
Gepostet: 26.04.2010 - 04:56 Uhr  ·  #12
I am glad it worked ;-)
  • 1
  • 2
  • Seite 1 von 2
Gewählte Zitate für Mehrfachzitierung:   0

Registrierte in diesem Topic

Aktuell kein registrierter in diesem Bereich

Die Statistik zeigt, wer in den letzten 5 Minuten online war. Erneuerung alle 90 Sekunden.