<a href=showthread.php?s=&postid=12943099#post12943099 target=_blank>Originally posted</a> by BeanAnimal
To add to what Mark said, the DS18S20 is a digital sensor that needs to be triggered to take a sample... you can't just hook it up and read continuous data from it like the analog sensors. The "internal conversion" is this sampling process. The sensor is triggered, it does a conversion and write the data to the scratchpad so that the user can read it. If you don't do a conversion, then you are reading whatever was on the scratchpad last.
Bean
Yeah, after I re-read what I posted, i realized how wrong my earlier post was. I should have stated I was doing the non-parasitic mode.
To be honest, with this particular device, I'm using the open-sourced One-Wire libraries for the Arduino (
link here) . So I don't have a high-level of understanding as to what's going on behind the scenes.
What I do understand is that I'm basically polling the bus for the devices, selecting an address and doing a read of the data in the scratch pad.
My command set is *very* limited at this point on these, I'm not using any of the temperature alarm functions... Though the more I think about how this is all turning out, I may want to, and see if there is a way to tie these into some sort of Interrupt sequence..
As I mentioned this is my first microcontroller project, so I'm still wrapping my head around all of the possibilities that these things enable.. I usually work with simple OpAmps like the LM3875/4780 and similar devices, so all this is still pretty new to me.
I'm still doing the PWM v.s. on/off debate in my head for the TEC. I may just go on/off since I don't have a MOSFET laying about and "The Boss" is starting to raise eyebrows every time another digi-key box shows up at the house. I have a basic on/off relay circuit already and a handful of relays, so this just may be the easier route.