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 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 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 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<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n