Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Re: [AVR-Chat] Temperature Sensor Ideas

Re: [AVR-Chat] Temperature Sensor Ideas

2003-12-02 by jay marante

It depends on what kind of output youre looking for
(voltage, current, resistance). Theres also LM135,
LM235, and LM335. There output is proportional to
either celcium, farenheit or kelvin. Ive used LM35
before but only for analog signals.
--- adiy@adis.on.ca <adiy@adis.on.ca> wrote:
> Hi,
> 
> Anybody have some ideas for sensing temperature and
controlling fans 
> depending on temperature? I am thinking about using
PWM to control fan 
> speed and multiple triggers to request fan action,
amongst them feedback 
> from a temperature sensor.
> 
> For sensors I am thinking of using a NTC thermistor,
DS1820 or LM35. To 
> set the threshold levels I could use a potentiometer
attached to an ADC 
> channel or binary coded jumpers/switches. 
> 
> Anything I missed? Anybody knows of app notes or
projects I could peak at 
> to get some ideas to get started? I suspect this
will be my first hands-on 
> AVR project.
> 
> Adi
> 
> 


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

RE: [AVR-Chat] Temperature Sensor Ideas

2003-12-02 by Steven Chang-Lin Yu

There is also some other digital signal temperature sensor from maximum, national…etc. Most of them are either 1wire or 2wire protocol

__________________________________________________________________
Steven Chang-Lin Yu
QUT EESE Student, Computer Technician
ICQ#:
66369374

Current ICQ status:

( Home Tel#: 0401 0436 41
( Work Tel#: 0401 0436 41
+ More ways to contact me
__________________________________________________________________

-----Original Message-----
From: jay marante [mailto:jaythesis@yahoo.com]
Sent: Tuesday, 2 December 2003 3:24 PM
To:
AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Temperature Sensor Ideas

It depends on what kind of output youre looking for
(voltage, current, resistance). Theres also LM135,
LM235, and LM335. There output is proportional to
either celcium, farenheit or kelvin. Ive used LM35
before but only for analog signals.
--- adiy@adis.on.ca wrote:
> Hi,
>
> Anybody have some ideas for sensing temperature and
controlling fans
> depending on temperature? I am thinking about using
PWM to control fan
> speed and multiple triggers to request fan action,
amongst them feedback
> from a temperature sensor.
>
> For sensors I am thinking of using a NTC thermistor,
DS1820 or LM35. To
> set the threshold levels I could use a potentiometer
attached to an ADC
> channel or binary coded jumpers/switches.
>
> Anything I missed? Anybody knows of app notes or
projects I could peak at
> to get some ideas to get started? I suspect this
will be my first hands-on
> AVR project.
>
> Adi
>
>


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


To unsubscribe from this group, send an email to:
AVR-Chat-unsubscribe@yahoogroups.com



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 21/11/2003


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.543 / Virus Database: 337 - Release Date: 21/11/2003

Re: Temperature Sensor Ideas

2003-12-02 by phisatho

In MCUs DS18S20 is a much better solution than LM35 since it gets rid 
of the inaccuracies assiciated with ADC (though it is slightly 
expensive).
Resolution upto 0.0625 DegC can be obtained.
It comes calibrated and the output is digitized - no further 
calibration is required.
it comes in TO-92 package (the popular small transistor pack) which is 
very handy to integrate into a probe or similar application (ofcourse 
LM35 also comes in TO92).
NTC may turn out to be a headache on linearization (calibration).
If you are not worried about the precise reading, you can go for a 
thermistor(NTC/PTC)without linearization - but you need a current 
source to convert the resistance to a voltage and again the nuances 
associated with ADC.
The preference shall be DS18S20, LM35 & Thermistor in that order.

Instead of pot, you can use three buttons - UP, DOWN & ENTER if you 
have a means to display the setting - like LCD, 7 seg LED or Terminal.
If you are going for a blind controller then Pot is the solution.

A combination of DS18S20 and buttons will allow you to use AVRs 
without ADC like 2313

Compilers like FASTAVR, CODEVISION, BASCOM etc provide sample code for 
DS18S20, PWM, ADC etc.
Only you have to adopt codebits from different examples.
It just depends on your compiler

--- In AVR-Chat@yahoogroups.com, "Steven Chang-Lin Yu" <stevenyu@p...> 
wrote:
> There is also some other digital signal temperature sensor from 
maximum,
> national
etc.  Most of them are either 1wire or 2wire protocol
Show quoted textHide quoted text
> 
>  
> 
> __________________________________________________________________
> Steven Chang-Lin Yu
> QUT EESE Student, Computer Technician
> ICQ#: 66369374
> 
> 
> Current ICQ status:  
> 
> 
> 
> * Home Tel#:  0401 0436 41
> * Work Tel#:  0401 0436 41
> *  HYPERLINK "http://wwp.icq.com/66369374"More ways to contact me 
> __________________________________________________________________
> 
> -----Original Message-----
> From: jay marante [mailto:jaythesis@y...] 
> Sent: Tuesday, 2 December 2003 3:24 PM
> To: AVR-Chat@yahoogroups.com
> Subject: Re: [AVR-Chat] Temperature Sensor Ideas
> 
>  
> 
> It depends on what kind of output youre looking for
> (voltage, current, resistance). Theres also LM135,
> LM235, and LM335. There output is proportional to
> either celcium, farenheit or kelvin. Ive used LM35
> before but only for analog signals.
> --- adiy@a... <adiy@a...> wrote:
> > Hi,
> > 
> > Anybody have some ideas for sensing temperature and
> controlling fans 
> > depending on temperature? I am thinking about using
> PWM to control fan 
> > speed and multiple triggers to request fan action,
> amongst them feedback 
> > from a temperature sensor.
> > 
> > For sensors I am thinking of using a NTC thermistor,
> DS1820 or LM35. To 
> > set the threshold levels I could use a potentiometer
> attached to an ADC 
> > channel or binary coded jumpers/switches. 
> > 
> > Anything I missed? Anybody knows of app notes or
> projects I could peak at 
> > to get some ideas to get started? I suspect this
> will be my first hands-on 
> > AVR project.
> > 
> > Adi

Re: [AVR-Chat] Re: Temperature Sensor Ideas

2003-12-02 by Mike Harrison

On Tue, 02 Dec 2003 10:26:03 -0000, you wrote:

>In MCUs DS18S20 is a much better solution than LM35 since it gets rid 
>of the inaccuracies assiciated with ADC (though it is slightly 
>expensive).
>Resolution upto 0.0625 DegC can be obtained.
>It comes calibrated and the output is digitized - no further 
>calibration is required.
>it comes in TO-92 package (the popular small transistor pack) which is 
>very handy to integrate into a probe or similar application (ofcourse 
>LM35 also comes in TO92).
>NTC may turn out to be a headache on linearization (calibration).
>If you are not worried about the precise reading, you can go for a 
>thermistor(NTC/PTC)without linearization - but you need a current 
>source to convert the resistance to a voltage and again the nuances 
>associated with ADC.
>The preference shall be DS18S20, LM35 & Thermistor in that order.

Unless you are going to production where cost is an issue, in which case the order of preference is
the reverse. 
Thermistors are very cheap, and their nonlinearity etc. can be taken care of in software easily
enough.

Re: [AVR-Chat] Re: Temperature Sensor Ideas

2003-12-02 by Adi Linden

> Instead of pot, you can use three buttons - UP, DOWN & ENTER if you 
> have a means to display the setting - like LCD, 7 seg LED or Terminal.
> If you are going for a blind controller then Pot is the solution.

There is no display attached. So I need some means of setting the 
temperature. A pot would require bringing the temperature probe 
to the desired threshold temperature and then making the setting.
Another thought was to user DIP switches. Example  7 dip switches 
could cover set a temperature between 0 and 128 Celsius in 1 degree
steps.

I have all of the various temperature sensors I mentioned on hand. To
me it's a matter of pursuing the solution that's easiest to deal with
in software. I also have ATtiny26 on hand. So the ADC is there, but I 
don't have to use it.

Adi

Strange behaviour of Bascom

2003-12-02 by Doug Locke

Hello everyone, I have been having some strange problems with programming a 8515 chip using Bascom and a STK500 and hope that someone may have a clue as to why.
I compile a program in Bascom without any errors and then opt to program the 8515 chip in the STK500.
A Dos window appears and the erasing and checking proceeds fine.
Next the programming starts and then stops with the FAILED message and the Dos window closes and reverts back to Bascom.
The STK500 shows an error condition and the program does not run.
If I try and program again with the same program, the DOS window opens and closes with a FAILED message straight away and the program now runs as it should.
If I use CAVR or AVR STUDIO directly with the the Bascom generated hex file, the chip programs ok and all is fine.
Any ideas appreciated as I have a finite amount of hair left to tear out!
Doug Locke

Re: Temperature Sensor Ideas

2003-12-03 by phisatho

Without a display, UP/DN buttons are out of the picture.
DIPSwitch is a good idea.
Just see that your MCU have sufficient free port pins - 7pins must be 
sufficient (depending on the range).
If you have all of them, simply go for DS18S20.
Timing is critical for 1-wire bus of DS18S20.
So dont try to write your own code in the begining.
Sample code is available for most compilers.


--- In AVR-Chat@yahoogroups.com, Adi Linden <adiy@a...> wrote:
> > Instead of pot, you can use three buttons - UP, DOWN & ENTER if 
you 
> > have a means to display the setting - like LCD, 7 seg LED or 
Terminal.
> > If you are going for a blind controller then Pot is the solution.
> 
> There is no display attached. So I need some means of setting the 
> temperature. A pot would require bringing the temperature probe 
> to the desired threshold temperature and then making the setting.
> Another thought was to user DIP switches. Example  7 dip switches 
> could cover set a temperature between 0 and 128 Celsius in 1 degree
> steps.
> 
> I have all of the various temperature sensors I mentioned on hand. 
To
> me it's a matter of pursuing the solution that's easiest to deal 
with
> in software. I also have ATtiny26 on hand. So the ADC is there, but 
I 
Show quoted textHide quoted text
> don't have to use it.
> 
> Adi

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.