Question regarding RF433 transmitter/reciever(s)

Hello! I recently purchased some RF433 Transmitter/Reciever pack and was going to start a project I've thought was interesting. I wanted to be able to receive the signal from my gate opener(example) and then replay that signal through the transmitter and receiver.

I've been researching this topic frequently throughout the past few days but keep running into problems. Most sketches use an if statement to see if MySwitch is available, but it is absolutely never available. (This is using RCSwitch). Do you guys know of a way to see if my Transmitter/Reciever(s) are busted? I could have a bad pair but do not know how to check...

Another thing - I know that some signals change each time their remotes are used (certain garage openers and such) but for my gate opener, if I am doing this correctly, should it show me a signal on my Serial output at least?

Here is the sketch I am using.

(This is just the ReceiveDemo_Advanced sketch that comes with the RCSwitch library)

/*
  Example for receiving
  
  https://github.com/sui77/rc-switch/
  
  If you want to visualize a telegram copy the raw data and 
  paste it into http://test.sui.li/oszi/
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(0);  // Receiver on interrupt 0 => that is pin #2
}

void loop() {
  if (mySwitch.available()) {
    output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
    mySwitch.resetAvailable();
  }
}```


Thanks!

You need a transmitter running properly, with TX and RX using the same code settings, before the receiver will respond.

If your new receiver's design will not match your gate's modulation type can coding structure, you will likely never be able to receive the gate signal.
Paul

I’m sorry, what do you mean by that?

(I am the OP, I accidentally logged in with google and created a random account..)

There are devices that use OOK, on-off-keying to send a signal. There are devices that use amplitude modulation to send a signal. There are devices that use FM or phase modulation to send signals. Each one cannot receive the other properly and decode what is sent.
There are then, devices that use various coding schemes to send the data that are not compatible with other devices.
ALL must match on the transmitter side and on the receiver side in order to communicate.
Paul

What is your transmitter, what signal is it transmitting, and how do you know that the transmitter is working?

Hint: examine the raw TX signal by following this tutorial: Reverse Engineer Wireless Temperature / Humidity / Rain Sensors — Part 1 « RAYSHOBBY.NET

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.