From 949051c64f589a2a5ffe2e443fe09be84ddd7833 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Mon, 9 Dec 2019 12:03:07 +0100 Subject: [PATCH] Update Blinds-and-Shutters.md --- Blinds-and-Shutters.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Blinds-and-Shutters.md b/Blinds-and-Shutters.md index f2da71484a..73062bad7a 100644 --- a/Blinds-and-Shutters.md +++ b/Blinds-and-Shutters.md @@ -1,5 +1,5 @@ !> **This feature is not included in precompiled binaries.** -To use it you must [compile your build](compile-your-build.md). Add the following to `user_config_override.h`: +To use it you must [compile your build](Compile-your-build.md). Add the following to `user_config_override.h`: ``` #ifndef USE_SHUTTER #define USE_SHUTTER // Add Shutter support (+6k code) @@ -62,7 +62,7 @@ With four shutters, eight `Relay` components are needed. If manual operation Using manual operation `Switch` pairs may require setting `SwitchMode 4` (inverse follow) for proper switch behavior. ## Pulse Motor Support -There are shutters that have two relays but only need a pulse to start or stop. Depending on the current situation a pulse will stop the shutter or send it into a specific direction. To use these kinds of shutters a [`PulseTime`](Commands#pulsetime) must be defined on each relay. The minimum setting that seems to make it work consistently is `2`. A setting of `1` does not work. If the shutter moves too fast and does not react to a stop command, increase the setting to `3` or `4`. +There are shutters that have two relays but only need a pulse to start or stop. Depending on the current situation a pulse will stop the shutter or send it into a specific direction. To use these kinds of shutters a [`PulseTime`](Commands.md#pulsetime) must be defined on each relay. The minimum setting that seems to make it work consistently is `2`. A setting of `1` does not work. If the shutter moves too fast and does not react to a stop command, increase the setting to `3` or `4`. ## Stepper Motor Support You can also use the favourite NEMA stepper motors to operate your shutters and blinds. You have to configure them very similar to the Circuit Safe (Shuttermode 1) configuration. To operate the NEMA you need a stepper driver module. The A4988 are very vamous. The most important pins of thisboard are: EN (enable), DIR (direction), STP (Stepper) for input. We use EN and DIR as RELAY1i and RELAY2. Please be aware to use the INVERSE relay for the enable. To send the STP Signal we will define a PWM on the next GPIO. You number of the PWM, e.g. PWM1 must match to the number of the shutter. e.g. shutter1. You cannot use any other PWM devices on the same ESP, when using the stepper motor because I need to work with the frequency. This is a global variable for all PWM ports. Last not least we need on the next GPIO a COUNTER1. This is for measuring the steps and send the stepper to the correct position. COUNTER1 must be connected to PWM1. If not your device will run forever.