Hello,Zitat von peter02
Pins 5, 6 and 7 are the I2C address selection pins and must be connected to Vcc or GND .
The program uses address 144, this means that pins 5,6 and 7 must be connected to GND.
To connect a 2nd DS1621 you need a different address which can be adjusted with these pins.
Example: for the 2nd DS1621 connect pin5 to GND, pin 6 to GND and pin 7 to Vcc.
This will adjust the 2nd DS1621 address to 146.
I2C Write address of the DS1621:
[1] [0] [0] [1] [A2 pin 5] [A1 pin 6] [A0 pin 7] [0]
As you can see: connecting pin 5,6 and 7 to GND will create I2C address 10010000 -> 144
144 is now the write address and 145 is the read address
Connecting pin 5 and 6 to GND and pin 7 to Vcc will create I2C address 10010010 -> 146
146 is now the Write address and 147 is now the Read address.
The Read address is always the Write address + 1
Greetings,
Drifter2006
Lesezeichen