Customer:
I’m using an LM35DZ LM35 TO-92 temperature sensor and getting readings that don’t seem right. Can you explain where I’m going wrong?
Original message (Croatian)
Molim vas da mi objasnite gdje griješim, koristim senzor temperature LM35DZ LM35 TO-92 i dobivam očitanja iz priloga.
Hvala
Attachment omitted in migration: temp proba.doc
Originally submitted via the contact form on soldered.com on 2 June 2016. Migrated to the forum for community visibility.
Soldered Support:
Try adding a 4k7 pull-up resistor. The delay between readings should be at least 5 seconds. The sensor returns millivolts, which you need to convert to a meaningful value. According to the datasheet, the formula should be:
float temp = (referentniNapon * analognoOcitanje * 10) / 1024;
Original message (Croatian)
Preporučujemo da koristite neki od LM35 librarya. Probajte staviti pull-up 4k7 otpornik, svakako bi pauza između čitanja treba biti duža (5sekundi). Također, senzor vraća milivolte, trebali biste ih pretvoriti u nešto referentno. Prema datasheetu, formula bi bila ovakva: float temp = (referentniNapon * analognoOcitanje * 10) / 1024;