Controlling Blinds.com RF Dooya Motors with Arduino and Vera
-
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:@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!
-
@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.
-
@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.
@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.
-
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).


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:

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:

Here, I used the last 8 bits for each comand:

Any clues what I might be doing wrong?
Just in case, Im using an Arduino UNO, and I connected it this way:



Thanks in advance!
Your code has an error in the 'action' section of the sketch.
if(a==1){ action = 0b0001000; //code for upIt is missing a digit or bit. It should read:
if(a==1){ action = 0b00010001; //code for upI 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; } -
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.. -
Hello,
there is an other way to control your shutters.
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
-
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:

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:

Any advice would be appreciated. Thanks!
-
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:

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:

Any advice would be appreciated. Thanks!
@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?
-
@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?
@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.
-
@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.
-
@Rantlers Yeah, see if you can find what frequency that remote is communicating on. There must be some specs some where on the remote.
@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:
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:
-
@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:
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:
@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!
-
@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!
-
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.
-
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.
@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.
-
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() { } -
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 downI had use USB Saleae Analyzer sniff code.
But not work, :(

-
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 downI had use USB Saleae Analyzer sniff code.
But not work, :(

-
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 downI had use USB Saleae Analyzer sniff code.
But not work, :(

@かいと 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.
