866 Byte hinzugefügt,
14:28, 9. Feb. 2016 ==Bild==
[[Datei:KY-002.jpg|358x358px|none]]
==Technische Daten / Kurzbeschreibung==
Chipsatz: DS18B20 | Kommunikationsprotokoll: 1-Wire<br /><br />9- 12Bit genaue Temperaturmessung im Meßbereich von –55°C bis +125°C
==Pin-Belegung==
[[Datei:3_S_V_G.png|none]]
==Codebeispiel Arduino==
<pre class="brush:cpp">int Led = 13 ;// define LED Interface
int Shock = 10; // define the vibration sensor interface
int val; // define numeric variables val
void setup ()
{
pinMode (Led, OUTPUT) ; // define LED as output interface
pinMode (Shock, INPUT) ; // output interface defines vibration sensor
}
void loop ()
{
val = digitalRead (Shock) ; // read digital interface is assigned a value of 3 val
if (val == HIGH) // When the shock sensor detects a signal, LED flashes
{
digitalWrite (Led, LOW);
}
else
{
digitalWrite (Led, HIGH);
}
}</pre>