Commit 0d7ed02c authored by Maxime Robin's avatar Maxime Robin
Browse files

mesure sht75 ok

parent 0d6beb01
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include <SPI.h> #include <SPI.h>
#include <MAX31865.h> #include <MAX31865.h>
#include <SHTSensor.h> #include <SHTSensor.h>
#include <Sensirion.h>
#include <I2CEEPROM.h> #include <I2CEEPROM.h>
#include <TimerOne.h> #include <TimerOne.h>
...@@ -159,7 +160,7 @@ void configurationAmpli() { ...@@ -159,7 +160,7 @@ void configurationAmpli() {
case 3: { case 3: {
lcd.setCursor(0, 0); lcd.setCursor(0, 0);
lcd.print("pyrgeometre"); lcd.print("pyrgeometre");
MCP.Configuration(1,18,0,8);} break; MCP.Configuration(4,18,0,8);} break;
case 4: { case 4: {
lcd.setCursor(0, 0); lcd.setCursor(0, 0);
lcd.print("radiometre IR120");} break; lcd.print("radiometre IR120");} break;
...@@ -189,6 +190,7 @@ void mesureAmpli() { ...@@ -189,6 +190,7 @@ void mesureAmpli() {
lcd.setCursor(0,0); lcd.print("V="); lcd.setCursor(0,0); lcd.print("V=");
lcd.setCursor(2,0); lcd.print(voltage); lcd.setCursor(2,0); lcd.print(voltage);
lcd.setCursor(8,0); lcd.print(" uV"); lcd.setCursor(8,0); lcd.print(" uV");
Serial.print("V = "); Serial.println(voltage); // en uV
// Conversion en fonction du coefficient // Conversion en fonction du coefficient
mesureRadiometre=voltage*coeffCalibrationRadiometres; mesureRadiometre=voltage*coeffCalibrationRadiometres;
...@@ -441,6 +443,6 @@ void loop() ...@@ -441,6 +443,6 @@ void loop()
case 9: case 9:
mesureGirouette(); break; mesureGirouette(); break;
} }
delay(500);
Serial.print("Capteur en test : "); Serial.println(capteurEnTest); Serial.print("Capteur en test : "); Serial.println(capteurEnTest);
delay(500);
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment