Arduino Mega 2560 with w5100 Multiple DS18B20

Initializing Temperature Control Library Version 3.7.2
[57] Getting IP...
[6734] IP:192.168.1.9
[6735] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.4.8 on Arduino Mega

[6846] Connecting to blynk-cloud.com:8442
[7074] Ready (ping: 36ms).
Number of Devices found on bus = 0
Getting temperatures... 
Probe 01 temperature is:   C: 0.00 F: 32.00
Probe 02 temperature is:   C: 0.00 F: 32.00
Probe 03 temperature is:   C: 0.00 F: 32.00
Number of Devices found on bus = 0
Getting temperatures... 
Probe 01 temperature is:   C: 0.00 F: 32.00
Probe 02 temperature is:   C: 0.00 F: 32.00
Probe 03 temperature is:   C: 0.00 F: 32.00
Number of Devices found on bus = 0
Getting temperatures... 
Probe 01 temperature is:   C: 0.00 F: 32.00
Probe 02 temperature is:   C: 0.00 F: 32.00
Probe 03 temperature is:   C: 0.00 F: 32.00
Number of Devices found on bus = 0
Getting temperatures... 
Probe 01 temperature is:   C: 0.00 F: 32.00
Probe 02 temperature is:   C: 0.00 F: 32.00
Probe 03 temperature is:   C: 0.00 F: 32.00
Number of Devices found on bus = 0
Getting temperatures... 
Probe 01 temperature is:   C: 0.00 F: 32.00
Probe 02 temperature is:   C: 0.00 F: 32.00
Probe 03 temperature is:   C: 0.00 F: 32.00
Number of Devices found on bus = 0
Getting temperatures... 
Probe 01 temperature is:   C: 0.00 F: 32.00
Probe 02 temperature is:   C: 0.00 F: 32.00
Probe 03 temperature is:   C: 0.00 F: 32.00
[13255] Connecting to blynk-cloud.com:8442
1 Like

Hmmm but if you use the pin 47 the Serial monitor shows three sensors detected and three relatively differing readings?

How about adding in a pinMode() command into your above codes setup()

pinMode(51, INPUT);

Hey… I just checked the specs on your ethernet shield…

Arduino communicates with both the W5100 and SD card using the SPI bus (through the ICSP header).
This is on digital pins 11, 12, and 13 on the Duemilanove and pins 50, 51, and 52 on the Mega. On both
boards, pin 10 is used to select the W5100 and pin 4 for the SD card. These pins cannot be used for
general i/o. On the Mega, the hardware SS pin, 53, is not used to select either the W5100 or the SD card,
but it must be kept as an output or the SPI interface won’t work.

Looks like you still need to find another unused pin :slight_smile:

1 Like

Ah of course.

If i want to change from farenheit to celsius
Howe do i do that
Best regards gurra

Google has the answer.