Loom 4 v4.5
Arduino library for Internet of Things Rapid Prototyping in environmental sensing
Loading...
Searching...
No Matches
Loom_Teros10.h
1#pragma once
2
3#include <cmath>
4
5#include "Module.h"
6#include "Loom_Manager.h"
7
13class Loom_Teros10 : public Module{
14
15
16 protected:
17 void initialize() override {};
18
19 void power_up() override {};
20 void power_down() override {};
21
22 public:
23
24 void measure() override;
25 void package() override;
26
33 Manager& man,
34 int port = A0
35 );
36
37
41 float getVWC() { return volumetricWater; };
42
46 float getDialecPerm() { return dielecPerm; };
47
48 private:
49 Manager* manInst; // Instance of the manager
50 int analogPort = A0; // Where the analog sensor is hooked up
51
52 float milliVolt; // Millivolt output reading
53 float volumetricWater; // Volumetric water content
54 float dielecPerm; // Dielectric permittivity
55
56 float analogToMV(int analog); // Convert the analog voltage to mV
57 float computeVWC(float mV); // Calculate the Volumetric Water Content from the mV
58 float computeDP(float mV); // Calculate the Dielectric Permittivity from the mV
59};
Definition: Loom_Teros10.h:13
float getVWC()
Definition: Loom_Teros10.h:41
float getDialecPerm()
Definition: Loom_Teros10.h:46
Definition: Loom_Manager.h:18
Definition: Module.h:30