Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting float
#4
All right, one step closer.

Controlling one port with two sensors is difficult and there's a bug stopping the system from running a macro from a sensor. It seems to go in a never ending loop until it restarted.

This is why the port will turn on/off quickly.

The code checks each port one by one. Let's think about yours.

Typically the low float will be sensing water, it's job is to turn on pump when it doesn't sense water and when it is sensing water it's turning off that pump. That's the problem in reef-pi, it's trying to do one or the other when you only want it to turn on, never off.

The high float is trying to turn pump off when it senses water but in most cases it won't be sensing water so it will do the opposite and turn pump on.

Now when sensors are read 2nd will turn pump on as it should and immediately following sensor 2 will turn the pump back off as it should. So this creates the flip flop effect.

I'm trying some things now, will let you know soon what I find.
Reply to top


Messages In This Thread
Setting float - by kooibosmania - 08-18-2020, 04:19 AM
RE: Setting float - by Rob F - 08-18-2020, 06:02 PM
RE: Setting float - by kooibosmania - 08-19-2020, 10:00 AM
RE: Setting float - by Rob F - 08-19-2020, 06:53 PM
RE: Setting float - by Rob F - 08-19-2020, 10:27 PM
RE: Setting float - by kooibosmania - 08-21-2020, 12:24 PM
RE: Setting float - by Rob F - 08-21-2020, 06:07 PM
RE: Setting float - by loksik.lubos - 01-31-2021, 08:52 AM
RE: Setting float - by Rob F - 01-31-2021, 05:44 PM
RE: Setting float - by loksik.lubos - 02-01-2021, 01:29 PM
RE: Setting float - by Rob F - 02-01-2021, 05:46 PM
RE: Setting float - by loksik.lubos - 02-04-2021, 04:13 PM
RE: Setting float - by Rob F - 02-04-2021, 09:48 PM
RE: Setting float - by loksik.lubos - 02-05-2021, 04:25 PM
RE: Setting float - by Rob F - 02-05-2021, 08:12 PM
RE: Setting float - by loksik.lubos - 02-06-2021, 01:08 PM
RE: Setting float - by Rob F - 02-06-2021, 08:49 PM
RE: Setting float - by loksik.lubos - 03-07-2021, 04:14 PM
RE: Setting float - by Rob F - 03-07-2021, 05:00 PM
RE: Setting float - by loksik.lubos - 03-14-2021, 03:42 AM
RE: Setting float - by Rob F - 03-14-2021, 04:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Issues with Setting Up Telemetry BlakeD 1 1,290 05-27-2023, 05:30 PM
Last Post: Rob F

Forum Jump:

Current time: 05-02-2024, 01:24 PM