NewRemoteSwitch
NewRemoteSwitch copied to clipboard
Thank you and question.
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
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
thank you very much, @1technophile, for this valuable information!
I'll check out OpenMQTTGateway using a nodeMCU I have and ordered a superheterodyne receiver.
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);
}
@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.
I'm using a nodemcu
On Sun, Oct 11, 2020, 17:40 molecular [email protected] wrote:
@tobyworks https://github.com/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 are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/1technophile/NewRemoteSwitch/issues/8#issuecomment-706723595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVP242I4UQ5OMB3MGJC4ZTSKHGYDANCNFSM4OKPE5MQ .
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.