Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. My Project
  3. Controlling Blinds.com RF Dooya Motors with Arduino and Vera

Controlling Blinds.com RF Dooya Motors with Arduino and Vera

Scheduled Pinned Locked Moved My Project
90 Posts 29 Posters 74.0k Views 24 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #49

    @petewill
    Nice work!

    What kind of battery is powering the blinds.com motor and its receiver? From looking at your video, it appears the blinds.com receiver is constantly listening, and having a receiver constantly listening 24/7 all the time can take quite a lot of power (or, at least it would if it were using an NRF24L01+ or an RFM69, although I of course realize it isn't using either one of those).

    Blinds.com says it can take a refillable "wand" that gives 12 volts. So, would that be 8x D-cell batteries?

    Do you find that you need to change the battery in the receiver often?

    Just trying to get a feel for what it would take to be listening 24/7.

    petewillP 1 Reply Last reply
    0
    • NeverDieN NeverDie

      @petewill
      Nice work!

      What kind of battery is powering the blinds.com motor and its receiver? From looking at your video, it appears the blinds.com receiver is constantly listening, and having a receiver constantly listening 24/7 all the time can take quite a lot of power (or, at least it would if it were using an NRF24L01+ or an RFM69, although I of course realize it isn't using either one of those).

      Blinds.com says it can take a refillable "wand" that gives 12 volts. So, would that be 8x D-cell batteries?

      Do you find that you need to change the battery in the receiver often?

      Just trying to get a feel for what it would take to be listening 24/7.

      petewillP Offline
      petewillP Offline
      petewill
      Admin
      wrote on last edited by
      #50

      @NeverDie Thanks! It is powered by 8 AA batteries in the battery wand. I actually hardwired mine though. I was able to get power to all my windows fairly easily (although my wife would disagree). So, unfortunately I have no idea how long they last. I feel like I remember people reporting about a year but I can't say where I remember that from.

      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

      1 Reply Last reply
      1
      • F frantona

        Hi to everyone! Im very (I mean VERY) new at this, and Im far to be a programer or an specialist, Im just an enthusiastic end user willing to do all of you experts do!

        I have the same problem as Pete had, I have some dooya motors in my blinds and I want to integrate them to my smarthome system. This blinds are controlled by a remote control with 3 buttons, up – down – stop, and they are suppose to be RF, they have awesome range btw (see pics).

        IMG_3770.JPG
        IMG_3072.JPG IMG_3071.JPG IMG_3771.JPG

        First I tried the RC-Switch to sniff the RF code, but the program return nothing, just blank, that’s why I came to this, wich I would like to thank Pete for giving a light at the end of the tunel! (which Im still in).

        I did all the process to sniff the signal of the remotes, and this is what I got and traduced to binary:

        RFSalaBO.PNG

        Not the same wave structure (squared) but I hope it has nothing to do.

        Now Im in the process of testing this code just with the Arduino, but it doesn’t work! I followed the code Pete uploaded and change the highlighted parts with my code, please let me know if I did ok, this are what I changed:

        This first part, I used the first 28 bits of my signal, which is the same in the 3 comands:
        codepart1.PNG
        Here, I used the last 8 bits for each comand:
        codepart2.PNG

        Any clues what I might be doing wrong?

        Just in case, Im using an Arduino UNO, and I connected it this way:
        IMG_3772.JPG
        IMG_3775.JPG
        IMG_3774.JPG

        Thanks in advance!

        DwaltD Offline
        DwaltD Offline
        Dwalt
        wrote on last edited by
        #51

        @frantona

        Your code has an error in the 'action' section of the sketch.

        if(a==1){
                  action = 0b0001000;  //code for up
        

        It is missing a digit or bit. It should read:

        if(a==1){
                  action = 0b00010001; //code for up
        

        I also think you mixed the 'down' with 'stop' actions. Try this:

        if(a==1){
                  action = 0b00010001; //code for up
                  action2 = 0b00001110;
                }
                else if (a==2){
                  action = 0b00010011; //code for down
                  action2 = 0b00001100;
                }
                else if (a==3){
                  action = 0b00010101; //code for stop
                  action2 = 0b00000101;   
             }
        
        

        Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LastSamurai
          Hardware Contributor
          wrote on last edited by
          #52

          I hope its ok that I use this thread for my question, because the topic 'kinda fits:
          does anyone know a (cheap) way to add a motor (that could be controlled by mysensor) to existing blinds? In theory you would only need a small motor I guess, but I am unsure how to connect that to the blinds..

          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jarnsen
            wrote on last edited by
            #53

            Hello,

            there is an other way to control your shutters.

            Dooya shutter control

            It´s itegrated in FHEM. There are also the decryption at the shuttersignal. All 40 Bit and the explain to the 40 Bit.

            sorry for my weak english.

            Jarnsen

            1 Reply Last reply
            0
            • RantlersR Offline
              RantlersR Offline
              Rantlers
              wrote on last edited by
              #54

              Hi @petewill , I've been trying to implement a similar setup to this for the past few days, however I've unfortunately been unsuccessful with the RF sniffing step. I've tried multiple RF receivers (I have a 10-pk), multiple resistors, and multiple audio cables, yet the feedback from Audacity appears the same whether I'm not doing anything or spamming the remote buttons:

              0_1463936657162_audacity1.jpg

              Top is with nothing being pressed, bottom is with hitting buttons on the remote. Might you know of any other possible troubleshooting options I could do? If it helps, below is the remote from blinds.com:

              0_1463936739804_blindsdotcom remote.jpg

              Any advice would be appreciated. Thanks!

              petewillP 1 Reply Last reply
              0
              • RantlersR Rantlers

                Hi @petewill , I've been trying to implement a similar setup to this for the past few days, however I've unfortunately been unsuccessful with the RF sniffing step. I've tried multiple RF receivers (I have a 10-pk), multiple resistors, and multiple audio cables, yet the feedback from Audacity appears the same whether I'm not doing anything or spamming the remote buttons:

                0_1463936657162_audacity1.jpg

                Top is with nothing being pressed, bottom is with hitting buttons on the remote. Might you know of any other possible troubleshooting options I could do? If it helps, below is the remote from blinds.com:

                0_1463936739804_blindsdotcom remote.jpg

                Any advice would be appreciated. Thanks!

                petewillP Offline
                petewillP Offline
                petewill
                Admin
                wrote on last edited by
                #55

                @Rantlers Sorry for the delayed reply... busy day back at work.

                Hmm. Did you zoom in on the audacity waveform? I had to zoom way in. If that doesn't show anything it may be that the remotes are at a different frequency now. That looks different than mine. Is there any indication which frequency the remote is on?

                Also, I was able to actually hear the signal on my speakers when I played it back. It sounded like high pitched digital noise. Do you hear anything like that?

                My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                RantlersR 1 Reply Last reply
                0
                • petewillP petewill

                  @Rantlers Sorry for the delayed reply... busy day back at work.

                  Hmm. Did you zoom in on the audacity waveform? I had to zoom way in. If that doesn't show anything it may be that the remotes are at a different frequency now. That looks different than mine. Is there any indication which frequency the remote is on?

                  Also, I was able to actually hear the signal on my speakers when I played it back. It sounded like high pitched digital noise. Do you hear anything like that?

                  RantlersR Offline
                  RantlersR Offline
                  Rantlers
                  wrote on last edited by
                  #56

                  @petewill Hi Pete, thanks for the response, no worries on the delay! I zoomed in every time I created a new recording, but I could never find a distinguishing pattern like the ones you had. Funny, I did suspect that the frequency from the remote could be different so I have a 10pk of 315mhz tx/rx coming in tomorrow. I'll be rather embarrassed if its as simple as that, but pleased at the same time!

                  I listened to the playback in your youtube video a few times and the strange thing is it almost sounds like I'm getting static and digital noise throughout the entire recordings, regardless of whether I'm pressing buttons on the remote or not. I honestly don't know of anything that would be constantly spitting out a 433mhz signal though.

                  I'll post an update after I get a chance to try the new receivers.

                  petewillP 1 Reply Last reply
                  0
                  • RantlersR Rantlers

                    @petewill Hi Pete, thanks for the response, no worries on the delay! I zoomed in every time I created a new recording, but I could never find a distinguishing pattern like the ones you had. Funny, I did suspect that the frequency from the remote could be different so I have a 10pk of 315mhz tx/rx coming in tomorrow. I'll be rather embarrassed if its as simple as that, but pleased at the same time!

                    I listened to the playback in your youtube video a few times and the strange thing is it almost sounds like I'm getting static and digital noise throughout the entire recordings, regardless of whether I'm pressing buttons on the remote or not. I honestly don't know of anything that would be constantly spitting out a 433mhz signal though.

                    I'll post an update after I get a chance to try the new receivers.

                    petewillP Offline
                    petewillP Offline
                    petewill
                    Admin
                    wrote on last edited by
                    #57

                    @Rantlers Yeah, see if you can find what frequency that remote is communicating on. There must be some specs some where on the remote.

                    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                    RantlersR 1 Reply Last reply
                    0
                    • petewillP petewill

                      @Rantlers Yeah, see if you can find what frequency that remote is communicating on. There must be some specs some where on the remote.

                      RantlersR Offline
                      RantlersR Offline
                      Rantlers
                      wrote on last edited by
                      #58

                      @petewill Checking back in, have good news & bad news...

                      Bad News: No go on the 315mHz receivers. But that's because...

                      Good News: I did some research on the remote since you said you didn't recognize it and was able to find the users manual online:

                      http://www.automatedshadeinc.com/files/controls-hunterdouglas/powerplatinum_remote_guide_5110540054_0912.pdf

                      According to this the RF signal is 2.4ghz (last page of the pdf). However, that being said, am I now SOL in replicating the RF sniffing step with your setup? The only 2.4ghz transceiver I was able to find is this one:

                      http://www.amazon.com/Addicore-nRF24L01-Transceiver-Antistatic-Compatible/dp/B00E594ZX0/ref=sr_1_sc_1?s=pc&ie=UTF8&qid=1464286496&sr=1-1-spell&keywords=2.4ghz+transciever+arduino

                      petewillP 1 Reply Last reply
                      0
                      • RantlersR Rantlers

                        @petewill Checking back in, have good news & bad news...

                        Bad News: No go on the 315mHz receivers. But that's because...

                        Good News: I did some research on the remote since you said you didn't recognize it and was able to find the users manual online:

                        http://www.automatedshadeinc.com/files/controls-hunterdouglas/powerplatinum_remote_guide_5110540054_0912.pdf

                        According to this the RF signal is 2.4ghz (last page of the pdf). However, that being said, am I now SOL in replicating the RF sniffing step with your setup? The only 2.4ghz transceiver I was able to find is this one:

                        http://www.amazon.com/Addicore-nRF24L01-Transceiver-Antistatic-Compatible/dp/B00E594ZX0/ref=sr_1_sc_1?s=pc&ie=UTF8&qid=1464286496&sr=1-1-spell&keywords=2.4ghz+transciever+arduino

                        petewillP Offline
                        petewillP Offline
                        petewill
                        Admin
                        wrote on last edited by
                        #59

                        @Rantlers Dang! That's too bad. Are the blinds blinds.com brand or Hunter Douglas? I just want to make sure they didn't use a similar remote style but change the frequency.

                        The NRF24 is what most of use for these projects so it might not be bad to order some to test. I'm not an expert on radio though so it may not be as easy to "sniff" the signal. I know @Yveaux has built a sniffer but that may only work for the MySensors network. Sorry I can't be more help!

                        My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                        YveauxY 1 Reply Last reply
                        0
                        • petewillP petewill

                          @Rantlers Dang! That's too bad. Are the blinds blinds.com brand or Hunter Douglas? I just want to make sure they didn't use a similar remote style but change the frequency.

                          The NRF24 is what most of use for these projects so it might not be bad to order some to test. I'm not an expert on radio though so it may not be as easy to "sniff" the signal. I know @Yveaux has built a sniffer but that may only work for the MySensors network. Sorry I can't be more help!

                          YveauxY Offline
                          YveauxY Offline
                          Yveaux
                          Mod
                          wrote on last edited by
                          #60

                          @petewill said:

                          that may only work for the MySensors network

                          It will only work for nRF24L01+ chips. It isn't limited to MySensors.

                          http://yveaux.blogspot.nl

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            jfeger
                            wrote on last edited by
                            #61

                            Are you sure you have the economy shades? Ive noticed they have disappeared from Blinds.com, or at least I don't see them anymore.

                            J 1 Reply Last reply
                            0
                            • J jfeger

                              Are you sure you have the economy shades? Ive noticed they have disappeared from Blinds.com, or at least I don't see them anymore.

                              J Offline
                              J Offline
                              jfeger
                              wrote on last edited by
                              #62

                              @jfeger said:

                              Are you sure you have the economy shades? Ive noticed they have disappeared from Blinds.com, or at least I don't see them anymore.

                              I just confirmed with Blinds.com online chat that the economy blinds aren't available anymore, or at least for now. They stated there was a defect in the motors, so they had to pull the product and work on a redesign. No timeline on a release.

                              1 Reply Last reply
                              0
                              • peashooterP Offline
                                peashooterP Offline
                                peashooter
                                wrote on last edited by peashooter
                                #63

                                Thanks!!! this was such a great help in getting my dooya blinds from aliexpress working over network.

                                I couldn't get the test code above to work and my sequence was 40 bits, so i modified the code quite a bit and made it much more efficient. Here is the code if anyone needs to test their code on arduino.

                                //Define Variables
                                #define SEND_DATA 4 //Data pin for RF Transmitter
                                #define ZERO_HIGH 363 //Delay for the high part of a 0 in microseconds
                                #define ZERO_LOW 726 //Delay for the low part of a 0 in microseconds
                                #define ONE_HIGH 726 //Delay for the high part of a 1 in microseconds
                                #define ONE_LOW 363 //Delay for the low part of a 1 in microseconds
                                
                                void setup() {
                                  // put your setup code here, to run once:
                                Serial.begin(9600);
                                
                                String code = "1100111101000001000111011011000100010001";  // Change your blinds code here
                                Serial.println(code);
                                
                                Serial.println();
                                
                                for (int i=0; i <= 10; i++) {
                                
                                  int delayTime;
                                  for(int k=0;k<40;k++) {                  //Change k max value here (40) is mine
                                    char code1 = code.charAt(k);
                                    int highTime;
                                    int lowTime;
                                    delayTime = ((int) code1) -48;        // 48 is zero in ASCII, so 48-48 = 0 as a number.
                                        if (delayTime == 1){
                                        highTime = ONE_HIGH;
                                        lowTime = ONE_LOW;
                                      }
                                      else {
                                        highTime = ZERO_HIGH;
                                        lowTime = ZERO_LOW;
                                      }
                                        digitalWrite(SEND_DATA, HIGH);
                                        delayMicroseconds(highTime);
                                        digitalWrite(SEND_DATA, LOW);    
                                        delayMicroseconds(lowTime);
                                
                                  }
                                  Serial.println();
                                  Serial.print("Round:");
                                  Serial.print(i);
                                  Serial.println();
                                  delay(50);
                                }
                                
                                
                                }
                                
                                void loop() {
                                
                                }
                                
                                 
                                
                                1 Reply Last reply
                                0
                                • かいとか Offline
                                  かいとか Offline
                                  かいと
                                  wrote on last edited by
                                  #64

                                  Please help me,
                                  My remote is dooya. And sniff code:
                                  10000011 01000010 01001001 11100001 00110011 pause
                                  10000011 01000010 01001001 11100001 01010101 up
                                  10000011 01000010 01001001 11100001 00111100 down

                                  I had use USB Saleae Analyzer sniff code.

                                  But not work, :(

                                  alt text

                                  YveauxY petewillP 2 Replies Last reply
                                  0
                                  • かいとか かいと

                                    Please help me,
                                    My remote is dooya. And sniff code:
                                    10000011 01000010 01001001 11100001 00110011 pause
                                    10000011 01000010 01001001 11100001 01010101 up
                                    10000011 01000010 01001001 11100001 00111100 down

                                    I had use USB Saleae Analyzer sniff code.

                                    But not work, :(

                                    alt text

                                    YveauxY Offline
                                    YveauxY Offline
                                    Yveaux
                                    Mod
                                    wrote on last edited by
                                    #65

                                    @かいと please do not cross post. If people can help you they will respond. Be patient!

                                    http://yveaux.blogspot.nl

                                    1 Reply Last reply
                                    1
                                    • かいとか かいと

                                      Please help me,
                                      My remote is dooya. And sniff code:
                                      10000011 01000010 01001001 11100001 00110011 pause
                                      10000011 01000010 01001001 11100001 01010101 up
                                      10000011 01000010 01001001 11100001 00111100 down

                                      I had use USB Saleae Analyzer sniff code.

                                      But not work, :(

                                      alt text

                                      petewillP Offline
                                      petewillP Offline
                                      petewill
                                      Admin
                                      wrote on last edited by
                                      #66

                                      @かいと The pattern for the control may have changed...? Because you have a recording of the remote I would try to record what you are sending with your transmitter and compare the waveform of the two devices. They should be identical. That is how I ended up figuring out the exact timing needed for my motors.

                                      My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                      1 Reply Last reply
                                      0
                                      • かいとか Offline
                                        かいとか Offline
                                        かいと
                                        wrote on last edited by
                                        #67

                                        My remote alt text

                                        1 Reply Last reply
                                        0
                                        • P Offline
                                          P Offline
                                          PeteKnight
                                          wrote on last edited by
                                          #68

                                          Hi guys,
                                          I realise that this is quite an old thread, but i found it a useful source of info when looking for a solution for my 433MHz problem, so I thought I'd share some of my findings...

                                          We have a holiday home in Spain and it has some external 'awnings' that extend over the windows to provide shade from the sun. In Spain these are called Toldos. They operate using tubular motors controlled using 433MHz remote controls – one remote for each awning, three in total. I'd tried all the regular methods to sniff the 433MHz protocol, but none of the standard Arduino libraries would even acknowledge that the remote was sending out any sort of signal. Other remotes, such as garage door openers, PIR detectors etc work fine with my sniffer, so the hardware/software I was using is good.

                                          I eventually resorted to using my sound card and Audacity software to capture the transmissions from the remote controls and this work surprisingly well (I'd tried every digital approach you can imagine up to this point, including a logic analyser, and was reluctant to try the analogue approach but wish I’d trued it earlier).

                                          What I discovered is that when I press either the UP or the Down buttons on the remote, it transmits a timing pulse followed by 40 bits of data. At first I thought that this sequence was repeated 8 times, but I eventually realised that one 40-bit code was used for the first 4 repetitions of the data, followed by a different code for the next 4 repetitions. I later realised that whenever one of these buttons is pressed, the initial 40 bit code is transmitted continuously then the other code is transmitted 4 times when the button is released. When the button is pressed quickly I just get the 'Pressed' code 4 times followed by the 'Released' code 4 times.
                                          The Stop button works slightly differently - only one code is used and this is transmitted at least 4 times and will continue to be transmitted as long as the button is pressed. (in other words, the Stop button has a 'Pressed' code, but not a 'Released' code).

                                          It's actually the 'Pressed' code for each button that controls the awnings. The 'Released' code doesn't seem to serve any function with my awnings.
                                          These 'Released' codes really confused me to begin with, as I when I checked two different bursts of data from the same button using Audacity, I was getting different results. This was obviously because on one occasion I’d picked one of the ‘Pressed’ codes to analyse, but on the second occasion I’d inadvertently analysed a ‘Released’ code. At first I’d thought the analogue capture process was unreliable, but then I thought that maybe some sort of rolling code system was being used. I eventually realised what was going on, but not until I'd spent quite a bit of time cursing the remote control and the PC.
                                          I was able to replicate the transmitted code fairly accuracy using a version of @peashooter's code (thanks!) and this worked well
                                          I’m repeating the ‘Pressed’ code 4 times and it seems to work very reliably.

                                          As well as being able to control the awnings using an Arduino/ESP8266 transmitter, I also wanted to be able to use the existing handheld remotes, so to be able to understand the current position of each awning I needed a way of receiving the commands from the remotes and using them to keep track of each individual awning. This bought me back to the original problem of not being able to find a way to listen to the 433MHz messages from the remotes using any of the current Arduino libraries.
                                          In started delving into the idea of modifying the RC-Switch library, now that I knew the timing characteristics of the signals. At that point I stumbled across this small library:
                                          https://github.com/bjwelker/Raspi-Rollo

                                          It has an Arduino sketch that is written to identify the codes that are being transmitted by remote controllers for blinds, so that these codes can then be used to control the blinds using a Raspberry Pi.
                                          When I ran the Arduino sketch it immediately produced results from my Awning remotes – If only I’d found this earlier!
                                          The results it gives are in a “Quad Bit” format, but when I modified the code to print out the raw received codes they were identical to the results I’d obtained from Audacity.
                                          I’m not interested in using a Pi to transmit the codes to the blinds, and this wasn’t needed anyway, as using @peashooter's code I already had a transmission solution. I’m now in the process of fine-tuning the code that tracks each blind’s position based on the commands that are sent from either the hand-held remotes or my transmitter. The position is simply based on time between the start and stop transmissions and the known time that it takes to fully extend each awning.

                                          The primary reason for wanting to control the awnings is that when it gets windy, I want to be able to automatically retract them. I’m using data from a weather station to monitor the wind speed and if it meets the criteria (very strong winds for a short period, or not quite so strong winds for a slightly longer period, then the awnings will be retracted (assuming that they’re extended of course). I’m also automatically retracting them when it gets dark, as it’s easy to forget to do this and a bit cumbersome to walk around and do all three awnings using the separate hand-held remote controls.
                                          Here’s some pictures of one of the remotes:
                                          0_1531672414982_IMG_3613.jpg
                                          0_1531672435282_IMG_3611.jpg
                                          0_1531672454575_IMG_3610.jpg
                                          0_1531672467499_IMG_3609.jpg

                                          The brand name on the remote is Gaviota and the circuit board says “Designed by D Team” “DC104/105” “V2.1” and “No.DA288”.

                                          Here are what the awnings look like:

                                          0_1531672501926_IMG_3631.jpg
                                          I have no idea what the brand name is on the tubular motors, as they’re hidden inside the mechanism.
                                          Hopefully this saves someone at least some of the pain that I’ve been through to get to this point.

                                          Pete.

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          14

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular