Creating a button in PC Access/SnapLink to control relays

abernut

Member
I have an OmniPro ii that I have been using just for security.  Can't afford cameras,music,lights etc.... just yet.
 
I just purchased the 8 port relay board I would like to use to control my irrigation with. The wiring seems pretty easy.  But I have no experience in the programming part.
 
What I would like to achieve is:
Turn on Relay 1 1hr before sunrise, turn off after 30 minutes.
Then turn on Relay 2 for 30 minutes.
And continue through zone 6.
 
 
I would also like a way to have a button programmed for each zone that I can access via SnapLink on my phone.  I don't have any panels in the house yet.
 
Any point in the right direction would be greatly appreciated.
 
Thanks,
Mike
 
To get the button to show up in the contol section of Snap Link you need to label each relay in PCAcess.
Then in Automation tab start an automation block to trigger at one hour before sunrise. While still in the editor the next line shoul be an action to turn relay1 on for 30 minutes.
For each subsequent relay increment trigger by 30 minutes. (30 min before sunrise, etc)
There may be more elegant solutions using timers an other devices but that is the simplest form. Some people have added a specific Off command as a backup to make sure the sprinklers are off.

There is a good tutorial here:
http://cocoontech.com/forums/index.php?/topic/19877-HAI-Programming-101:-How-The-Code-Works
 
You're gonna hate this:
http://www.amazon.com/gp/product/B009T1O9NU/ref=oh_aui_detailpage_o06_s00?ie=UTF8&psc=1
 
That's what I use for the same thing as you. Would've saved you a ton of money on the HAI relay board.
 
 
As far as the buttons. The best way I found was to make two buttons for each zone you have ( one on/one off), and another button to run a program. That way if you want to run one zone for testing or just to get a little more water, just hit that zones button.
So go to buttons in PC Access and name a button for each zone (ie front yard, side yard etc), then name one for the program itself (ie Run Sprinkler or whatever you want). Then go to Automation, create a new automation block (and comment block if you want) that will turn on zone 1.  
WHEN <button for zone 1 on name>
turn on <relay for zone 1>
 
WHEN WHEN <button for zone 1 off name>
turn off <relay for zone 1>
 
This is not the actual program obviously but it'll get you in the right direction.
Repeat for all zones.
 
The 'program' button will say turn on <relay for zone 1> for 30 minutes and turn on a flag for 30 minutes. Use that flag as a trigger for the next zone, so when <flag for zone 1> is off, turn on <relay for zone 2> for 30 minutes and turn on a flag2 for 30 minutes.
Repeat for all zones.
 
Okay,
I created a button Number:001, Name:Zone1, Description:Flower Bed.
 
Then added this program block.
1. WHEN Flower Bed ON
THEN Flower Bed ON FOR 10 SECONDS
 
Saved to controller
 
Question one: Does my programming look correct
Question two: The button is not showing up in SnapLink
 
Thanks guys.
 
Mike
 
Looks good. I don't use snaplink so I can't say for sure but is there a way to "sync" it with the panel after making changes? Maybe disconnect and reconnect?
 
Actually, looking at that again, I don't think buttons give you an option of 'On' in the programming.... could be wrong, just going off the top of my head here. I think it should be "WHEN Flower Bed" only. Are you sure about that code?
 
How do I update the Snaplink Controller file?
I have snap link on my Android.
I have two connections.  One for when I am home on my network and one for when I am away and connect through a static route I have on my router.
 
When I view status on my phone it shows the correct time and status.
 
I am still getting my butt kicked here.
I am trying to create two buttons.  One to turn zone1 on and one to turn zone1 off.
 
I have the following setup:
Outputs:
#385 - Annotation:OUT1 - Name:Zone1 - Description:Flower Beds Around House
 
Buttons:
#001 - Name:Zone1ON Description:Flower Beds Around House On
#002 - Name:Zone1OFF Description:Flower Beds Around House Off
 
Programming:
WHEN Flower Bed Around House ON
THEN Flower Beds Around House ON
 

WHEN Flower Bed Around House OFF
THEN Flower Beds Around House OFF
 
 
Right now Out Put one is outputting 12VDC no matter what button I run.
 
Figured it out.
I had output 1 set as Switched Power.
I changed it to General Purpose and now both buttons work correctly.
 
Thanks for your help.
 
Tomorrow I will try and write a program to turn on the the irrigation system Monday, Wed, and Friday.  Starting one hour before sunrise, running each zone for 30 minutes, one zone at a time.
 
Wish me luck.
 
If I get it working I will post the results here.
 
Mike
 
I must be doing something wrong here.
I have the outputs of the OmniPro ii wired to the terminals of the relay board.
When I turn on button 1 (OutPut1) I get 12VDC at T1 of the relay board but nothing at Relay 1.  I have measured across C and NC, C and NO, 
 
Am I missing something?
 
thanks
Mike
 
I just got done talking to my buddy at work, he's one of our electronics gurus.
He said that the relays out put for C, not the voltage needed to turn on the sprinkler solenoids.
 
 
His idea is to wire one side of all solenoids to the 12VDC Switch on the OmniPro.
Then wire the ground of the 12VDC Switch of the OmniPro to all the C's on the relays.
Then wire the other side of the sprinkler solenoids to the NO of the relays.
 
Will this work
 
The omni will just operate the relays, it doesn't provide the switched power.
You need to connect your 24v ( for sprinklers ) to the common of the relays, daisy chain it to all of the commons.
Then you need to connect the NO of the relays to one zone each.
So when the omni activates a relay, the 24v on the common is sent to the NO and on to the solenoid of the sprinkler, activating it.
 
Back
Top