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.
  • M Mike1082

    What a great thread, thanks @petewill for all of the info. I can't wait to give this a try.
    After reading through all of this, am I correct in assuming that using the slider control (or programming a controller to open the shade to a certain %) has not been achieved?
    I was thinking about this a bit, and thought about perhaps using a few cheap magnetic door sensors along the edge of the window at different positions. You could then attach a small neodymium magnet to the back of the bottom edge of the shade that passes by the door sensors. Each of those door sensors could report a value back to the controller, indicating its position (ie 0,25,50,75,100), and if the MySensors node receives a slider value from the controller, you could round to the closest value, and raise/lower the shade until that value is achieved.
    I'm a complete MySensors/HA/Vera noob, so please excuse my ignorance if this is a ridiculous solution to a simple issue. :grin:

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

    @Mike1082 You are correct. Slider control hasn't been achieved. I have thought about doing something like this but I haven't had too much of a need for it in the 1+ years I have had the blinds. Usually up or down is all I want. :)

    The one problem I could see with doing this is you will need some sort of device placed at the blind. Currently all you need is power (battery or hard wired) and this works. If you want to report values back, you will need another sensor there. Not a deal breaker but not ideal. Also, you would need a way to confirm that it stopped (in case the signal didn't get received from the blind). If you are seriously considering doing this you may want to look into using a reed switch and mounting it on the spindle that turns when the blinds go up/down. That way you get a cleaner install with more frequent updates.

    I'd love to see it if you end up doing it. It would be a fun project!

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

    1 Reply Last reply
    0
    • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          12

                                          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