433MHz RF remote control

Jackson009
Tue Sep 15, 2015 3:12 pm
Hi There,
I tested another lib for the RF remote control.
I use the RC switch from this link.

https://github.com/sui77/rc-switch

It is pretty easy by changing the initial pin to pin PA7( or other pin).

mySwitch.enableReceive(PA7);

Received 5592332 / 24bit Protocol: 1
Received 5592512 / 24bit Protocol: 1
Received 5592323 / 24bit Protocol: 1
Received 5592368 / 24bit Protocol: 1

From the “Receive Demo.pde” , The output from Serial is above for button A , B , C ,D.

Have Fun.


RogerClark
Tue Sep 15, 2015 10:15 pm
Thanks for letting us know that library works.

I have used it several times on AVR for both sending and receiving, and I have contributed to the forum for that lib as well, as I worked out how to use it was the WattsClever remote controlled mains sockets


VadimEL
Mon Jul 24, 2017 2:40 pm
I have Maple mini, and reciever MX-RM-5V, connect it to PA7.

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

mySwitch.enableReceive(PA7); // Receiver on interrupt 0 => that is pin PA7

//НАЧАЛО бесконечный цикл while (true)
while (true)
{

if (mySwitch.available())
{
tft.print(F("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"));

output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
mySwitch.resetAvailable();
}

}


Pito
Mon Jul 24, 2017 2:56 pm
Did you get at least a 433.xx resonator on the Rx or Tx board (looks like a small smd crystal with 3 or 4 pins)?
If not, your rx or tx could be fully off the frequency..
Do you power the MX-RM-5V with 5 or 3.3V?

VadimEL
Mon Jul 24, 2017 3:04 pm
I have 2 recievers boards, and try it both.

Pito
Mon Jul 24, 2017 3:06 pm
Do you power the MX-RM-5V from 5 or 3.3V?

VadimEL
Mon Jul 24, 2017 3:09 pm
4,3 V and try 5V but nothing

Pito
Mon Jul 24, 2017 3:11 pm
Try 5V and measure the output signal level, it should not be bigger than 3.3V.
Or, put a 3k3/2k2 resistor divider in the series with Maple input.

Pito
Mon Jul 24, 2017 3:14 pm
First, you must see the rx output data pin “does something” when you press a button on the tx. On an o’scope you will see a pulse train with levels like near 0 up to 4V.
Then you may start to mess with software.

VadimEL
Mon Jul 24, 2017 3:15 pm
Image
and why is incompatible, first time i see it

VadimEL
Tue Jul 25, 2017 2:20 pm
I try it on Arduino Uno r3, but it do not receive. I have Pulse train from DAta RX.
Maybe RCSwitch LIB support only some protocols, and do not show what received unsupported protocol?


if (mySwitch.available())

must triggered after received something.?????


VadimEL
Fri Jul 28, 2017 12:29 pm
ok,( MX-RM-5V ) need to adjust R13, with out sending data from transmitter – no DATA in out of receiver!!!!
R13 1Мом fix the problem.

Image


Leave a Reply

Your email address will not be published. Required fields are marked *