Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • runCMD → BOOL
  • levelSensor → BOOL
  • drainTime → TIME
  • fillTime → TIME
  • cycleTime → TIME
  • motionInterval → TIME
  • override → INT

OUTPUT

  • twoWayFillCMD → BOOL
  • twoWayDrainCMD → BOOL
  • threeWayValveCMD → BOOL
  • pumpCMD → BOOL
  • overrideAlarm → TIME


With some internal variables to keep track of time, controller state and motion toggling,

INTERNAL VARIABLES

  • motionTime → TIME
  • controllerState → INT
  • lastTime → TME
  • lastMotionTime → TIME
  • motionToggle → BOOL
















References:


Lagomarsino, V. (2019) 'Hydroponics: The power of water to grow food', Science in the News, 26 September. Available at: https://sitn.hms.harvard.edu/flash/2019/hydroponics-the-power-of-water-to-grow-food/ (Accessed: 28 May 2024)