help in a basic code

Hello friends,
I am try to receive signal and show it by binary ( by 433mhz receiver) the signal is from remote electric gate .
i’m use in arduino mega 2560.
i am try until now how many program and i didn’t successful .

in which pin of arduino i’m need to connect the pin data of 433 receiver?
i’m will happy if i’m get some code for this.

i’m attach the signal.
thank’s.

Post your code as text, not as a picture. I can't load pictures into my text editor.

...R

He has no code.

the code:

define rfReceivePin A0 //RF Receiver pin = Analog pin0

unsigned int data = 0; // variable used to store received data

void setup(){

Serial.begin(115200); } void loop() { data=analogRead(rfReceivePin); //listen for data on Analog pin 0

Serial.println(data); delay(1000);

}

What 433mHz transmitter/receiver are you using?

hey, i'm use in basic kit . the recevier is xy-mk-5 like this http://www.princetronics.com/how-to-read-433-mhz-codes-w-arduino-433-mhz-receiver/

in which pin of arduino i'm need to connect the pin data of 433 receiver?

What do you suppose this line of code and comments might mean ?

#define rfReceivePin A0  //RF Receiver pin = Analog pin0

connect to pin anlog a0 but i’m get a number and not a code like 1010101000011

yairbh89: connect to pin anlog a0 but i'm get a number and not a code like 1010101000011

Why do you do analogRead() on A0, when you expect a digital signal?

hey,
i’m olso use in this code but this is not at binaary…

#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();

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

void loop() {

if (mySwitch.available()) {

int value = mySwitch.getReceivedValue();

if (value == 0) {
Serial.print(“Unknown encoding”);
} else {

Serial.print("Received “);
Serial.print( mySwitch.getReceivedValue() );
Serial.print(” / ");
Serial.print( mySwitch.getReceivedBitlength() );
Serial.print("bit ");
Serial.print("Protocol: ");
Serial.println( mySwitch.getReceivedProtocol() );
}

mySwitch.resetAvailable();

}

}

Trust me, what you are receiving is binary but you are printing it as decimal, which is what Serial.print() does by default.

Try

Serial.print( mySwitch.getReceivedValue(), BIN );

hey, it is didnt work..? in which pin i'm need to connect it orduino ? pin 2 at digital? maybe it didnt work at arduino megga?