# Dooya curtains Home automation with raspberry pi 4

**URL:** <https://forum.core-electronics.com.au/t/dooya-curtains-home-automation-with-raspberry-pi-4/17632>\
**Category:** Wireless/RF\
**Created:** [20 July 2023 00:39 UTC](https://forum.core-electronics.com.au/t/dooya-curtains-home-automation-with-raspberry-pi-4/17632 "2023-07-20T00:39:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Udara103232](https://avatars.discourse-cdn.com/v4/letter/u/e79b87/32.png) [@Udara103232](https://forum.core-electronics.com.au/u/Udara103232)\
**Post date:** [20 July 2023 00:39 UTC](https://forum.core-electronics.com.au/t/dooya-curtains-home-automation-with-raspberry-pi-4/17632/1 "2023-07-20T00:39:16Z")

</div>

Looking for a python program and 433mhz transmitter to open and close Dooya curtains.  
Dooya curtain come with remote controller DC2702 so far I have found that it works on OOK\_PWM Modulation

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [20 July 2023 02:59 UTC](https://forum.core-electronics.com.au/t/dooya-curtains-home-automation-with-raspberry-pi-4/17632/2 "2023-07-20T02:59:22Z")

</div>

Hello,

Welcome to the forum 🙂

Am I correct in thinking there is a proprietary remote control that is designed to work with these curtains so that other 433MHz devices won’t accidentally be opening and closing your curtains from stray signals?  
Typically we’d need to know a lot about how the manufacturer sends commands to the receiver to be able to emulate it with a different transmitter in the same brand.  
One possible option around this would be to modify an existing Dooya remote control so that you can effectively send button presses to the remote via your Python program. This would basically be replacing the pushbuttons on the remote with outputs from a microcontroller or something similar.

Do you have some more details about what you’re trying to achieve, then we can give some clearer advice on what might be the best path to getting there?

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [20 July 2023 05:15 UTC](https://forum.core-electronics.com.au/t/dooya-curtains-home-automation-with-raspberry-pi-4/17632/4 "2023-07-20T05:15:59Z")

</div>

Hi Udara,

I admire your dedication to doing things the hard way, but in your position, if I was unable to emulate the remote signals, I would just remove the PCB from the remote you have, emulate button presses, and wrap the whole thing up in a nice enclosure.

I’d take a look at Liam’s excellent post on the matter:

> [@Getting started with hacking your electronics](https://forum.core-electronics.com.au/t/getting-started-with-hacking-your-electronics/12799):
>
> I’ve been spending some time building a lot of smaller projects around some niche parts and wanted to share a few tips and interesting techniques. The heart of these project is the [Raspberry Pi Pico](https://core-electronics.com.au/raspberry-pi-pico.html). Emulating a button press This trusty little IC([The SN74HC4066N](https://au.mouser.com/ProductDetail/Texas-Instruments/SN74HC4066N?qs=YhsVCygOPE1gsJI4%2FXFoTg%3D%3D)) in simple terms is a logic level relay - It cant switch too much voltage or current, but is more than capable of toggling IO on parts that you would find around the house. Reading an input On a comsumer part there are of…

If that doesn’t do it for you, we can dig deeper into the radio side of things. My suspicion is either of those libraries isn’t working as you expect, or the Dooya blinds have some kind of incrementing code or something like that.

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [20 July 2023 05:56 UTC](https://forum.core-electronics.com.au/t/dooya-curtains-home-automation-with-raspberry-pi-4/17632/5 "2023-07-20T05:56:46Z")

</div>

Hi James  
Just for information I looked at that link for SN74HC4066N and the Mouser web site says this IC is to be discontinued as the manufacturer is ceasing production. Probably dropping through hole in favour of surface mount.

I have noticed this a bit lately where only the surface mount versions are available. You can’t really blame them as almost everything commercial you buy now is this “new” format and the only ones looking for through hole devices seem to be us “old” characters. Just have to learn to use this stuff but firstly where does one readily purchase these bits  
heers Bob

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [20 July 2023 06:09 UTC](https://forum.core-electronics.com.au/t/dooya-curtains-home-automation-with-raspberry-pi-4/17632/6 "2023-07-20T06:09:03Z")

</div>

Hi Robert,

The move to surface mount is a blessing and a curse for the hobbyist. On the one had you can assemble compact PCBs where you can solder 50 joints in 5s, but it rules out good old fashioned 0.1" prototyping on a breadboard. There have been efforts to remedy this, like SMT protoboards or breakouts:

> **[SMT Breakout PCB for SOIC-14 or TSSOP-14 - 6 Pack!](https://core-electronics.com.au/smt-breakout-pcb-for-soic-14-or-tssop-14-6-pack.html)**
>
> Beguiled by a fancy new chip that is only available in a SOIC or (T)SSOP pinout? This breakout PCB set will make your life much much easier and get you prototyping...

> **[Makerverse SMT Protoboard](https://core-electronics.com.au/makerverse-smt-protoboard.html)**
>
> The gold standard prototyping platform for analogue electronics or high-frequency digital designs.

Gotta be careful I don’t derail this thread 🙂

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [20 July 2023 06:18 UTC](https://forum.core-electronics.com.au/t/dooya-curtains-home-automation-with-raspberry-pi-4/17632/8 "2023-07-20T06:18:40Z")

</div>

Hi Udara,

Could you share a bit more about your hardware setup? What are you using to get these timings? Do you have an oscilloscope or logic analyser? How are you demodulating the signal? Where are you finding info on this radio protocol? Could you link that?

Could you share some pictures of how you’ve got everything hooked up? There’s not too much we can offer for help without more info. I hope you can see how abstract those timings seem without context.
