Pio IX 6ºTecnica - Integrantes: Facundo Carmona, Facundo Sussini - Controlador de cooler mediante un DS1820 y un potenciometro
Diff: main.cpp
- Revision:
- 6:90322c14f783
- Parent:
- 5:6515379eac2f
- Child:
- 7:a74643e9de62
diff -r 6515379eac2f -r 90322c14f783 main.cpp --- a/main.cpp Tue Jun 04 12:07:04 2019 +0000 +++ b/main.cpp Tue Jun 04 12:13:58 2019 +0000 @@ -59,7 +59,7 @@ voltage=adcValue*3.3 / 65535; // convertimos el valor de ADC a volts porcentageADC = voltage*100 / 3.3; // con el valor en volts podemos saber el porcentaje del ADC - probe.convertTemperature(true, DS1820::all_devices); //Start temperature conversion, wait until ready + probe.convertTemperature(false, DS1820::all_devices); //Start temperature conversion, wait until ready // probe.temperature() ---> temperatura en Cº temperatura=probe.temperature(); porcentajetemperatura=(((float)temperatura-20)*2)/100;