Raspberry Pi Blind and Shade Motor Control
Bulletin

BroadLink® RF-IR Blaster Automation Hub: Need an easy phone app system? Take a look at our affordable blind and shade hub, operated by Android and IOS apps. This RF-IR blaster hub can "learn" RF radio signals for our blind motors and skylight/window openers. It is also has IFTTT event triggering (if-this-then-that) and IR learning.

Turn all your old phones and tablets into powerful WiFi home automation controllers!

Mermet® Custom Shades: Our DIY shade and blind motor kits are popular, but for those of you wanting a more complete solution, we are now offering high quality shade and blind fabrics from Mermet®, mounted on standard tubing, with hem bar. Our motors just slide in and lock in place - no fuss no muss! Please check our Custom Blinds and Shades website for info.

Raspberry Pi Home Automation: Shade/Blind Motor Configuration

Adrian Biffen, Senior Partner

The Raspberry Pi ® is a very affordable, credit-card sized SBC (Single Board Computer) that makes a very effective home automation system when used with Stefan Stromberg's OpenNetHome automation software, as discussed in the previous article.

Raspberry Pi<sup>®</sup> home automation plan view showing RollerTrol<sup>™</sup> blind motor control Please note that this system does not require an external Internet connection to operate, so if you are concerned about security, this is a good choice. You can access it remotely with an Internet connection, but that functionality is optional.

This article will discuss the process of creating devices for remote control of our shade and blind motors, window and skylight openers, and other items. The devices can be subsequently placed on the plan view, as seen in the picture below.

You can also have multiple plan views if you want to focus in detail on a particular area or room in your floorplan view; the next article (part 5) will explain this capability in depth.

The above picture is an actual screen capture of the home plan view (running on the Raspberry Pi). Note that the OpenNetHome system has the ability to display the state of the blind, whether it is fully opened or closed, or part way (Down 5% in picture).

This is accomplished by entering the actual measured excursion time, so that the system can calculate the position. It is re-set whenever it reaches an upper or lower travel limit.

Configuring the USB Transceiver

The first step is to implement device creation for the 433 MHz USB transmitter dongle that sends the radio signals to the addressable receivers used for our motors.

We are using the Jeelink product from Jean-Claude Wippler's excellent Jeelabs product line, sold in the US by Modern Devices. There are 2 versions, please choose the Jeelink Classic Version (433 MHz, RFM12B chip).

You simply plug it in, select the USB port and create the RF transmitter device. For those of you interested in more information about this USB transceiver, we'll cover it later in more detail in another article. Once the Jeelink is installed, you have to select it and activate the RollerTrol motors:

All Items => Hardware => Jeelink => Receiver/Transmitter Protocols (click the button with 3 dots ... to select)

Please note that the screen captures below may be slightly out of date as Stefan's software evolves.

Configuring a Blind Motor

Raspberry Pi® home automation hub: creating a new device The process of creating a blind or shade entity is quite straight forward, here are the steps:

  • Click or select Create/Edit from the main menu. This will display a list of available devices that can be created, as shown in the picture at right.
  • Scroll down until you reach the RollerTrol Blind Motor selections.
  • You can select our original R series protocol type, or the newer G series. For the purposes of this article we will use the G series.
  • Please note: G series selection will also work with our window and skylight openers - they use the same remotes.
  • Click or select Create Item, this opens the next screen.

You can think of this configuration as just another remote control; it behaves in a very similar manner as our hand held and wall mount remote controls. For the purposes of this article we are going to assume that you have already created a master channel with a regular hand held or wall mount remote control.

This will allow us to simply clone the master channel to the automation system. Note that only the master remote can set travel limits. You could do it the other way around - configure this as a master channel, and clone it to a hand held or wall mount remote. This article explains how to create a master channel.

You can fill in the properties in a similar way to what you see below:

  • Item Name: This will be your identifier, call it whatever you like
  • Remote ID: This is a virtual ID, you can assign any number
  • Channel: Each Remote ID can have up to 15 channels
  • Travel Time: Set this (in seconds) to be slightly longer than a full excursion
  • Position 1: Set your percentage for an intermediate stop position (based on travel time)
  • Position 2: Set your percentage for another intermediate stop position (based on travel time)
  • Transmission Repeats: default 15 is typical
  • Room: select the room where the device will be located

Raspberry Pi® blind motor configuration emulates RollerTrol remote controlWhen you have entered all the properties, you can press the SAVE button and proceed with the cloning process.

The cloning process is very simple, here are the steps:

  • Make sure the REMOTE is set to the master channel you want to clone; the next actions must be completed within 6 seconds of each other.
  • Press and release the P2 button TWICE on the REMOTE that holds the master channel, the motor will beep once and jog each time.
  • Press and release the P2 button ONCE on the OpenNetHome screen, the motor will beep 7 times and jog.
  • At this point, you are finished - the UP/STOP/DOWN/TOGGLE buttons will work, and the travel limits will not be changed.

When you have confirmed the operation, you can press the SAVE button to complete the process.

If you prefer that the automation system is the master channel, this article explains the process of creating a master channel.

Raspberry Pi® blind motor device selectionYou can access the settings for a particular device at any time, simply by selecting

All Items => Actuators

The control panel for the motorized item (blind, shade, window/skylight opener, etc) will appear on the right hand side of the screen. You can operate it manually with any of the control buttons. Click or press the name of the device and the settings dialog will appear.

Please Note: Our blind motors and window openers are operated with wall mount and hand held controls, and our system is designed to allow automation to be added at any time. This means you can start with our simple remote controls and add the automation later, and take your time with it. Our remote controls will continue to function while you build your automation system and will also continue to function after the automation is activated.

You can find out where to buy the Pi 2 Model B unit by searching for this phrase: "buy a pi [country]"

Here are some examples using the DuckDuckGo search engine that doesn't track you:

buy a Pi USA

buy a Pi Canada

buy a Pi Australia

We sincerely hope you enjoy using these articles; if you have any questions, please feel free to contact us at any time!

PART 1: Raspberry Pi As A Home Automation Controller: Introduction

PART 2: Raspberry Pi As A Home Automation Controller: Using NOOBS to Install Raspian

PART 3: Raspberry Pi As A Home Automation Controller: Installing OpenNetHome Software

PART 4: Raspberry Pi As A Home Automation Controller: Creating a Window Blind Device (YOU ARE HERE)

PART 5: Raspberry Pi As A Home Automation Controller: Using 3D Software to Create your Floor Plans