-->
Page 1 of 2

DS18S20 ??

PostPosted: Sat Dec 20, 2014 6:06 am
by RogerClark
Is there any C code for this temperature sensor. I see the the Lua bin has this built in, but AFIK the Lua source has not been released.

I'd like to use this module, but not using Lua

Re: DS18S20 ??

PostPosted: Sat Dec 20, 2014 9:38 am
by alonewolfx2
i attached example source code from CHERTS eclipse ide examples.

Re: DS18S20 ??

PostPosted: Sat Dec 20, 2014 2:22 pm
by RogerClark
Excellent.

Thankyou

Re: DS18S20 ??

PostPosted: Tue Dec 23, 2014 5:41 am
by PuceBaboon
RogerClark wrote:Is there any C code for this temperature sensor. I see the the Lua bin has this built in, but AFIK the Lua source has not been released.

I'd like to use this module, but not using Lua


Roger,

There's a whole bunch of code on the Dallas/Maxim website, but it's difficult to find nowadays
(dalsemi.com seems to have gone away :-( ) .
Try this for starters:-

http://pdfserv.maximintegrated.com/en/an/AN126.pdf

There's a package somewhere with tons of code for various micros. It included a fairly general
8-bit implementation for the 8051 (if I remember correctly) which could be very easily adapted
for other microcontrollers.

-John-