function wp_mail() {} {"id":3447,"date":"2015-07-01T11:52:00","date_gmt":"2015-07-01T16:52:00","guid":{"rendered":"http:\/\/www.serialporttool.com\/sptblog\/?p=3447"},"modified":"2015-10-12T14:00:20","modified_gmt":"2015-10-12T19:00:20","slug":"n-button-application-control-relay-by-ad-input-automatically","status":"publish","type":"post","link":"https:\/\/www.serialporttool.com\/sptblog\/?p=3447","title":{"rendered":"N-Button Automation Control Relay by A\/D Input"},"content":{"rendered":"

N-Button Lite<\/a>\/Pro<\/a> has Automation feature, which allows you to control relays or other devices automatically according to selected rules.<\/p>\n

Here is the example for how to control relay according to A\/D input rule automatically, that is to turn on\/off a relay if an A\/D input value hits a certain point, or goes above\/below a certain point.<\/p>\n

Task: Turn On Relay 1 when AD1 input is below 70, Turn Off Relay1 when AD1 input is 70 or above 70.<\/p>\n

Step 1: Install N-Button<\/a> Lite or Pro, and connect relay board with your computer.<\/p>\n

Step 2: Run N-Button, add the relay board to Devices Manager.<\/p>\n

\"N-Button<\/a><\/p>\n

Step 3: Create a Relay Button for Relay 1, and A\/D Meter for AD1 on your desktop. Click the Relay button to test the relay, and change A\/D input to test the A\/D channel, be sure the value is shown on the  A\/D Meter.<\/p>\n

\"N-Button<\/a><\/p>\n

\"N-Button<\/a><\/p>\n

\"N-Button<\/a><\/p>\n

Note: The range of A\/D input is 0-255, 0 for 0.0 V and 255 for 5.0V.<\/p>\n

Step 4: Click Automation button, add A\/D Input Rule. <\/p>\n

\"N-Button<\/a><\/p>\n

On AD Input Rule panel,  click Setting button to set A\/D input range, select Action for Input Value Stays in Range and Above the Range, shown as below.<\/p>\n

\"N-Button<\/a><\/p>\n

After all above steps, you have finished the Automation setting. Now, Relay 1 will be turned off once AD1 input value is above 70 as long as the relay board is connected.<\/p>\n

You can set other Automation Rules to control you relay boards or devices according to above steps.<\/p>\n

 <\/p>\n

Back to N-Button Pro homepage<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

N-Button Lite\/Pro has Automation feature, which allows you to control relays or other devices automatically according to selected rules. Here is the example for how to control relay according to A\/D input rule automatically, that is to turn on\/off a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[281,268,32,338],"class_list":["post-3447","post","type-post","status-publish","format-standard","hentry","category-nbutton","tag-ad-input","tag-automation","tag-control-relay","tag-n-button-application"],"_links":{"self":[{"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=\/wp\/v2\/posts\/3447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3447"}],"version-history":[{"count":4,"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=\/wp\/v2\/posts\/3447\/revisions"}],"predecessor-version":[{"id":3832,"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=\/wp\/v2\/posts\/3447\/revisions\/3832"}],"wp:attachment":[{"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.serialporttool.com\/sptblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}