05-13-2024, 11:12 AM
(05-10-2024, 10:56 PM)admin Wrote: A4 RF433M receiver pin is IO13, here is code:
Code:#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableReceive(digitalPinToInterrupt(13));
Serial.print("begin test");
}
void loop() {
if (mySwitch.available()) {
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();
}
}
As per ESP 32 WROOM-32E Electrical diagram ( See Attachment) the RF 433Mhz pin INput shoul be IO19, The IO13 shoul be used for Temperature sensor 1. In any case I tried the above code , but still nothyng appen