- Thu Feb 18, 2016 1:35 pm
#41389
Well PhilHornby, you're actually right. After improving my schema, adding 10k resitors between the en pin and 3.3v and adding another 10k resistor between gpio15 and gnd, I still had the same voltage loss issue.
I then wired both data pins of the ds18b20 to gpio5, and added a 4.7k resistor between the data lines and 3.3v, as suggested in this excelent tutorial:
http://www.tweaking4all.com/hardware/ar ... re-sensor/ Unfortunately, still the same problem. I then soldered loose one of the ds18b20 sensors, and all of a sudden my problem was gone. I was starting to think my Chinese friends made a mistake with the wire colors of the sensor )it´s one of those waterproofed ones, like
this) and soldered the sensor back on, this time with the vcc and gnd wires the wrong way around.
what do you know, it worked! I can now read the temperatur from both sensors!
so if anyone ever encounters this issue, there are ds18b20 sensors around with this kind of wiring:
yellow: data
black: vcc
red: gnd