This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed

nrf905

Did someone already do something with their tranceivers. I hooked one up the an Arduino Uno hoping to get some readings for unrecognized devices (on 433 and 868) but I didn't find the correct sketch yet... Anyone managed to do this?
http://blog.zakkemble.co.uk/nrf905-avrarduino-librarydriver/

Comments

  • bvdbosbvdbos Member
    I would think the following code would be a start. I'm not that experienced in Arduino. While looping the channels, I see no data when pressing a kaku-remote but probably has to do with the modulation (link) which means the nRF905 can't be used with kaku (and probably quite some more devices if I understand correctly)?
    // Includes
    #include 
    #include 
    
    // Variable
    int tChannel = 0;
    
    // Setup
    void setup()
    {
      // Start up
      nRF905_init();
     
      // Put into receive mode
      nRF905_receive();
    
      // Serial
      Serial.begin(9600);
            Serial.print("start");
    }
    
    // Loop
    void loop()
    {
      // Frequency instellen
      nRF905_setChannel(NRF905_BAND_433, tChannel);
      delay(20);
    
      //NRF905_BAND_433
      if(nRF905_airwayBusy())
      {
          Serial.print(tChannel);
          Serial.print(": ");
          Serial.print("Bussy");
          Serial.print("\n");
       
        byte tBuffer[NRF905_MAX_PAYLOAD];
        if(nRF905_getData(tBuffer, sizeof(tBuffer)))
        {
          Serial.print(tChannel);
          Serial.print(": ");
          Serial.print("Data");
          Serial.print("\n");
        }
      }
     
      // Channel
            Serial.println(tChannel);
      if(tChannel == 511)
      {
        tChannel = 0;
      }else
      {
        tChannel += 1;
        delay(100);
      }
    }
This discussion has been closed.