<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dooya DC1802 sniffing and repeat]]></title><description><![CDATA[<p dir="auto">I really get stucked at it and need some help.<br />
My main goal is to control my shutters with my arduino uno. I have this dooya dc1802 remote.<br />
What i can achive now is that:</p>
<ul>
<li>
<p dir="auto">list itemIm using this sketch <a href="https://github.com/sui77/SimpleRcScanner" rel="nofollow ugc">https://github.com/sui77/SimpleRcScanner</a> to receive the timings.</p>
</li>
<li>
<p dir="auto">Then paste the timings here <a href="https://test.sui.li/oszi/" rel="nofollow ugc">https://test.sui.li/oszi/</a><br />
and what i get is this:<img src="/assets/uploads/files/1553813722349-cf35f7d7-a976-4a25-9521-26fdac3b356f-image-resized.png" alt="0_1553813721928_cf35f7d7-a976-4a25-9521-26fdac3b356f-image.png" class=" img-fluid img-markdown" /><br />
<img src="/assets/uploads/files/1553813761379-0deae841-f80c-4529-a752-ed463e8fa508-image-resized.png" alt="0_1553813761267_0deae841-f80c-4529-a752-ed463e8fa508-image.png" class=" img-fluid img-markdown" /></p>
</li>
</ul>
<p dir="auto">And this is where i get stucket and don't know what to di whit this data. I already tried using the modified rc-switch lib with timing arrays without success, or simply put these High low changes manually lie this</p>
<pre><code>

int TRANS = 10;


void setup() {
  Serial.begin(9600);
  Serial.println("Ready...");
  pinMode(TRANS, OUTPUT);
}

void loop() {
  Serial.println("Start...");
  
  for(int i = 0; i&lt;4; i++){
    digitalWrite(TRANS, LOW);
    delayMicroseconds(7800);      
    digitalWrite(TRANS, HIGH);
    delayMicroseconds(4660);
    digitalWrite(TRANS, LOW);    
    delayMicroseconds(1510);
    sendData();
  }
  Serial.println("Stop...");
  delay(5000);
  
  //stop
  
  
}

void sendData(){  
  for (const char* p = "0101110000110100110001111010010100111100"; *p; p++) {
    
    if (*p != '0'){
      digitalWrite(TRANS, HIGH);
      delayMicroseconds(660);
      digitalWrite(TRANS, LOW);
      delayMicroseconds(410);
    }else{
      digitalWrite(TRANS, HIGH);
      delayMicroseconds(310);
      digitalWrite(TRANS, LOW);
      delayMicroseconds(760);
    }
  }
  
}
</code></pre>
<p dir="auto">But nothing works.</p>
]]></description><link>https://forum.mysensors.org/topic/10285/dooya-dc1802-sniffing-and-repeat</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 22:51:32 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/10285.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Mar 2019 23:02:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dooya DC1802 sniffing and repeat on Tue, 14 May 2019 02:58:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peter-gonczy" aria-label="Profile: peter-gonczy">@<bdi>peter-gonczy</bdi></a> I'm only a noob, but is that the whole sketch? Doesn't it need to be setup so it talks to the gateway?</p>
]]></description><link>https://forum.mysensors.org/post/99187</link><guid isPermaLink="true">https://forum.mysensors.org/post/99187</guid><dc:creator><![CDATA[Homer]]></dc:creator><pubDate>Tue, 14 May 2019 02:58:19 GMT</pubDate></item></channel></rss>