I want to read multiple DS1820 sensors using a Due. I have circuitry and sketch working happily on a Mega: but I wanted to check that it would be safe for my Due.
Clearly, the data pullup needs to be to 3.3v rather than 5v. But there are several suggestions that the Vdd for the Onewire network could be at 5v without problems because it has an "open drain" (beyond my expertise). Indeed, reading the Dallas paper on power requirements (http://pdfserv.maximintegrated.com/en/an/AN4255.pdf, it looks as if 5v would be far better for multiple sensors on reasonably long cabling if it is safe for the Due.
So, I tested my setup on my Mega, with 5v supply (well, 4.8 to be more accurate) on the Vdd pin and a 4k7 pullup to 3v3 on the data line.
The program runs fine on the Mega with a 3.3v pullup. But when I put a scope on it, the picture is less happy: the Onewire Data signal mostly oscillates between 0v and 3.3v but perhaps one peak in four goes up to 4.7v (screenshot at http://winster.org/DS1820mixedvoltages.png ). Same for several different DS18b20's.
With no DS1820 connected, the Onewire pin on the Mega sits happily at 3.3v so it doesn't look like any internal pullup issue: it does look as if there is some feedback of the 5v via the Onwire Data line.
Can anyone offer insights and recommendations?