Banner Ausblenden
Kleines Logo

Willkommen auf PSI-Online

TemperaturSensor Modul

Keyes KY-028 Arduino PIC AVR Raspberry Pi Compatible with Digital Temperature Sensor Module

Digital temperature sensor module and a digital interface, built-in 13 LED build a simple circuit, making the temperature warning lamp 13 comes with digital interfaces of the LED, the digital temperature sensor connected digital three interfaces, when the digital temperature sensor senses a key signal, LED lights, otherwise off.
 
 
 
Beispiel:
------------------------------------------------------------------------------------------------------------------------------------------------------------
int TMP36 = A0;
 
int temperatur = 0;
 
 
int temp[10];
 
int time= 20;
 
void setup() {
Serial.begin(9600);
}
 
 
void loop() {
 
temp[0] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[1] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[2] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[3] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[4] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[5] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[6] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[7] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[8] = map(analogRead(TMP36), 0, 410, -50, 150);
delay(time);
temp[9] = map(analogRead(TMP36), 0, 410, -50, 150);
 
 
 
temperatur=(temp[0]+temp[1]+temp[2]+temp[3]+temp[4]+temp[5]+temp[6]+temp[7]+temp[8]+temp[9])/10; 
 
Serial.print(temperatur);
Serial.println(" Grad Celsius");
}

--------------------------------------------------------------------------------------------------------------------------------------------------------------
 

Erstellt: Tim Sandner (15.12.2015) Letzte Änderung: Anne-Fiona Griesfeller (11.01.2016)