Roller Blind Controlled Via Web Browser With CORE2 and RPi




Make my roller blind move

We think it is boring to open and close again and again roller blinds. It is simple to add some motor to make it move, but we want to control it via internet, so we decided to use Core2, because it provides IoT features in easy way. We wanted to create user-friendly DIY mechanism for roller blind, so we designed 3D printed elements.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Assembly

The elements of the enclosures are 3D printable and available on github here. The other components are listed above. When assembling mechanism to your roller blind window, follow this instructions:

1. Put DC motor in the "Roller_Motor_Enclosure" part and tighten it with two M3x6 screws.

2. Close the motor with "Roller_Motor_Enclosure_Bottom", make sure that the wires are outside the box and tighten it with two M3x10 screws

3. Attach "Roller_Shaft" on the motor's shaft and tighten it with M3x6 screw.

4. Wrap a string of a roller blind on the shaft and cover it with "Roller_Shaft_Enclosure", then tighten it with two M3x30 screws.

5. Put microswitch in the "Roller_Endstop_Enclosure" and cover it with "Roller_Endstop_Enclosure_Top".

6. Solder some wires to the "C" and "NC" connectors of the microswitch, make sure you can plug it to the CORE2 hSens1.

7. Close the loop of the string and attach motor mechanism, so the string is tight. Then attach the endstop mechanism on the top of the frame of the window. The glue or the tape is the best option. Optionally you can cover screws with "Roller_Hiding_Screw" elements.

Step 2: Circuit Diagram

Everything we need to program the device via Husarion Cloud is described on the Husarion's webpage:

We have chosen option with Raspberry Pi 2, because we have one. It is also possible to connect Core2 with popular ESP8266 as you can see on their site.

1. Connect Raspberry Pi to the RPi connector as described on the documentation here.

2. Connect microswitch to the hSens1 port: normally closed pin ("NC") to the pin 1 and common pin ("C") to the GND (hSensor description).

3. Connect DC motor to the hMotC port following documentation from Husarion's webpage (hMotor description).

Step 3: Program

It is unusual, how programming CORE2 is convenient with its Husarion Cloud. We can leave any USB cables, it is programmed and then could be controlled through wifi, and we were surprised, how easy it is.

1. Connect your CORE2 via Husarion Config app (available on Google Play here) to your account and your network (Connecting to the cloud). The app has its own tutorial, so just follow instructions.

2. Use our code and web user interface, it is open-sourced. Modify power of the motor, direction, length of the window or anything you need as you want.

3. Program CORE2 using Husarion Cloud and control it via web browser.

Source code

The code is available here on github.

Step 4: Results

Finally you can check if it works. We present to you our roller blind on rough and ready window and attached mechanism controlled via web browser in a phone.

We think about expanding our app with weather informations and connecting more roller blinds. Every time you turn on the device (or reset) it calibrate itself autonomously: roller blind goes up to the endstop.

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    8 Discussions


    2 years ago

    Hi! It looks so cool! I'm trying to make something similar. Could I just ask where you bought the small window blind and the wooden stand from? Or did you make it yourself? Thanks

    1 reply

    Reply 2 years ago

    The window is made only for presentation purpose, you can attach it on the real window of course :D But if you want exactly the same window - I suggest buying a simple frame with a glass and making a wooden stand for it :)


    Reply 3 years ago

    great project but hope to see the smaller board a lot cheaper,i see its $90 ,plus if use the wifi esp8266 looking at over $150 in electronics


    Reply 3 years ago

    ESP8266 with customized adapter is in the box with Core2 for free ;) I just wanted to check here if it really works with Raspberry Pi, and indeed, it works


    3 years ago

    nice work. I believe that there is way too much electronics involved, but, hey-Intel has to sell its boards somehow. Your comment is that the cloud environment is simple to implement, but I just can't see that.
    If you can shrink it down to something like a Pi zero, wifi dongle and a motor hat, then it would seem that a MQTT based software solution would be a better fit for a window shade.

    1 reply

    Reply 3 years ago

    Of course, It was my first project and I just wanted to use some features of the board, next projects are based on the ESP8266, so it doesn't even need RPi, and as I said, I'm waiting for the smaller version of the controller. Just took it as first step in using that. I hope I'll made some more sophisticated projects to share ;)