Does any one have any suggestions please.
I have 4 18B20 reading temperature. 3 working 100% the 4 one returns 85. Following is a print
44.9,48.4,47.6,85.0
My ,h files
#include <OneWire.h>
#include <DallasTemperature.h>
#include <avr/wdt.h>
#include "RTClib.h"
uint8_t sensor1[8] = { 0x28, 0xA9, 0x1B, 0x85, 0x11, 0x20, 0x06, 0x7D }; //
uint8_t sensor2[8] = { 0x28, 0x7D, 0x3D, 0x52, 0x11, 0x20, 0x06, 0x86 }; //
uint8_t sensor3[8] = { 0x28, 0xA9, 0x1B, 0x85, 0x11, 0x20, 0x06, 0x7D };
uint8_t sensor4[8] = { 0x28, 0xE7, 0x9C, 0x75, 0xD0, 0x01, 0x3C, 0xCD }; // Manifold
code in setup:
sensors.begin();
delay(300);
My code in loop()
TempGD = sensors.getTempCByIndex(0);
PrevGTempD1 = TempGD;
delay(990);
HoldingTTempGD = sensors.getTempCByIndex(1);
PrevGTempD2 = HoldingTTempGD;
delay(990);
ManifoldTempGD = sensors.getTempCByIndex(3); // was 2
PrevGTempD3 = ManifoldTempGD;
delay(990);
AmbiantTepGD = sensors.getTempCByIndex(2); // was 3
PrevGTempD4 = AmbiantTepGD;
delay(990);
The first three works 100% The 4 returns 85. I tried 4 new/different ones and they all do the same return 85.
I can read it first second third or 4th I only get 85.
I can increase the delay shorten it. I only get 85.
I replaced the resitor (4k7) re wired the 4 stereo jacks that I use to connect the devices.
Checked the PS . Only thing I did not do is to jump. But I did drive to the clif
Many thanks
Can some one please help me out of my "misery" .