- Joined
- Jan 31, 2019
- Messages
- 371
- Reaction score
- 167
Hi all,
What I am trying to acheive is
If the optical sensor is not active (ie dry) everything is normal
If the Optical sensor is wet, switch a power outlet on (start the motor to roll the mat).
The power outlet can run for a max of 1 minute (and everything is OK). If the optical sensor is dry during this minute run for 15 seconds more before turning off.
If the power outlet runs for > 1 min AND the optical sensor is still wet
1) Turn off power outlet (stop roller mat)
2) Set an alarm condition (so I can check what is wrong)
(The use case would be controlling the motor off a Filter roller mat so I can send alarms if the mat continues to run for to long).
Also while at it is there any way to count/monitor total "on time" for an outlet. My initial "work around" would be setting up a virtual dosing pump, activating dosing according to the status of the switch port and monitoring the ml's of the virtual container. ie. figure out how long it takes to roll a complete mat through in time, "calibrate" the dosing pump to 1 ml/min and set a volume container according - alerting when the container is empty.
What I am trying to acheive is
If the optical sensor is not active (ie dry) everything is normal
If the Optical sensor is wet, switch a power outlet on (start the motor to roll the mat).
The power outlet can run for a max of 1 minute (and everything is OK). If the optical sensor is dry during this minute run for 15 seconds more before turning off.
If the power outlet runs for > 1 min AND the optical sensor is still wet
1) Turn off power outlet (stop roller mat)
2) Set an alarm condition (so I can check what is wrong)
(The use case would be controlling the motor off a Filter roller mat so I can send alarms if the mat continues to run for to long).
Also while at it is there any way to count/monitor total "on time" for an outlet. My initial "work around" would be setting up a virtual dosing pump, activating dosing according to the status of the switch port and monitoring the ml's of the virtual container. ie. figure out how long it takes to roll a complete mat through in time, "calibrate" the dosing pump to 1 ml/min and set a volume container according - alerting when the container is empty.

