Help please with connect DS2450 to Omega-2 +
-
Are you supplying Vdd (3.3V) power to DS18B20 (test #2) or
just using parasitic power (test #1)?
-
@ccs-hello
I supplying DS18B20 power 3.3 v. No parasitic power.
-
Now it's the hardware thing.
I'd recommend PCA9306 and using its SDA (bidirectional) channel.
MOSFET based level shifter is just a hack.
-
@ccs-hello
I connected the DS18B20 according to this diagram:
And everything works.So, the problem in the DS2450?
-
Figure 1 in post 1 needs a 4k7 pull up resistor on A/D's 1-wire data pin.
1-wire is using open-drain bus for communications.
-
@ccs-hello
I added a 4.7-kOm resistor to the circuit, Omega sees the ADC, but does not read the data from it. Maybe the data should be read somehow differently?root@Omega-D90D:~# cat /sys/devices/w1_bus_master1/w1_master_slaves 20-0000000a2208 root@Omega-D90D:~# cat /sys/devices/w1_bus_master1/20-0000000a2208/w1_slave cat: can't open '/sys/devices/w1_bus_master1/20-0000000a2208/w1_slave': No such file or directory
-
One thought:
find a 5V I/O tolerable Linux box (full fledged LINUX implementation would be better), retest the 1-wire code on that A/D chip.No 5V - 3.3V bi-direction level shifter in the interconnect.
===
Or ask the author of the custom 1-wire code.
-
@ccs-hello
In datasheet on DS2450 written different commands. But I do not know how to introduce them.
-
@CAP-33 In WHAT?
-
@William-Scott
In datasheet