|
Topic: Thermo-snake
|
| Author |
Post |
|
tony18m
3 posts
 Popping In
|
29-07-2008 20:36
I have just built a thermo-snake (June 2008 Elektor) programmed a blank PIC 18F2550 from a PicKit2 programmer and loaded the NET_Thermo v.1.1 application. The circuit is able to find a DS18B20 sensor located along a few cm of wire, but initially could only read back a temperature of 127.9. Doing some diligent searching with Google, I found that the French Elektor forum had some posts about this - apparently the 4K7 pull-up resistor is too high, and a 2K2 is suggested. I have experimented with various resistors in parallel with the existing 4K7 down to 1K8. The PIC or temp sensor always seems to be able to pull down the 1 wire line to 100mV or less even with the 4K7/1K8 combination (= 1.3K), and the upper level is always around 5V down to 4.2V. The circuit only works sometimes - I don't get the 127.9 reading, but very often get 85 alternating with the correct temperature. I have tried several DS18B20s and the results are similar. Could there be a problem with the timing in the firmware? Has anyone else seen this behaviour? Tony
|
|
tony18m
3 posts
 Popping In
|
30-07-2008 21:30
Answering my own post. I found a second problem - I re-read the DS18B20 datasheet, and saw that the Vdd connection had to be grounded for parasitic power operation - I was only connecting to 2 of the pins - ground and DQ. Now the sensors produce the correct readings continually. Note that it still needs the lower value pull-up resistor else you get only 127.9. Tony
|
|

Elektor Editor
584 posts
 Power User
|
01-08-2008 10:35
Thanks for reporting on the project Tony and glad to read that it's working now. The expected connection of the DS18B20 is explained in the article (including Figure 2) and 'forced' by K3 on the PCB. The project has received a lot of interest from readers. We confirm that in some cases it may be necessary to lower the value of R2 to 2.2 kohms -- see the Corrections & Updates tab on the Thermosnake project page (June 2008). Jan
|
|
tony18m
3 posts
 Popping In
|
04-08-2008 19:03
I did some temperature tests on a sensor, and have discovered that the NET_THERMO code displays the wrong temperature below 0 deg C. The data sheet for the DS18B20 shows that the ADC is a signed two's complement number, so below 0 deg C 4096 needs to be subtracted from the reading to display the correct temperature. The software actually displays it as -(reading) whereas it should be (reading-4096). I note that the log file shows that temperatures below 0degC have two '-' signs before the number - I wonder if that confuses things - Excel shows the values as +ve. As a matter of interest, I tried putting the sensor in cold nitrogen just above a layer of liquid nitrogen, and it still works down to -127C - way below the spec of -55C. It still seems to be doing something below -127 but the value changes to a small positive number which reduces from 126.6 down to 106 when the N.R. (no reply) value is returned. Warming up gives the same sequence, so the sensor was not damaged by this brutal treatment. Thanks Jan - I had overlooked the Corrections tab. Tony
|
|
John-H
4 posts
 Popping In
|
07-08-2008 13:26
Hi there It also appears that the code in the download file 070122-11.zip e is for the Microchip C18 compiler NOT the MikroElektroika MikroC as stated in the magazine. Can anyone confirm this? Regards John
|
|
Taurus2
1 post
 Popping In
|
09-08-2008 16:26
[Taurus2 is Carlo Tauraso, the designer of the project] I've developed a new release (v1.2) of NET-THERMO that fixes the negative temperature value problem and replaces the log file separator character. During temperature monitoring you can find the data packet in the StatusBar. So, have a look at the attached image (form-new.tiff) in order to understand the temperature conversion process. The transmitted data packet is 254 136. Convert it to bin: 11111110 10001000. To calculate the real value, invert it by replacing all the 1s by 0 and 0s by 1, 00000001 01110111 and then add 1. The result is:101111000 bin = 376 dec. Multiply it by 0,0625 and you have 23,5 C the correct negative temperature value. I confirm that the firmware is for Microchip C18 Compiler. Some DS18B20s need more current using parasite power, so you can reduce the R2 resistor value till the minimum limit of 1,5K. For long lines and many slaves it should be necessary to use an external FET as explained in the article. The thermo-snake needs only two wires because you connect together Vdd and Gnd directly on the sensor. Thanks to Tony18M and John-H for their contributions.
Post edited by Elektor Editor
on 12-08-2008 08:33 Post edited by Elektor Editor
on 12-08-2008 08:38
|
|

Elektor Editor
584 posts
 Power User
|
12-08-2008 08:37
Availability of the updated version of the NETTHERMO software will be announced on the Corrections & Updates tab of the ThermoSnake project page (June 2008). Thanks everyone for their contributions. Jan
|
|
Multicopy
2 posts
 Popping In
|
27-10-2008 19:21
I have just downloaded the 070122-11.zip, and it contains just a single *.msi file dated as of 10.10.2008 with no source code or *.hex file. After instalation, only the NET-THERMO.EXE is installed.
Please advise.
Post edited by Multicopy
on 27-10-2008 19:22
|
|
DIYer
1 post
 Popping In
|
28-10-2008 04:30
The new software file does not contain any hex file, source files, both
pic and pc. Can anyone help to give me a link for downloads ? Or you can email me with the files attached. My email is dleung98@hotmail.com. Thanks a million.
|
|
sarma
199 posts
 Diehard
|
29-10-2008 13:48
For simple projects, they may provide the source code or hex file
Complex and full fledged projects expect the DIYers like me and you to start learning how to write software or perhaps pay for a pre-programmed (locked though) chip.
Post edited by sarma
on 30-10-2008 13:27
|
|
Vladosh
2 posts
 Popping In
|
30-10-2008 08:19
Help me!
Distinguished editorial, why not source - firmware and software for PC?
Post edited by Vladosh
on 30-10-2008 16:44 Post edited by Vladosh
on 30-10-2008 16:44
|
|
Vladosh
2 posts
 Popping In
|
30-10-2008 08:22
Distinguished editorial, why is not possible to obtain the source code of firmware and software for PC?
This undermines the credibility of such a distinguished magazine ... : (
|
|
Multicopy
2 posts
 Popping In
|
31-10-2008 19:18
I switched to PIC USB bit whacker project instead and got it working from scratch in two hours.
|
|
bb
1 post
 Popping In
|
30-01-2009 10:22
I am using the thermo snake project to monitor temperatures over a day and I'm finding the amount of data being logged makes producing graphs difficult - can anyone advise me on how to increase the timing between logged temperatures (to 10 seconds) in the software? or alternatively has anyone developed a software program for the project that they would be prepared to share? Kind regards,
Brett.
Post edited by bb
on 30-01-2009 10:23
|
|
Ciaran55
3 posts
 Popping In
|
29-07-2009 12:53
Ok I did a pretty dumb thing and conneceted some DS18B20's together using 2 core wire before first reading in thier 64 bit codes separately into Net Thermo.
My question is there anyway now that I can set up these sensors now that they are attached and cant be placed in 3 pin slot on PIC?
cheers
|
|
Ciaran55
3 posts
 Popping In
|
29-07-2009 13:16
sorry does anyone know of a way to use teh DS18B20's direct with a datalogger ?
again thank you
|
|
Ciaran55
3 posts
 Popping In
|
12-08-2009 12:34
Hi just small question about Net-Thermo software. I have 12 sensors connected and it reads them perfectly one after the other but it reads each one/second. I am hoping to read all 12 in 1 second,any advice on this?
Thank you
Ciaran
|
|
epelijkl
5 posts
 Popping In
|
20-09-2009 14:32
How long is your wire?
I found a problem that the maximum length of the twin wire was only 30 m. That is too short for my purposes.
Does anyone know wha tis maximum length of wire ? What tricks there are to lenghten the wire.
regards
Kimmo
|
|
tonyfelloni
1 post
 Popping In
|
17-08-2010 19:53
Is it possible to use this program with windows 7? I have it working with my circuit through XP but it fails to recognise the device when I use the same through windows 7.
|