Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Peter Gonczy
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Peter Gonczy

    @Peter Gonczy

    0
    Reputation
    2
    Posts
    183
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Peter Gonczy Follow

    Best posts made by Peter Gonczy

    This user hasn't posted anything yet.

    Latest posts made by Peter Gonczy

    • Dooya DC1802 sniffing and repeat

      I really get stucked at it and need some help.
      My main goal is to control my shutters with my arduino uno. I have this dooya dc1802 remote.
      What i can achive now is that:

      • list itemIm using this sketch https://github.com/sui77/SimpleRcScanner to receive the timings.

      • Then paste the timings here https://test.sui.li/oszi/
        and what i get is this:0_1553813721928_cf35f7d7-a976-4a25-9521-26fdac3b356f-image.png
        0_1553813761267_0deae841-f80c-4529-a752-ed463e8fa508-image.png

      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

      
      
      int TRANS = 10;
      
      
      void setup() {
        Serial.begin(9600);
        Serial.println("Ready...");
        pinMode(TRANS, OUTPUT);
      }
      
      void loop() {
        Serial.println("Start...");
        
        for(int i = 0; i<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);
          }
        }
        
      }
      

      But nothing works.

      posted in My Project
      Peter Gonczy
      Peter Gonczy