Im Forum und im Wiki
-
Thread
Atmega8 - DS1621 auslesen ( über TWI[ i2c]) Gesperrt
location C:\TempDS1621\default\TempDS1621.elf gcc plug-in: Error: Object file not found on expected location C:\TempDS1621\default\TempDS1621.elf Hab das Projekt genauso aufgebaut wie im Link...
) aus der Library aufaddiert. In deinem Code ist eine andere Definition, nämlich #define DS1621_Write 0x9E #define DS1621_Read 0x9F Das wäre OK, wenn A0, A1 und A2 auf *Vcc* hängen. Bei A0, A1 und A2 auf GND ist dort anzugeben: #define DS1621_Write 0x90 #define DS1621_Read 0x91
-
Thread
Temperatursensor DS1621 über I²C ansteuern
a command protocol. After receiving this protocol, the DS1621 will issue an acknowledge, and then the master may send data to the DS1621. If the DS1621 is to be read, the master must send the command protocol as before, and then issue a repeated START condition
control byte again, this time with the R/W bit set to 1 to allow reading of the data from the DS1621. The command set for the DS1621 as shown in Table 3 is as follows:
-
Thread
Atmega16, Ds1621, Display
delay.h> #include "i2cmaster.h" #include "twimaster.c" #define F_CPU 16000000L #endif #define DS1621_Write 0x90 #define DS1621_Read 0x91 void ds1621_einschalten() { i2c_init(); i2c_start(DS1621_Write); i2c_write(0xEE); i2c_stop();
: Als Quelldatei ins Projekt aufnehmen #include "twimaster.c" // Hardware: A0, A1 und A2 am DS1621 mit GND verbunden #define DS1621_Write 0x90 #define DS1621_Read 0x91 void ds1621_einschalten(void) { i2c_init(); i2c_start(DS1621_Write); i2c_write(0xEE); i2c_stop(); i2c_start
-
Thread
Was sind das für Bauteile?
Peter K. wrote: > Das habe ich schon durchgelesen und werde den DS1621 Sensor verwenden, > da der A/D-Wandler eingebaut ist. > > Oder würdest du hier was besseres empfehlen? Ich wuerde nehmen, was verfuegbar ist :-) Hast Du ne Bezugsquelle fuer den DS1621?
Achso: Du kannst den DS1820 nicht ohne Weiteres durch den DS1621 ersetzen. Der DS1820 verwendet den 1-Wire-Bus von Maxim, der DS1621 den I2C-Bus.
-
Thread
PIC16F887 auf MC2V0 - I2C
dem Datenblatt gehalten. Ich initialisiere den Baustein direkt nach dem PIC: [c] void init_DS1621(void) { peripherie_I2C(); I2C_Start(); I2C_Send_Data(DS1621_Write); I2C_Send_Data(0xAC); I2C_Send_Data(0x01); //1SHOT Mode Enabled I2C_Stop(); for(unsigned long
zurück und das Datenbyte ist Leer. Alle meine übetragungen entsprechen den im Datenblatt, des DS1621, gezeigten Figuren. (Seite 9) Ich weis es gibt hier im Forum schon genug Artikel zu dem DS1621 und ich habe mich seit meinem letzten Beitrag mit nichts anderem mehr beschäftigt, aber ich finde
-
Thread
I2C-ds1621
wo ist denn besagte 'ds1621_init()' funktion?
,tlow); //set high temperature ds1621_set_temp(chip,0xa1,thigh); //start temperature conversions ds1621_start(chip); //while ((ds1621_get_status(chip) & 0x80)==0); } #if funcused ds1621_temperature_10 int ds1621_temperature_10(
-
Thread
Werte speichern Temperatur (tiefst Wert / höchst Wert)
i2cmaster.h" uint8_t byte_TC74; char cBuffer_TC74[8]; float fMesswert_TC74; uint8_t byte_1_DS1621; uint8_t byte_2_DS1621; char cBuffer_DS1621[10]; float fMesswert_DS1621; int main(void) { while (1) { /***Einlesen des Temparaturbausteins TC74 ***/ lcd_clear
); i2c_stop(); itoa(byte_1_DS1621,cBuffer_DS1621,2); itoa(byte_2_DS1621,cBuffer_DS1621,2); fMesswert_DS1621 = byte_1_DS1621; if(byte_2_DS1621==0x90) fMesswert_DS1621+=0.5; dtostrf(fMesswert_DS1621,4,1,cBuffer_DS1621);
-
Thread
DS1621 mit Arduino Uno in SimulIDE 1.1.0-SR2 at Rev 260312
(9600); Wire.begin(); Serial.println("DS1621 Temperaturmessung startet"); Wire.beginTransmission(DS1621_ADDR); Wire.write(CMD_START_CONVERT); Wire.endTransmission(); } void loop() { // put your main code here, to run repeatedly
> Du weißt aber schon, dass der DS1621 8 Anschlüsse hat? Habe ich in Produktdatenblättern gesehen. In SimulIDE verfügt der Sensor aber nur über 6 Anschlüsse?? Konfigurieren kann man den DS1621 in der Simulationsumgebung auch nicht??