×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Arduino Meteostation MLX temperatures

  • Posts: 31
  • Thank you received: 1
Hi,

a student of mine has built an Arduino Meteostation following the instructions here: github.com/magnue/induino_meteostation_h...onfigure-print-build

The ambient and IR temperatures in the sketch (github.com/indilib/indi-3rdparty/blob/ma...O/indiduinoMETEO.ino) are divided by 100.

#ifdef USE_MLX_SENSOR 
  if (mlxSuccess) { Tir = mlx.readAmbientTempC() / 100.0; 
  IR = mlx.readObjectTempC() / 100.0; 
} else if (mlxSuccess = mlx.begin()) { 
  // Retrymlx.begin(), and clear MLX sensor fail flag 
  digitalWrite(PIN_TO_DIGITAL(PIN_STATUS_MLX), STATUS_OK); 
}

It seems, that these are also the values shown in the INDI Control Panel under Raw Sensors. Both values are 0.20 inside an the IR temperaure goes up to 0.30 when holding a hand over the sensor. As a result the Sky Temperature inside is -7.70 C which is obviously wrong.

So I asked myself, why the temps of the MLX Sensor are divided by 100 and if the Sky Temperature ist calculated correctly.

Grateful for any help,
Simon
 
3 years 1 month ago #68551

Please Log in or Create an account to join the conversation.

Time to create page: 0.313 seconds