-
Datei
init_system.c
tm_stm32f4_bmp180.h" #include "tm_stm32f4_disco.h" #include "tm_stm32f4_ili9341.h" #include "tm_stm32f4_ds18b20.h" #include "config.h" #include "init_system.h" #include "graphik.h" #include "tools.h" #include "processing.h" // LEDs aktivieren void __attribute__((optimize(0))) Init_Ports() { static uint32_t
in „Organisation der Header und Includes“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
OneWire.h
#endif /************************************************************************ * * readOneWireDS18B20 of DS 18B20 * ************************************************************************/ void readOneWireDS18B20(void); /************************************************************************ * * writeInOneWireDS18B20 of DS 18B20 * write 2 user bytes (temp. threshold hi + lo) in DS18B20 ************************************************************************/ void writeInOneWireDS18B20 (void); /****************
in „Böses One-Wire device“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
C18-BOLT-DS18B20-FARENHEIT.c
// Measure the temperature DS18B20 SENSOR AND SHOWS IN LCD // With 2 integers and 1 decimal. USES A function to get the // Data in a floating point variable. RESTRICTIONS BY // C18 compiler, the function sprintf () or printf () can
in „DS18B20 Tempsensor mit PIC18F - Oszillatorprobleme?“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Themometervergleich__TSiC506-DS18B20.pdf
30 29,8 429,6 W29,4 M29,2 29 28,8 28,6 28,4 28,2 28 27,8 27,6 27,4 27,2 27 26,8 26,6 26,4 26,2 26 25,8 25,6 25,4 25,2 25 24,8 24,6 24,4 24,2 24 23,8 23,6 23,4 23,2 23 22,8 22,6 22,4 22,2 22 21,8 21,6 21,4 21,2 21 20,8 20,6 20,4 20,2 20 16.11.2014 01:00:00 16.11.2014 04:00:00 16.11.2014 07:00:00 16.11.2014 10:00:00
in „DS18B20 Sensor“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Themometervergleich__TSiC506-DS18B20.pdf
30 29,8 429,6 W29,4 M29,2 29 28,8 28,6 28,4 28,2 28 27,8 27,6 27,4 27,2 27 26,8 26,6 26,4 26,2 26 25,8 25,6 25,4 25,2 25 24,8 24,6 24,4 24,2 24 23,8 23,6 23,4 23,2 23 22,8 22,6 22,4 22,2 22 21,8 21,6 21,4 21,2 21 20,8 20,6 20,4 20,2 20 16.11.2014 01:00:00 16.11.2014 04:00:00 16.11.2014 07:00:00 16.11.2014 10:00:00
in „Temperatursensoren DS18B20 -auf- USB (oder TSYS01 - TMP117 - LMT70?)“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Uhr_Temp.asm
index = r20 .def EE_index = r21 .def IRQ_index = r22 .def EE_Adr = r23 .def rawlow = r24 ;Rohwert DS18B20 LSB .def rawhigh = r25 ;Rohwert DS18B20 MSB .equ DQ = 7 ;Datenleitung des Ds18B20 .equ DS_DDR = DDRC ;Port des DS18B20 .equ DS_Port = PortC .equ DS_Pin = PinC .equ LCD = PortB ;LCD-Datenport .equ
-
Datei
messung.c
DS18X20_OK ) { // warten bis Messung fertig ist. DS18S20 braucht die vollen 750ms if (tempID[0] == DS18B20_ID) _delay_ms(DS18B20_TCONV_10BIT); else _delay_ms(DS18S20_TCONV); if ( DS18X20_read_meas( tempID, &subzero,&cel, &cel_frac_bits) == DS18X20_OK ) { TWert = DS18X20_temp_to_decicel(subzero, cel, cel_frac_bits
in „1Wire DS18B20 auslesen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Projekt_Hausautomation-Temperatursensoren.pdf
1 2 3 4 5 6 +3.3V A A Temperaturerfassung 1 J7 2 Power 3.3V 3 D 2 V U4 DQ D N DS18B20 G 1 1 1 2 2 3 3 4 4 5 5 3 J12 J116 7 7 D 2 V U5 8 8 DQ D DS18B20 9 9 G 10 10 1 B 11 11 B 12 12 3 Temperatursensoren DS18b20 D 2 V U6 U3 DQ D DS18B20 GND G NodeMCU1.0(ESP-12E) R6 1 3,3k 1 A0(ADC0)
in „ESP8266 mehrere Temperaturfühler mit Display“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
ADC ausschalten ADCSRA &= ~(1<<ADEN); // Mittelwert zurueckgeben return adcval/ADC_HOT_READS; } // DS18B20 Temperatursensor PROGMEM uint8_t DS18B20IDs[MAXSENSORS+1][OW_ROMCODE_SIZE] = { OW_ID_T01, // 1. DS18B20 OW_ID_T02, // leer OW_ID_Last }; int main(void) { DDRD |= (1 << PD1); // damit ist dann PD1
in „Wetterstation Windrichtung kodieren und dekodieren“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
onewire.c
; //if read high set bit high } _delay_us (46); //recovery time slot return bit; } unsigned char ds18b20_read(void) { unsigned char i; unsigned char data = 0; DDRB &= ~(1 << T_PIN); for(i=8; i>0; i--) { data>>=1; if(ow_read()) { data |= 0b10000000; } } return(data); } void ds18b20_request(void) { ow_reset(); ow_write(DS1820_SKIP_ROM); ow_write(DS1820_CONVERT_T); } int ds18b20_data(void) { ow_reset(); ow_write(DS1820_SKIP_ROM); ow_write(DS1820_READ_SCRATCHPAD); unsigned int temp = ds18b20_read() + (ds18b20_read() >> 8); return temp; }
in „DS18B20 Code funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
B--0193-iar_LP161_E32-868T_konf_und_4x_DS18B20_antworten_b.c
// * E32-868T /DS18B20* // ************************************** // MSP430F1232 // ----------------- // (1) |Test | // (5) |XOUT | // (6) |XIN // E32 M1 |3.0 P1.0| Taster // E32 M0 |3.1 P1.1| n.b. // E32--AUX |3.2 P1.2
in „Sende/Empfangsvorgang mittels nur 1St. µC“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Raspi_temp_Sender.ino
Chantrell http://nathan.chantrell.net // Updated by Martin Harizanov (harizanov.com) to work with DS18B20 // To use with DS18B20 instead of TMP36, a 4K7 resistor is needed between the Digital 9 and Digital 10 of the ATTiny (Vdd and DQ) // To get this to compile follow carefully the discussion here: http
in „RFM 12B SP Rev.1 mit 5V oder nicht ?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
hmi.c
PrecenceAck = 1u; uint8_t lu8_Crc = common_Dallas_Crc(Owaf_gau8_Data, 9); if(0u == lu8_Crc) { owaf_Ds18b20_StructTemp(&Hmi_gs8_TempInt, &Hmi_gu8_TempDec, Owaf_gau8_Data); fifo_DisplayTemp(&mt_UartTransmitFifo, Hmi_gs8_TempInt, Hmi_gu8_TempDec); fifo_putv(&mt_UartTransmitFifo, "*C;"); //Hmi_gau8_Ds18b20
in „1 Wire manche Teilnehmer antworten nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
IRQ.c
endif // #ifdef DHT_T_LINE } #endif #endif // #ifdef MY_HUM_SENSOR #ifdef ONE_WIRE_BUS_1 if(uint16_ds18b20_update_time) uint16_ds18b20_update_time--; #ifdef DS__T_LINE if(uint16_ds18b20_show_upd_flag & uint16_ds18b20_update_time) uint16_ds18b20_show_upd_flag--; if(!uint16_ds18b20_show_upd_flag) menu[HAUPT_SCREEN
in „Entprellen Flankenerkennung“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Readme_130816.pdf
Interrupts programmierbar (INT0/INT1) - 4x Eingänge als 10-Bit ADC - 6x Eingänge zum Auslesen von DS18B20 Temperatursensoren - 1x TWI-Bus, der als TWI-Master / TWI-Slave arbeitet - Die Stromaufnahme des ATMega beträgt im Idle-Modus unter 1mA. Vom PC aus kann mit beliebiger Software, die via Serieller
-
Datei
DS10-g0075-PID.c
******** // * Datenspeicher 10 * // ******************* // Flüssigkristallanzeige LMK62R125A1 // DS18B20 NR. 13,14,15,16 an 63-10 Adresse 0x18 /************************************************************************/ /* Messstelle 3 = Spannungseingang P6.3 */ /* Messstelle 2 = Spannungseingang P6.2
in „Wie 2x interrupt verschachteln, MSP430“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ch32v003_getting_started.pdf
i2c_start 26 i2c_startaddr 26 i2c_stop 26 i2c_write_nack 26 i2c_write 27 i2c_write16 27 i2c_read 27 ds18b20_single.h / ds18b20_single.c 28 Der Header ds18b20_single.h 28 Die Funktionen von ds18b20_single 28 ds18b20_reset 28 ds18b20_gettemp 28 oled_i2c / oled_i2c_sw 29 Einstellung des Headers (nur für oled_i2c_sw.h
in „CH32V003: Selbstbauprogrammer und "Getting started"“ · Projekte & Code ·
-
PDF
ch32v003_getting_started.pdf
i2c_start 26 i2c_startaddr 26 i2c_stop 26 i2c_write_nack 26 i2c_write 27 i2c_write16 27 i2c_read 27 ds18b20_single.h / ds18b20_single.c 28 Der Header ds18b20_single.h 28 Die Funktionen von ds18b20_single 28 ds18b20_reset 28 ds18b20_gettemp 28 oled_i2c / oled_i2c_sw 29 Einstellung des Headers (nur für oled_i2c_sw.h
in „CH32V003: Selbstbauprogrammer und "Getting started"“ · Projekte & Code ·
-
Datei
DS10-g0074-PID.c
******** // * Datenspeicher 10 * // ******************* // Flüssigkristallanzeige LMK62R125A1 // DS18B20 NR. 13,14,15,16 an 63-10 Adresse 0x18 /************************************************************************/ /* Messstelle 3 = Spannungseingang P6.3 */ /* Messstelle 2 = Spannungseingang P6.2
in „Wie 2x interrupt verschachteln, MSP430“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
AssemblerApplication7.asm
;String auf LCD ausgeben .equ sendUART = 2 ;String auf UART ausgeben .def rawlow = r22 ;Rohwert DS18B20 LSB .def rawhigh = r23 ;Rohwert DS18B20 MSB .equ DQ = 7 ;Datenleitung des Ds18B20 .equ DS_DDR = DDRB ;Port des DS18B20 .equ DS_Port = PortB .equ DS_Pin = PinB .equ LCD = PortC ;LCD-Datenport .equ
-
Datei
config.h
options which require OneWire */ #if ! defined (ONEWIRE_PROBES) && ! defined (ONEWIRE_IO_PIN) /* DS18B20 */ #ifdef SW_DS18B20 #undef SW_DS18B20 #endif /* OneWire scan */ #ifdef SW_ONEWIRE_SCAN #undef SW_ONEWIRE_SCAN #endif #endif /* touchscreen */ #ifdef TOUCH_PORT #define HW_TOUCH #endif /* LCD module
in „ComponentTester-1.42m problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
onewire.h
/* ds18b20 lib 0x02 copyright (c) Davide Gironi, 2012 Released under GPLv3. Please refer to LICENSE file for licensing information. References: + Using DS18B20 digital temperature sensor on AVR microcontrollers
in „Delay mit Timer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PLC-LOX.txt
by 100) 13 1st DS2438 Vsens (value multiplied by 100) - 39 DS2438 values (up to 10 sensors) 40-50 DS18B20 Temperature (up to 10 sensors) (value multiplied by 100) Combination of 1wire sensors must be up to 10pcs maximum (DS18B20 or DS2438) using RS485 the UDP syntax must have \n symbol at the end of the
in „1 Wire auf 2 GPIO pins“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18s20.h
COPY_SCRATCHPAD 0x48 #define RECALL_E2 0xB8 #define READ_POWER_SUPPLY 0xB4 /* @} */ /** \defgroup DS18B20Conf DS18B20 Config Register */ /* @{ */ #define CONF_RES_9b 0x1F #define CONF_RES_10b 0x3F #define CONF_RES_11b 0x5F #define CONF_RES_12b 0x7F /* @} */ /** * @brief Defines the sensor model. */ typedef enum ESensorModel { DS18S20Sensor = 0, /**< Define the sensor as DS18S20 */ DS18B20Sensor /**< Define the sensor as DS18B20 */ } TSensorModel; /** * @brief Represents the DS18S20 sensor including the 1-Wire bus configuration (MCU PORT and PIN * selected for DS18S20 connection). *
in „Timerberechnung die hunderste“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
PLC-LOX-300.ino
by 100) 13 1st DS2438 Vsens (value multiplied by 100) - 39 DS2438 values (up to 10 sensors) 40-50 DS18B20 Temperature (up to 10 sensors) (value multiplied by 100) Combination of 1wire sensors must be up to 10pcs maximum (DS18B20 or DS2438) using RS485 the UDP syntax must have \n symbol at the end of the
in „1 Wire auf 2 GPIO pins“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
config.h
options which require OneWire */ #if ! defined (ONEWIRE_PROBES) && ! defined (ONEWIRE_IO_PIN) /* DS18B20 */ #ifdef SW_DS18B20 #undef SW_DS18B20 #endif /* OneWire scan */ #ifdef SW_ONEWIRE_SCAN #undef SW_ONEWIRE_SCAN #endif #endif /* touchscreen */ #ifdef TOUCH_PORT #define HW_TOUCH #endif /* LCD module
-
Datei
config.h
options which require OneWire */ #if ! defined (ONEWIRE_PROBES) && ! defined (ONEWIRE_IO_PIN) /* DS18B20 */ #ifdef SW_DS18B20 #undef SW_DS18B20 #endif /* OneWire scan */ #ifdef SW_ONEWIRE_SCAN #undef SW_ONEWIRE_SCAN #endif #endif /* touchscreen */ #ifdef TOUCH_PORT #define HW_TOUCH #endif /* LCD module
-
Datei
onewire.c
1; //if read high set bit high } delay_us (46); //recovery time slot return bit; } unsigned int ds18b20_read() { unsigned char i; unsigned int data = 0; DDRB &= ~(1 << T_PIN); for(i=16; i>0; i--) { data>>=1; if(ow_read()) { data |=0b1000000000000000; } } return(data); } void ds18b20_request() { ow_reset(); ow_write(DS1820_SKIP_ROM); ow_write(DS1820_CONVERT_T); } int ds18b20_data() { ow_reset(); ow_write(DS1820_SKIP_ROM); ow_write(DS1820_READ_SCRATCHPAD); unsigned int temp = ds18b20_read(); if(temp<0x8000) { return temp; } else{ temp = (~temp)+1; return temp; } }
in „DS18B20 Code funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
OneWire.c
#endif /************************************************************************ * * readOneWireDS18B20 of DS 18B20 (example) * ************************************************************************/ void readOneWireDS18B20(void) { Byte i, type_s, present = 0; Byte data[12]; Byte addr[8]; float celsius
in „Böses One-Wire device“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
LCD_PCF8574-dotmatrix_7219--learn.asm
arbeitsregister .def IRQ_index = r22 ;IRQ-zähler .def testindex = r23 .equ DQ = 7 ;Datenleitung des Ds18B20 .equ DS_DDR = DDRC ;Data Direction Port des DS18B20 .equ DS_Port = PortC ; .equ DS_Pin = PinC ; .equ XTAL = 4000000 ;Quartzfrequenz .equ BAUD = 9600 ;Baudrate für UART .equ EEProm = 0xAE .equ RTC
-
Datei
DS10-g0120-PID.c
******** // * Datenspeicher 10 * // ******************* // Flüssigkristallanzeige LMK62R125A1 // DS18B20 NR. 13,14,15,16 an 63-10 Adresse 0x18 /************************************************************************/ /* Messstelle 3 = Spannungseingang P6.3 */ /* Messstelle 2 = Spannungseingang P6.2
in „while-Schleife vorzeitig verlassen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS10-g0134-PID.c
******** // * Datenspeicher 10 * // ******************* // Flüssigkristallanzeige LMK62R125A1 // DS18B20 NR. 13,14,15,16 an 63-10 Adresse 0x18 /************************************************************************/ /* Messstelle 3 = Spannungseingang P6.3 */ /* Messstelle 2 = Spannungseingang P6.2
in „while-Schleife wird "unerlaubt verlassen"“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
onewire.c
bit = 1; //if read high set bit high } _delay_us(46); //recovery time slot return bit; } uint8_t ds18b20_read(void) { uint8_t i; uint8_t data = 0; DDRB &= ~(1 << T_PIN); for(i=8; i>0; i--) { data>>=1; if(ow_read()) { data |= 0b10000000; } } return(data); } void ds18b20_request(void) { ow_reset(); ow_write(DS1820_SKIP_ROM); ow_write(DS1820_CONVERT_T); } uint16_t ds18b20_data(void) { uint8_t i; uint8_t crc = 0; uint8_t scratchpad[9]; ow_reset(); ow_write(DS1820_SKIP_ROM); ow_write(DS1820_READ_SCRATCHPAD); for (i=0; i<9; i++) { scratchpad[i] = ds18b20_read(); //crc
in „DS18B20 Code funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
Variable uint16_t ow_array[MAXSENSORS]; // Speicherplatz für 1-wire Sensorwerte PROGMEM uint8_t DS18B20IDs[MAXSENSORS+1][OW_ROMCODE_SIZE] = { OW_ID_T01, // 1. DS18B20 OW_ID_T02, OW_ID_Last }; // Endmarker uint8_t auslesen = 0; uint8_t messen = 1; #endif //--------------------------------------------
in „AVR für wenig Geld im LAN“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
DS2482-800DS18B20PAR_300.pdf
DS2482-800DS18B20PAR_300.pdf
in „Messung mit DS18B20PAR an DS2482-800 setzt bei niedriger Temperatur aus“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
Themometervergleich__TSiC506_DS18B20_Ausschnitt.pdf
22 421,98 W21,96 M 21,94 21,92 21,9 21,88 21,86 21,84 21,82 21,8 21,78 21,76 21,74 21,72 21,7 21,68 21,66 21,64 21,62 21,6 21,58 21,56 21,54 21,52 21,5 21,48 21,46 21,44 21,42 21,4 21,38 21,36 21,34 21,32 21,3 21,28 21,26 21,24 21,22 21,2 16.11.2014 02:20:00 16.11.2014 02:40:00 16.11.2014 03:00:00 16.11.201 Ze
in „DS18B20 Sensor“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
ch32v003_getting_started.pdf
Acknowledge gesendet 0 : es wird kein Acknowledge gesendet Rückgabe: vom I2C-Bus gelesenes Byte ds18b20_single.h / ds18b20_single.c Mit ds18b20_single kann ein DS18B20 Temperatur- sensor ausgelesen werden. Obwohl die Datenkommunikation des Sensors über einen "OneWire-Bus" erfolgt und der Sensor DS18B20
in „CH32V003: Selbstbauprogrammer und "Getting started"“ · Projekte & Code ·
-
Datei
main.c
Sensorwerte // Position 0-4 eig. ID, Pos. 5+6 ist die Temperatur, Pos. 7 CRC-Byte PROGMEM uint8_t DS18B20IDs[MAXSENSORS+1][OW_ROMCODE_SIZE] = { OW_ID_T01, // 1. DS18B20 OW_ID_T02, OW_ID_Last }; // Endmarker uint8_t auslesen = 0; uint8_t messen = 1; #endif // RoBue // Schaltbedingungen (evtl. in config.h
in „AVR für wenig Geld im LAN“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
owaf.c
128 + 2x 8x 70 + 60 = 1840µs = ~2ms * tconf(Default) = 750ms for 12bit Resolution * */ void owaf_Ds18b20_ReadTemperature(void) { mu8_SequencerBusy = 1u; OneWire_HighLevel(); mu8_ReceivedByte = 0u; mu8_ByteIndex = 0u; uint16_t u8_upCount = 0; OneWire_Presence(&u8_upCount); /* Osci Offset M Pos: ~700µs
in „1 Wire manche Teilnehmer antworten nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
onewire.h
ow_w0(); void ow_w1(); void ow_write(unsigned char data); unsigned char ow_read(); unsigned int ds18b20_read(); void ds18b20_request(); int ds18b20_data(); #endif /* ONEWIRE_H_ */
in „DS18B20 Code funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
onewire.h
void ow_w0(void); void ow_w1(void); void ow_write(uint8_t data); uint8_t ow_read(void); uint8_t ds18b20_read(void); void ds18b20_request(void); uint16_t ds18b20_data(void); #endif /* ONEWIRE_H_ */
in „DS18B20 Code funktioniert nicht“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
program.bas
DsId2(8) As Byte 'When used like this : DsId(1) = 1wread(8) 'DsId(1) = family code 'Ds1820 10h, DS18B20 28h, Ds18s20 10h 'DsId(2) '48 Bits Serial, LSB 'DsId(3) 'DsId(4) 'DsId(5) 'DsId(6) 'DsId(7) '48 Bits Serial, MSB 'DsId(8) '8 CRC Dim Sc(9) as byte 'Scratchpad 0-8 72 bits incl CRC, explanations for DS18b20 'Sc(1) 'Temperature LSB 'Sc(2) 'Temperature MSB 'Sc(3) 'TH/user byte 1 also SRAM 'Sc(4) 'TL/user byte 2 also SRAM 'Sc(5) 'config also SRAM x R1 R0 1 1 1 1 1 - the r1 r0 are config for resolution -
in „DS1820 defekt?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Webseite_mit_25_Zeilen.txt
Temperatur, Licht) ablesen</h2><br/> <h2>Temperatur Sensor(Digital):</h2><br/> Temperatur Sensor Außen: ~ds18b20TempOut~ *C<br/> Temperatur Sensor Innen: ~ds18b20TempIn~ *C<br/> Temperatur Sensor Wohnzimmer: ~ds18b20TempLiving~ *C<br/> <h2>Licht Sensor</h2><br/> Licht Sensor Außen: nA lux<br/> Licht Sensor Innen
in „ATMega644 hängt sich auf und resettet sich selbst, nach lesen einer SD Karte und ENC28J60“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
onewire.h
/* ds18b20 lib 0x02 copyright (c) Davide Gironi, 2012 Released under GPLv3. Please refer to LICENSE file for licensing information. References: + Using DS18B20 digital temperature sensor on AVR microcontrollers by Gerard Marull Paretas, 2007 http://teslabs.com/openplayer/docs/docs/other/ds18b20_pre1.pdf */ #ifndef ONEWIRE_H_ #define ONEWIRE_H_ #define Bus_Port PORTB #define Bus_DDR DDRB #define Bus_Pin PINB #define Pin_Nr PB0 #define Bus_Eingang() Bus_DDR &= ~(1<<Pin_Nr) #define Bus_Ausgang
in „Delay mit Timer“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Taupunkt_V1_V2_THD_DS18B_3ok.ino
#include <math.h> #include "DHT.h" #include <OneWire.h> #include <DallasTemperature.h> // Dallas DS18B20 Temperatursensor als Oberflaechentemperaturfuehler #define DHTPIN 8 // DHT Signal Pin an Arduino Eingang //#define DHTTYPE DHT11 // DHT 11 #define DHTTYPE DHT22 // DHT 22 (AM2302) #define LED 13 /
in „Taupunktberechnung mit Arduino, DHT22, DS18B20“ · Projekte & Code ·
-
Datei
PLC-LOX-300-13-12-2019Multibus-2.ino
/* UDP syntax: signals: DS18B20 1wire sensor packet: rail1 1w2 2864fc3008082 temp 25.44 DS2438 1wire sensor packet: rail1 1w2 2612c3102004f 25.44 1.23 0.12 Sensor detected (after start): rail1 1w2 2864fc3008082 detected Sensor error
in „1 Wire auf 2 GPIO pins“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TWI_logger_readme.pdf
Messintervall eingestellt. Für meine konkrete Anwendung (die Aufzeichnung von Temperaturdaten mit DS18B20) gibt es ein weiteres Menü, in dem die Sensoren angemeldet und ihre Adressen im Eeprom des Mega88 gespeichert werden können. Zur Erläuterung der Temperaturmessung mit den DS18B20 gibt es in Codesammlung
in „TWI-Datenlogger mit M88, PCF8583, AT24C512 (+ DS18B20) für den Batteriebetrieb“ · Projekte & Code ·
-
PDF
63-6_DS2482-800_DS18B20PAR.pdf
63-6_DS2482-800_DS18B20PAR.pdf
in „Messung mit DS18B20PAR an DS2482-800 setzt bei niedriger Temperatur aus“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
der Sensoren // Position 0-4 eig. ID, Pos. 5+6 ist die Temperatur, Pos. 7 CRC-Byte PROGMEM uint8_t DS18B20IDs[MAXSENSORS+1][OW_ROMCODE_SIZE] = { OW_ID_T01, // 1. DS18B20 OW_ID_T02, OW_ID_T03, OW_ID_T04, OW_ID_T05, OW_ID_T06, OW_ID_T07, OW_ID_T08, OW_ID_Last }; // Endmarker uint8_t auslesen = 0; // 0 ->
-
Datei
main.c
der Sensoren // Position 0-4 eig. ID, Pos. 5+6 ist die Temperatur, Pos. 7 CRC-Byte PROGMEM uint8_t DS18B20IDs[MAXSENSORS+1][OW_ROMCODE_SIZE] = { OW_ID_T01, // 1. DS18B20 OW_ID_T02, OW_ID_T03, OW_ID_T04, OW_ID_T05, OW_ID_T06, OW_ID_T07, OW_ID_T08, OW_ID_Last }; // Endmarker uint8_t auslesen = 0; // 0 ->