Relay Dependency #934
Replies: 8 comments 7 replies
-
I think this should work for you: https://theyosh.github.io/TerrariumPI/faq/how-to-use-a-relay-multiple-times/ |
Beta Was this translation helpful? Give feedback.
-
I already tested it that way per your suggestion. When I first setup and tested the duplicate relay, before adding it to the enclosure, I did test it manually in relays. It does work correctly there. When I toggle the Script Relay it toggles on the actual relay, and off again when I toggle off. **To keep things from getting complicated I do delete the "area" after my test. I don't want it turning on while I am not there. Also start with fresh settings for a test. I was wondering, I noticed when adding more than one relay, we have the options on, each relay, for delay on and delay off. They are coded for minutes, not sec. When dealing with a water pump, a lot can happen in a min. Is there a way, maybe behind the scenes, to set that delay in seconds? Maybe setting an off delay there would force the toggle? |
Beta Was this translation helpful? Give feedback.
-
I am testing with only one enclosure at the moment. I start with just the plain Humidity Sensor. Alarms are 60-80%. I have the two relays. RDC-2_R-Rain (Solenoid) and RS-2_Pump (Guess). 20 sec on. 40 sec settle. No delays. High Alarm is set to ignore. I'm going to try a Timer scenario. See how that works. |
Beta Was this translation helpful? Give feedback.
-
I tried a timer with the rain solenoid relay. and duplicate pump relay. I set it for 8:45P to 8:46P on for 20 sec and off for 40 sec. Both relays turned on and off on time as they should. So, at this point, with the test so far, the sensor based trigger has a problem turning off the duplicated relay. Remember it does turn off the real relay properly. |
Beta Was this translation helpful? Give feedback.
-
Well that didn't work. It seems that if there are a solenoid relay and a duplicate script relay on the same area it will not stop the scripted duplicate relay. It just keeps running. I currently have a timer situation going on. This is not what I want but it seems to be working. I would rather the pump and solenoid relays be triggered together from the humidity sensor low alarm. What I have done is created a separate area for the pump. I have the pump relay on a timer running for 3 min. Then I have my 3 enclosures setup with each solenoid relay scheduled 1 min apart with 30 sec on and 30 sec settle time. |
Beta Was this translation helpful? Give feedback.
-
I figured it out... I tied the signal from each of the solenoid relays to the signal of the pump relay with a diode on each one. Now I only have to trigger the one Solenoid Relay with the Enclosure Area. When one of the Humidity Alarms is Low, it will activate the rain solenoid for 20 sec. I have a 600 sec settle time so the Alarm will not trigger the solenoid again for 10 min. If the Alarm is still Low the rain will then trigger again. The diodes keep the signal from back activating the other relays. Since it is only triggered with a ground, no other components needed. |
Beta Was this translation helpful? Give feedback.
-
Update. While this appeared to work correctly. The pump would occasionally stay on. So, I decided to try a pull-up resistor on the pump. I attached a 10K resistor to the pump relay signal. I just did it a little while ago so I will update later this week. |
Beta Was this translation helpful? Give feedback.
-
Working really well. I think the original problem, with the duplicate relay script, would have been solved with a pullup resistor. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thanks for such a wonderful system.
I have a Hutch with 3 separate enclosures. Up to now I have been manually controlling the humidity by watering the substrate once or so a week. One of my habitats actually has a rain system that is running once a day for 10-15 sec just to keep the humidity up.
I now want to change things up a bit. I want to branch out of my one water container with one pump and control the humidity for the 3 separate habitats with solenoid valves. To do this I was thinking of having one relay turn on the pump and another turn on the solenoid. So humidity in habitat 1 goes low, Relay 1 for the pump turns on, and Relay2 for habitat 1's rain. Humidity in Habitat 2 goes low Relay 1 for the pump turns on and Relay 3 for Habitat 2 rain comes on. Same deal for Habitat 3. I want to use one relay for pump all 3 enclosures. Is this possible or do you have another suggestion?
Beta Was this translation helpful? Give feedback.
All reactions