DS18B20 one wire sensor

Questions on other types of hardware and getting it talking to the ARM CPU
YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

DS18B20 one wire sensor

Postby YahooArchive » Thu Oct 25, 2012 9:46 pm

A quick Google search for 1820 code found this C code. It's not Basic but
you can deal with it.



http://www.siwawi.arubi.uni-kl.de/avr_p ... index.html



Has anyone any code to share for reading the DS18B22 / DS18b20 1 wire
temp sensor ??

YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

Re: DS18B20 one wire sensor

Postby YahooArchive » Thu Oct 25, 2012 9:47 pm

--- 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

TobiasNoble
Posts: 1
Joined: Tue Dec 24, 2013 10:51 am

Re: DS18B20 one wire sensor

Postby TobiasNoble » Tue Dec 24, 2013 10:53 am

GENERAL TOOLS AQ150 Digital Aquarium Thermometer
Displays ambient & remote temperature
Min/max temperature memory
High/low temperature alarm
Jumbo digital display
Room & outer sensor temp. switch
F/C switch
Backlight
Foldaway stand
Specifications:
Ambient temperature range: 14 to 122 F (-10 to 50C)
Remote temperature range: -58 to 158 F (-50 to 70 C)
Resolution: 0.1
Accuracy: 1.8 F (1 C)
Sampling rate: 10 second
Cord length: 10 ft.
Display size: 1.88” x 0.82”
Dimensions: 2.87” x 2” x 0.6”
Power source: 1 “AAA” battery
Supplied With:
Battery
Velcro mounting tape
Digital thermometer


Return to “Other Hardware interfaces”

Who is online

Users browsing this forum: No registered users and 1 guest