User: alciro    User
 Original    Translate to:  Deutsch  English  Français  中文  
 

microHomeLan.net

3. Examples of home automation programming

3.1. Basic drive

3.1.1. Single Switch

Example program to control a lamp by the simple action of a switch. If the switch is active the lamp lights if the switch for the light bulb goes off.

Amplifier

  • Using the digital output 1 (DO1) with 10A power relay for connecting a 100W lamp for home automation Unit1.
Outline lighting control power of a simple switch

Control

  • In the same plant automation Unit1 uses the digital input DI1 as connected to a switch actuator.

Program

This is one of the most minor cases with central control home automation switch input to be controlled On the event (that occurs when you turn on the switch) and send the order on the relay. And by controlling Off event (that occurs when you switch off) send the order to turn the lamp relay.

Schema automation central control of a simple switch

3.1.2. Acting as a switch button state change

Lighting control scheme of a button on status change

Example of using a puldador acting as a switch to control a digital output of the plant automation.

Amplifier

  • DO1 Digital Output 1 (relay 10A) of the Unit1 connected to an incandescent lamp.

Control

  • 1 digital input DI1 of the Unit1 connected to a switch.

Program

When doing a short press <0.25 sec in the button Click event occurs that can be used to send the order to reverse the state of an actuator. If a pulse reliza lamp is activated, if performed a second pulse reverses the state off the lamp, and so on.

3.1.3. Control button with pulse time

Control button with pulse time

As in the previous example, a switch acting as a switch to control a digital output of the plant automation.

Amplifier

  • DO1 Digital Output 1 (relay 10A) of the Unit1 connected to an incandescent lamp.

Control

  • 1 digital input DI1 of the Unit1 connected to a switch.

Program

When doing a short press <0.25 sec in the button Click event occurs that is used to send the shutdown command, Off process. If you perform a long press and sustained> 0.25 Ins Down event occurs that is used to send the activation order, On process. If you perform a long press turns on the lamp, if you perform a short press turns off the lamp.

You can also change the order of processes in the event, changing the effect of control, short press activates the lamp and long press stops.

Loading
copyright © 2007-2024  www.alciro.org  All rights reserved.         
Share |