AISystems #4
Arunesh-Gour
started this conversation in
Ideas
Replies: 2 comments
-
Calculating unionized NH3
Table 1Table 2 |
Beta Was this translation helpful? Give feedback.
0 replies
-
AISystems:File: Implement logic in following functions only:
Instructions
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Input variables
From sensors
TAN
(Total Ammonia Nitrogen).Temperature
.pH
.DO
(Dissolved Oxygen).NO2
(nitrite).NO3
(nitrate).WaterLevel
(percent of tank, level).Calculate
Unionized NH3
(ammonia).Condition
{safe, danger, toxic}.CaOH / KOH
amount for tank.Chealated iron
(2mg / liter).Safe ranges
All values are in
ppm
, except forTemperature
, whose values are indeg celsius
andWaterLevel
, which are inpercentage
.TAN
(Total Ammonia Nitrogen): {safe:(< 1.0), danger:(> 1.0), toxic:(when (Temperature
orpH
or both) is in danger or toxic)}.Temperature
: {safe:(27.0-29.0), danger:(18.0-27.0, 29.0-32.0), toxic:(< 18.0, > 32.0)}.pH
: {safe:(6.8-7.0), danger:(6.4-6.8, 7.0-7.4), toxic:(< 6.4, > 7.4)}.DO
(Dissolved Oxygen): {safe:(> 6.5), danger:(4.5-6.5), toxic:(< 4.5)}.NO2
(nitrite): {safe:(0.5-1.0), danger:(0.1-0.5), toxic:(< 0.1, > 1.0)}.NO3
(nitrate): {safe:(10.0-100.0), danger:(5.0-10.0, 100.0-450.0), toxic:(< 5.0, > 450.0)}.WaterLevel
: {safe:(70.0-80.0), danger:(50.0-70.0, 80.0-85.0), toxic:(< 50.0, > 85.0)} % of tank height.UnionizedNH3
: {safe:(0.0-0.3), danger:(0.3-0.5), toxic:(> 0.5)}.Impact
Condition
-> changeTAN
/ph
/Temperature
/ water -> fail=alert.TAN
(Total Ammonia Nitrogen) -> changepH
/Temperature
/ water -> fail=alert.pH
-> add (CaOH
/KOH
) / show alert -> fail=alert.Temperature
-> turn on / offwater heater
-> fail=alert.DO
(Dissolved Oxygen) -> change water -> fail=alert.NO2
(nitrite) -> change water -> fail=alert.NO3
(nitrate) -> change water -> fail=alert.WaterLevel
-> add / remove water -> fail=alert.Chelated Iron
-> fail=alert.Beta Was this translation helpful? Give feedback.
All reactions