--- In
ARMexpress@yahoogroups.com, "Ol' Dave" <ruben@...> wrote:
> Has anyone any code to share for reading the DS18B22 / DS18b20 1 wire
> temp sensor ??
> RD
In addition to Dennis' suggestion, I can also offer up that I think
that Cam Thompson of Micromegacorp has developed an ARMbasic library
around his uM-FPU which has a tutorial on the use of a DS1620 temp
sensor with a Coridium ARMexpress/ARMmite. I am guessing that the
1620 & 1820 are probably from a very similar lineage, but not 100% sure...
From the tutorial:
Now that we've introduced some of the basic concepts of sending
instructions to the uM-FPU chip, let's go through a tutorial example
to get a better understanding of how it all ties together. This
example takes a temperature reading from a DS1620 digital thermometer
and converts it to Celsius and Fahrenheit.
While the tutorial is geared around the use of the uM-FPU in an
ARMbasic v6/v7 environment, the application of the simple math that
the conversions require should be able to be extrapolated to proper
ARMbasic constructs, negating the requirement of the uM-FPU, in using
the temp sensor.
Don't get me wrong, I make use of the uM-FPU quite heavily in my
navigation routines. It is a great product and compliments the
Coridium product line nicely. If you find that you're interested in
it, then you'd be well served in procuring one and making use of it in
your project(s).
Good luck. Take care.
-t