User Tools

Site Tools


en:monitoring_and_warning:software

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:monitoring_and_warning:software [2023/01/24 11:15] m-gamperlen:monitoring_and_warning:software [2023/01/24 12:05] (current) m-gamperl
Line 185: Line 185:
  
 ==== IMU_config.h ==== ==== IMU_config.h ====
 +
 +The IMU (short for 'inertial measurement unit') on the PCB is an ICM20948 by [[https://invensense.tdk.com/products/motion-tracking/9-axis/icm-20948/|Invensense]]. Unfortunately, for the first version of the PCB for the Inform@Risk project, the sensor was not available, so the section is in the code, but it hasn't been tested yet. So, by default, the sensor is turned off in the current version of the code. In this file, various parameters as the hardware adress (**#define ICM20948_ADDR**), the data transmission (**#define IMU_TRANS_ACC 1, #define IMU_TRANS_GYR 1, #define IMU_TRANS_MAG 1**) and the measurement interval (**IMU_MINT**) can be changed. The rest are global variables which should not be changed by the user.
  
 ==== INCL_config.h ==== ==== INCL_config.h ====
  
-==== SMP_config.h ====+The INCL_config.h deals with the external [[https://www.murata.com/en-us/products/sensor/inclinometer/overview/lineup/scl3300|SCL3300 inclinometer]] by muRata electronics which can be attached onto the PCB using a 3D printed file. This sensor is optional if the previously mentioned ICM is used, as it offers higher precision in its measurements, but is also more expensive. The parameters of the SCL that can be changed in the 'INCL_config.h' file are the inclination mode (**INCL_MODE**, four modes which vary in sensitivity), the temperature measurement (**INCL_TEMP**, can be turned on and off), fast read mode (**INCL_FASTREAD**, can be turned on and off; off by default), and transmit data for tilt and temperature (**INCL_TRANS_TILT**, **INCL_TRANS_TEMP**, on by default). The rest are variables and the measurement functions which should not be changed. 
 + 
 +==== arduino_secrets.h ==== 
 + 
 +The arduino_secrets.h file holds the respective **SECRET_APP_EUI** and **SECRET_APP_KEY** which are set for the sensor on the gateway. For more on this, please also refer to the [[gateway|LoRa Gateway]] section. 
 + 
 +==== extra_functions.h ==== 
 + 
 +In the **extra_functions.h** file, various additional and extraneous functions are compiled. For example, the **DeepSleepMode()** function performs the sleep functionality of the node, depending on what is set in the **setup.h** file. Also, functions on the ports setup (void PortsActivate(), void PortsDeactivate()) and various functions dealing with the data packets (void Payload_U32(), void Payload_I32(), void Packet10_B0_Prepare() and so on) can be found here.
  
-==== arduino_secrets ==== 
  
-==== extra_functions ==== 
  
  
en/monitoring_and_warning/software.1674558930.txt.gz · Last modified: 2023/01/24 11:15 by m-gamperl