-
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 ·
-
PDF
ds18b20_pre1.pdf
..................................15 2 1. Introduction A few months ago I received two samples of DS18B20 from Maxim. However, I asked for another chip, not DS18B20, so I decided to notify to Maxim. They agreed about the mistake and a few days later I received the correct ones, but those two chips remained
in „Atmega 8 + dallas 18s20 + Neuling (never ending story)“ · 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
DS18x20_Temperature.ino
#include <OneWire.h> // OneWire DS18S20, DS18B20, DS1822 Temperature Example // // http://www.pjrc.com/teensy/td_libs_OneWire.html // // The DallasTemperature library can do all this work for you! // https://github.com/milesburton/Arduino-Temperature-Control-Library
in „DS18B20 Verkabelungs od Software Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18x20_Temperature.ino
#include <OneWire.h> // OneWire DS18S20, DS18B20, DS1822 Temperature Example // // http://www.pjrc.com/teensy/td_libs_OneWire.html // // The DallasTemperature library can do all this work for you! // http://milesburton.com/Dallas_Temperature_Control_Library
in „DS18B20 an Arduino“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
umrech.txt
------------------------------------------- Scanning-Bus-for-DS18X20 2-DS18X20-Sensor(s)-available: #-in-Bus-:1-:-FC:10-(18S)SN:-8C-79-0B-02-08-00-CRC:5F--CRC-O.K.- #-in-Bus-:2-:-FC:10-(18S)SN:-E0-76-0B-02-08-00-CRC:8E--CRC-O.K.- Sensor#-1-is-a-DS18S20/DS1820-which-is-parasite-powered Sensor#-2-is-a-DS18S20/DS1820-which-is-parasite-powered DS18x20-EEPROM-support-test-for-first-sensor TH/TL-in-scratchpad-of-sensor-1-now-:-91-/-86 TH+1-and-TL+1-written-to-scratchpad TH/TL-in-scratchpad-of-sensor-1-now
in „DS18S20 - extended resolution bei Temperaturen um 0°C“ · 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
main.c
read_rtc_temperature_flag = 1; debug_log_printf ("cmd: set rtc_temp_correction = %d\r\n", val); break; } case DS18XX_TEMP_INDEX_NUM_VAR: { debug_log_printf ("cmd: set ds18xx_temp_index = %d, but it's readonly\r\n", val); break; } case DS18XX_TEMP_CORRECTION_NUM_VAR: { temp_set_temp_correction (val); measure_temperature_flag
-
PDF
One-Wire-Bussysteme.pdf
communication time. o can be accomplished by using a MOSFET to pull the bus directly to the rail o E.g. DS18S20-PAR (digital thermometer, during temperature conversions) http://pdfserv.maxim-ic.com/arpdf/DS18S20-PAR.pdf http://www.maxim-ic.com/appnotes.cfm/appnote_number/949/ln/en (App147: Supplying power
in „Timing Probleme 1-Wire“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
One-Wire-Bussysteme.pdf
communication time. o can be accomplished by using a MOSFET to pull the bus directly to the rail o E.g. DS18S20-PAR (digital thermometer, during temperature conversions) http://pdfserv.maxim-ic.com/arpdf/DS18S20-PAR.pdf http://www.maxim-ic.com/appnotes.cfm/appnote_number/949/ln/en (App147: Supplying power
in „1-Wire Protokollablauf“ · Mikrocontroller und Digitale Elektronik ·
-
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
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
in „1 Wire auf 2 GPIO pins“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
program.bas
Dim 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
index.html
ESP32: <span id="esp32">--</span> <span class="temp">°C</span></div> <div class="reading temp">DS18B20: <span id="ds18">--</span> <span class="temp">°C</span></div> <div class="reading temp">SCD41 T: <span id="scd_t">--</span> <span class="temp">°C</span></div> <div class="co2">CO2: <span
-
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
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
index.html
ESP32: <span id="esp32">--</span> <span class="temp">°C</span></div> <div class="reading temp">DS18B20: <span id="ds18">--</span> <span class="temp">°C</span></div> <div class="reading temp">SCD41 T: <span id="scd_t">--</span> <span class="temp">°C</span></div> <div class="reading temp">BME
-
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
AssemblerApplication7.asm
def null = r5 .def accu = r16 .def index = r17 .def onewireindex = r20 .def rawlow = r24 ;Rohwerte DS18x20 .def rawhigh = r25 .equ DQ = 7 ;Datenleitung des Ds18x20 .equ DS_DDR = DDRB .equ DS_Port = PortB .equ DS_Pin = PinB .equ LCD = PortD .equ LCDDDR = DDRD .equ LCMD = PortA .equ LCMDDR = DDRA .equ EN
in „wieder ein DS18B20 Problem“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
TempDisplay.c
**************************************************/ /* resetSensor /* Function: Resets the Sensor DS18S20 /************************************************************************/ int resetSensor(){ int num; PORTD &=~ DQ; DDRD |= DQ; _delay_us(480); //550 DDRD &=~ DQ; _delay_us(66); //70 num = PIND
in „Temperaturauswertung 1-WIRE AVR“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TWI_logger_readme.pdf
netzstromunabhängig arbeitet. In der Bastelkiste hatte ich noch einige PCF8583 (RTC) und AT24C512 (Eeprom) sowie DS18B50 als Temperatursensoren. So entstand das Konzept des hier vorgestellten low-current Datenloggers auf der Basis von Standard TWI-Komponenten. Das verwendete TWI-Eeprom mit 512kBit (= 64KB) reicht aus
in „TWI-Datenlogger mit M88, PCF8583, AT24C512 (+ DS18B20) für den Batteriebetrieb“ · Projekte & Code ·
-
PDF
ch32v003_getting_started.pdf
ein 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
dir.txt
CDC.cpp.d 17.01.2016 16:55 2.432 CDC.cpp.o 17.01.2016 16:56 446.026 core.a 17.01.2016 16:55 3.935 ds18x20.c 17.01.2016 16:55 292 ds18x20.c.d 17.01.2016 16:55 12.456 ds18x20.c.o 17.01.2016 16:55 4.839 ds18x20.h 17.01.2016 16:55 1.022 HardwareSerial.cpp.d 17.01.2016 16:55 27.844 HardwareSerial.cpp.o 17.01.2016
-
Bild
Schaltplan mit Arduino Nano und DS18B20 Sensor
DS18B20 NANO 3.0 R0 120 Ω Wasserkocher Kupferdraht 0.15 mm 140 m 4.7 kΩ
in „Physikprojekte“ · Offtopic · · Diagramme
-
Bild
Software-Interface für DS18B20 Temperaturanzeige
DS18B20 HaWi Version V1.0, 03.11.2024 Temperatur: %TEMPERATUREC% °C Temperatur: %TEMPERATUREF% °F Fehlermeldung: %DEFECTIVE% )
in „HTML Anzeige - Farbe Meldetext ändern“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Bild
Software-Interface für DS18B20 Temperaturanzeige
DS18B20 HaWi Version V1.0, 03.11.2024 Temperatur: %TEMPERATUREC% °C Temperatur: %TEMPERATUREF% °F Fehlermeldung: %DEFECTIVE% )
in „HTML Anzeige - Farbe Meldetext ändern“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Datei
DS18B20-C.asm
/*aus C umgesetzets Programm für DDS-Baustein. Version C: DS18B20 geht, I2C-Routine wird integriert Hardware: pin b,6 ist onewire-port (line). d,5 ist Pin für Trigegrung r20 Zählregister Zeitschleife r19 8-Bit-Teil eines Befehls r18 Zählregister in Routine Befehl
in „1-Wire Temperatursensor DS18S20 mit Atmega8 Ansteuern“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
gast_ds18s20.asm
.nolist .include "m8def.inc" .list .equ clock = 4000000 ; Systemtakt in Hz .equ BAUD = 19200;9600 .equ cr= 13 ; ASCII-Code für ENTER .equ lf= 10 ; ASCII-Code für NEW LINE neue zeile .equ sendon_port=portB .equ sendon_ddr=ddrB .equ sendon_bit=pb1 .equ empfon_port=portB .equ empfon_ddr=ddrB .equ empfon_bit=pb2 .def null = r5 ; immer Null .def befehl = r10 ; enthält den auszugebenden 8bit-befehl .def temp4 = r16 .def temp = r17 .def temp1 = r18 .def temp2 = r19 .def temp3 = r20 .def temp5 = r21 .def delay1 = r22 .def delay2 = r23 .def dta = r24 ; sende register .dseg ;SRAM-Variablen .org 0x60 temp_lsb
in „DS1820/DS18S20“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18B20.C51
#include "main.h" #include "ds18b20.h" u8 idata onwi_buff[9]; // result up to 9 bytes static u8 onwi_mask; // one wire pin mask static u8 onwi_state; // state machine static u8 onwi_write; // number of bytes to send static u8 onwi_read
in „yanos“ · Projekte & Code ·
-
Datei
ds18s20test.c
stdlib.h> #include <stdio.h> #include <avr/io.h> #define F_CPU 4000000 #include <util/delay.h> #include "ds18s20.c" int main(void) { DDRB = 0x00; PORTB= 0xFF; int temperature = 0; for (;;) { read_scratchpad (); temperature = (scratchpad [1] << 8) + scratchpad [0]; temperature *= 0.0625; //für 12bit } }
in „einen einzigen DS18s20 auslesen + LCD“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18x20lib.h
#include <avr/io.h> #include <math.h> #include <util/delay.h> #ifndef _DS18X20LIB_h_ #define _DS18X20LIB_h_ //----------------------------------------- // Set Ports //----------------------------------------- #define DS1820_pin PD6 //"Puffer oben" sensor #1 #define DS1820_PIN
in „DS18B20 probleme mit Pull-Up“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ds18x20lib.h
#include <avr/io.h> #include <math.h> #include <util/delay.h> #ifndef _DS18X20LIB_h_ #define _DS18X20LIB_h_ //----------------------------------------- // Set Ports //----------------------------------------- #define DS1820_pin PD6 //"Puffer oben" sensor #1 #define DS1820_PIN
in „DS18B20 Temperaturauswertung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18X20LIB.h
#include <avr/io.h> #include <math.h> #include <util/delay.h> #ifndef _DS18X20LIB_h_ #define _DS18X20LIB_h_ //----------------------------------------- // Set Ports //----------------------------------------- #define DS1820_pin PD0 //"Puffer oben" sensor #1 #define DS1820_PIN
in „DS18B20 probleme mit Pull-Up“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
DS18X20LIB.h
#include <avr/io.h> #include <math.h> #include <util/delay.h> #ifndef _DS18X20LIB_h_ #define _DS18X20LIB_h_ //----------------------------------------- // Set Ports //----------------------------------------- #define DS1820_pin PD0 //"Puffer oben" sensor #1 #define DS1820_PIN
in „DS18B20 probleme mit Pull-Up“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
TDS_DS18S20.pdf
DS1820 DS1820 TM 1–Wire Digital Thermometer FEATURES PIN ASSIGNMENT Unique1–Wire TM interface requires only one port pin for communication DALLASS DS18204 1 2 3 Multidropcapabilitysimplifiesdistributedtemperature sensing applications BOTTOM VIEW Requires no external components 1 2 3 Can be powered from data line Zero standby power required NC 1 16 NC NC 2 15 NC Measures temperatures from –55⋅C to +125⋅C in NC 3 14 NC 0.5⋅C increments. Fahrenheit equivalent is –67⋅F to NC 4 13 NC NC 5 12 NC +257⋅F in 0.9⋅F increments NC 6 11 NC D Q D VDD 7 10 NC Temperature is read as a 9–bit digital value. G D V
in „2x HW Uart / Sinnvoll?“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
Heizplattenregler_DS18S20.c
/* * Heizplattenregler_DS18S20.c * * Created: 07.11.2011 21:53:45 * Author: Rocco * PORT D als LED Temperaturanzeige * PIN B als Soll Temperatur Input über 8er DIL Schalter * PORT C zum Anschluss des DS18S20 und eines Relais zum
in „Heizungssteuerung mit DS18S20 Relais "blinkt"“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
therm_ds18b20.c
========================== * Projekt: Netzwerk-Thermometer * Modul: Treiber für den 1-Wire Sensor DS18B20 * Vereinfachte Version für nur einen Sensor (ROM funktion wird nicht verwendet) * * Quelle: http://teslabs.com/openplayer/docs/docs/other/ds18b20_pre1.pdf * in abgewandelter Form * Autor: Helmut
in „DS18B20: Problem mit Temperaturauslesen“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
therm_ds18b20.h
/* ======================================================================= * Autor: Helmut ======================================================================= */ #include <avr/io.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <util/delay.h> // Definition des PIN, PORT und DDR #define THERM_PORT PORTC #define THERM_DDR DDRC #define THERM_PIN PINC #define THERM_DQ PC0 // Definitionen für den Zustand des PINs #define THERM_INPUT_MODE() THERM_DDR&=~(1<<THERM_DQ) //Eingang #define THERM_OUTPUT_MODE() THERM_DDR|=(1<<THERM_DQ) //Ausgang #define THERM_LOW() THERM_PORT&=~(1<
in „DS18B20: Problem mit Temperaturauslesen“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
SCHALTPLAN_DS18s20.pdf
DS1820 / DS18s20 Beschaltung IC25 +5V V 1 10µ 10µ 0 t LCD 16x2 1 r D n / 16 V V K R R E D D D D D D D D5 6 7 DS18s20 GND 2 3 Programmieradapter k 1 5 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 r ) ) ) ) ) ) ) ) ) ) ) ) ) ) a
in „DS1820 DS18s20 Digital Thermometer 1-wire Beispiele ATmega8 Assembler“ · Projekte & Code ·