Browse Source

Calibración de medición de los sensores

master
parent
commit
8871aaf8a5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lecturaArduino/lecturaArduino.ino

+ 2
- 2
lecturaArduino/lecturaArduino.ino View File

@ -18,8 +18,8 @@ void loop() {
// put your main code here, to run repeatedly: // put your main code here, to run repeatedly:
lectura1 = analogRead(in1); lectura1 = analogRead(in1);
lectura2 = analogRead(in2); lectura2 = analogRead(in2);
temp1 = (lectura1 * 5000 / 1023 / 10) - 33;
temp2 = (lectura2 * 5000 / 1023 / 10) - 37;
temp1 = (lectura1 * 5000 / 1023 / 10) - 52;
temp2 = (lectura2 * 5000 / 1023 / 10) - 52;
Serial.println(temp1); Serial.println(temp1);
Serial.println(temp2); Serial.println(temp2);
if(Serial.available()>0){ if(Serial.available()>0){


Loading…
Cancel
Save