15-01-2018, 09:39
(Ten post był ostatnio modyfikowany: 15-01-2018, 11:15 przez CEO.
Powód edycji: Używamy znaczników [code]!
)
(15-01-2018, 09:23)CEO napisał(a): Witaj, prosimy ten kod.
Kod:
int sensor = A5 ;
float temp;
void setup() {
Serial.begin();//kon.
};
void loop () {
temp = analogRead(0)*20// wyczytaj
temp = temp - 37; //skalowac
temp = temp / 20; // zmiany podzielic
Serial.println(temp);
delay(200);
};
/////////////
int sensorPin = A5;
setup()
{
Serial.begin();
void loop() {
int reading = analogRead(sensorPin);
float st = czytac * 37;
st /= ;
Serial.print(st); Serial.println("Str");
float Temperatur = (st- 37) * 100 ; Serial.print(Temperatura );
}
Niestety nie wiem gdzie blad albo jak dalej robic