Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: 2 x DS1612 Temperature Kategorie: Programmierung Basic (von Windt H.J. - 5.02.2006 13:30)
 Als Antwort auf Re: 2 x DS1612 Temperature von Hans - 5.02.2006 13:04
AHA!
Now I know why you are getting a lot of I2C Errors!
You have not connected pins 5, 6 and 7.
Pins 5, 6 and 7 are the I2C address selection pins and must also be connected to Vcc orGND.
My example program reads from address &h90, this means that pins 5,6 and 7 must also be connected to GND.

To connect a 2nd DS1621 you need a different address which can be adjusted with these pins.
Example: for the second DS1621 connect pin5 to GND, pin 6 to GND and pin 7 to Vcc.
This will adjust the second DS1621 address to &h92.

I2C read 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 read address 10010000 -> &h90

Connecting pin 5 and 6 to GND and pin 7 to Vcc will create I2C address 10010010 -> &h92

If you follow the above then a can create an example for reading 2 DS1621Â’s.

Greetings,
H.J. Windt

> Hallo
>
> I want to measure 2 temp. and store it in the CF card.
> One of them is the temperature outside. For this I need a cable of +/- 8 meters.
> I donÂ’t know anything of a 12C Expander. But I want to know more about this.
>
> I have connected 1 ds.1621 and pin1 on port9, pin2 on port10,pin4 on min and pin5 on +5volt thatÂ’s all.

 Antwort schreiben

Bisherige Antworten:

Re: 2 x DS1612 Temperature (von Windt H.J. - 5.02.2006 14:05)
    Re: 2 x DS1612 Temperature (von Hans - 5.02.2006 15:39)
        Re: 2 x DS1612 Temperature (von Hans - 5.02.2006 15:40)
            Re: 2 x DS1612 Temperature (von Windt H.J. - 5.02.2006 16:52)
                Re: 2 x DS1612 Temperature (von Hans - 5.02.2006 17:33)
                    Re: 2 x DS1612 Temperature (von Windt H.J. - 5.02.2006 17:41)
                       Re: 2 x DS1612 Temperature (von Windt H.J. - 6.02.2006 13:17)
                          2 x DS1621 v1.3 (von Windt H.J. - 6.02.2006 13:35)
                             Re: 2 x DS1621 v1.3 (von Hans - 8.02.2006 17:55)
                                Re: 2 x DS1621 v1.4 (von Windt H.J. - 8.02.2006 19:13)
                                   Re: 2 x DS1621 v1.4 (von Hans - 8.02.2006 20:00)