Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thank you and question. #8

Open
molecular opened this issue Jun 28, 2020 · 6 comments
Open

Thank you and question. #8

molecular opened this issue Jun 28, 2020 · 6 comments

Comments

@molecular
Copy link

molecular commented Jun 28, 2020

Hi @1technophile,

Sorry to make an issue for this, didn't know how else to contact you.

I'm so glad I found NewRemoteSwitch. Finally I can use my trust smart home products (remote and switches) with those azdelivery send/receive modules I have.

Do you accept donations in cryptocurrency?

I have a question also: reception is very bad with the azdelivery module I have (despite using good antenna (described here: https://chrisklinger.de/2018/01/433-mhz-antenne-zur-verbesserung-der-ansteuerung-von-funksteckdosen) I can only get 7m). Is there anything I can do on the software-side to increase reception sensitivity, like set some tresholds or something? Can you recommend a receiver module that has good reception?

cheers,
molec

@1technophile
Copy link
Owner

1technophile commented Jun 28, 2020

Hi,

Sorry to make an issue for this, didn't know how else to contact you

No problem, alternatively you can use OpenMQTTGateway forum as newremoteswitch is integrated.

Do you accept donations in cryptocurrency?

You should better give to the author below
http://randysimons.nl/

Can you recommend a receiver module that has good reception?

You should use a superheterodyne receiver like this one

@molecular
Copy link
Author

molecular commented Jun 29, 2020

thank you very much, @1technophile, for this valuable information!

I'll check out OpenMQTTGateway using a nodeMCU I have and ordered a superheterodyne receiver.

@tobyworks
Copy link

tobyworks commented Oct 9, 2020

I cant seem it make it work, i have a nodemcu, together with a rf receiver like this one:

https://www.mybotic.com.my/products/RF-Receiver-Module-433MHz/810

connected the 2nd pin to D1, and press the buttons of the KAKU remotes. i have 2 of them:

AYCT-102 and PA3-1000R

and run the example, ShowReceivedCode, but nothing happens when pressing any button on the remotes. Do you know whats going on?

/*
* Demo for RF remote switch receiver.
* For details, see RemoteReceiver.h!
*
* This sketch shows the received signals on the serial port.
* Connect the receiver to digital pin 2 on arduino and digital pin 1 on ESP8266.
* Detected codes example:
 Code: 8233372 Period: 273
 unit: 1
 groupBit: 0
 switchType: 0
*/

#include <NewRemoteReceiver.h>

void setup() {
  Serial.begin(115200);

  // Initialize receiver on interrupt 0 (= digital pin 2) for arduino uno, calls the callback "showCode"
  // after 1 identical codes have been received in a row. (thus, keep the button pressed
  // for a moment), on esp8266 use on interrupt 5 = digital pin 1
  //
  // See the interrupt-parameter of attachInterrupt for possible values (and pins)
  // to connect the receiver.

  // if you don't see codes try to reset your board after upload
  
    #ifdef ESP8266
      NewRemoteReceiver::init(5, 2, showCode);
    #else
      NewRemoteReceiver::init(0, 2, showCode);
    #endif
    Serial.println("Receiver initialized");    
}

void loop() {

}

// Callback function is called only when a valid code is received.
void showCode(unsigned int period, unsigned long address, unsigned long groupBit, unsigned long unit, unsigned long switchType) {

  // Print the received code.
  Serial.print("Code: ");
  Serial.print(address);
  Serial.print(" Period: ");
  Serial.println(period);
  Serial.print(" unit: ");
  Serial.println(unit);
  Serial.print(" groupBit: ");
  Serial.println(groupBit);
  Serial.print(" switchType: ");
  Serial.println(switchType);

}

@molecular
Copy link
Author

molecular commented Oct 11, 2020

@tobyworks

connected the 2nd pin to D1

are you sure this is correct?

the comment says:

Connect the receiver to digital pin 2 on arduino and digital pin 1 on ESP8266.

what kind of board do you use?

you also connected gnd and vcc, right? Also note the receiver you linked needs 5V. Make sure you're supplying 5V, not just 3.3V.

@tobyworks
Copy link

tobyworks commented Oct 11, 2020 via email

@skjolddesign
Copy link

Me to does not receive any code with ShowReceivedCode example on UNO and NodeMCU.
Nothing happens.

Tested library RemoteReceiver.h, works on UNO, but not on ESP8266.
Tested library RCSwitch.h, works on UNO and ESP8266.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants