Automatic control of sunblinds with a light sensor and a wind sensor 0-10V
Use case
Your customer would like to use an analogue light sensor and an analogue wind sensor to automatically control the sunblinds.
The sunblinds should close when a push button is pressed, and the following conditions are met:
the wind sensor measures a wind speed of less than 30 km/h
the sun sensor measures a light intensity higher than 30 000 lux
the room temperature is higher than 22°C
To avoid the sunblinds closing and opening constantly, the conditions above should be met for at least 2 minutes before the sunblinds open or close.
Automatic control is only possible from sunrise until sunset.
To control the sunblinds manually, a motor control is available but it can only be used when the wind sensor measures a wind speed below 30 km/h.
Procedure
Creating the controls, the devices and the time schedule
Create an analogue wind sensor (SENS1). Set the 0V and 10V values as follows:
Set 2 km/h for 0V
Set 200 km/h for 10V
Create an analogue light sensor (SENS2). Set the 0V and 10V values as follows:
Set 600 lux for 0V
Set 100000 lux for 10V
Create a daily time schedule (TIME1) from sunrise until sunset.
Create the controls listed below.
a thermostat (THT1)
a single push button (with led) (PB1) to turn the automation on or off
a motor control (PB2) to be able to control the sunblinds manually
Create the devices listed below.
sunblind (MOT1)
virtual device (VIRT1)
To keep this example simple, the thermostat is not linked to a routine. In a real-time installation every thermostat should be linked to a routine.
You can also use a push button with LED(s) and comfort sensors instead of a thermostat.
You can also use push buttons with LED(s) and comfort sensors instead of thermostats, or a combination of both.
Creating the basic actions
Create a basic action (BASIC1) to open the sunblind (MOT1) with the motor control (PB2).
Create a basic action (BASIC2) to turn the automatic control of the sunblind on or off with the single push button (PB1) and the virtual device (VIRT1).
Creating the conditions
Create a condition (COND1) for closing the sunblinds. Use the following logic:
IF (SENS1: Wind value < 30 km/h) and (SENS2: Light value > 30000 lux) and (THT1: Ambient temperature > 22°C) and (TIME1: On/off = true) and (VIRT1: Value= true)
THEN MOT1: Motor movement = closed with Delay = 2 min
ELSE leave empty
Create a condition (COND2) for opening the sunblinds. Use the following logic:
IF (SENS2: Light value < 30000 lux) and (VIRT1: Value = true)
THEN MOT1: Motor movement = open with Delay = 2 min
ELSE leave empty
Create a condition (COND3) to block the movement of the sunblind with the motor control (PB2), the touchscreen or the app, when the wind sensor measures a wind speed higher than 30 km/h. Use the following logic:
IF (SENS1: Wind value > 30 km/h)
THEN MOT1: Motor movement = open with Delay = min 59 sec and MOT1: Motor movement = lock with Delay = 2 min
ELSE leave empty
By using the delays in the conditions above, the opening or closing of the sunblind is not constantly triggered. The sunblind opens or closes when the conditions are met for longer than 2 minutes (TRUE).
Filling the cabinet and addressing the devices
Fill the cabinet with ... | and address the following devices ... |
---|---|
an analogue module (MOD1) |
|
a motor module (MOD2) | the sunblind MOT1. |
Example
Click here to download the programming example (nhc2 file).