I2C 1 WIRE click - example

preview_player
Показать описание
I2C 1-Wire click™ carries DS2482, a “bridge device” that performs bidirectional conversions between I2C masters and 1-Wire slave devices. These can be EEPROM chips, temperature sensors and similar devices that have momentary high source current modes. I2C 1-Wire click™ enables any host with I2C to generate properly timed 1-Wire waveforms to its slave devices. The I2C interface (mikroBUS™ SCL and SDA pins) supports both standard I2C (100kHz max) and fast (400kHz) communication speeds. In addition to the mikroBUS™ socket, I2C 1-Wire click™ has an 8-channel pinout (each pin an independently operated 1-Wire I/O). The board is designed to use either a 3.3V or 5V power supply.
Рекомендации по теме
Комментарии
Автор

Which command from OneWire.h is used to identify which DS18B20 is disconnected?
I have 3 DS18B20's connected to pin 2 on an UNO and each is collecting temperature as expected.
I used the address finder from:
However, if I pull 1 or 2 of the sensor data pins something unexpected happens:
I assume that if the data pin of addressed sensor becomes disconnected, this will be
 flagged with present( the byte returned from ds.reset) being 0. This seems to be true
 only if all items on the onewire bus are disconnected.  Below is the piece of code:
  present = ds.reset();
  ds.select( DS1820addr[0]);
  ds.write(0xBE);    // Read scratchpad
   Serial.print("P=");
   Serial.print( present, HEX);
   Serial.print(" ");
Also, what is the syntax of the command.?

johnnash