433MHz RF remote control

Please do not post requests
Jackson009
Posts: 29
Joined: Thu Aug 06, 2015 9:29 am

433MHz RF remote control

Post by 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.
Attachments
433RX.JPG
433RX.JPG (90.28 KiB) Viewed 1521 times
433remote.jpg
433remote.jpg (111.68 KiB) Viewed 1521 times

User avatar
RogerClark
Posts: 6911
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: 433MHz RF remote control

Post by 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
Posts: 66
Joined: Sat Aug 13, 2016 1:28 pm

Re: 433MHz RF remote control

Post by VadimEL » Mon Jul 24, 2017 2:40 pm

I have Maple mini, and reciever MX-RM-5V, connect it to PA7.

Code

Code: Select all

#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();
  }
     
}

And i have PHI-310 TX-B4 - 433Mhz transmitter, I hit all buttons on it, but nothing happend. :( what i doing wrong?

User avatar
Pito
Posts: 1529
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: 433MHz RF remote control

Post by 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?
Last edited by Pito on Mon Jul 24, 2017 3:06 pm, edited 1 time in total.
Pukao Hats Cleaning Services Ltd.

VadimEL
Posts: 66
Joined: Sat Aug 13, 2016 1:28 pm

Re: 433MHz RF remote control

Post by VadimEL » Mon Jul 24, 2017 3:04 pm

I have 2 recievers boards, and try it both.

User avatar
Pito
Posts: 1529
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: 433MHz RF remote control

Post by Pito » Mon Jul 24, 2017 3:06 pm

Do you power the MX-RM-5V from 5 or 3.3V?
Pukao Hats Cleaning Services Ltd.

VadimEL
Posts: 66
Joined: Sat Aug 13, 2016 1:28 pm

Re: 433MHz RF remote control

Post by VadimEL » Mon Jul 24, 2017 3:09 pm

4,3 V and try 5V but nothing

User avatar
Pito
Posts: 1529
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: 433MHz RF remote control

Post by 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.
Pukao Hats Cleaning Services Ltd.

User avatar
Pito
Posts: 1529
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: 433MHz RF remote control

Post by 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.
Last edited by Pito on Mon Jul 24, 2017 3:15 pm, edited 1 time in total.
Pukao Hats Cleaning Services Ltd.

VadimEL
Posts: 66
Joined: Sat Aug 13, 2016 1:28 pm

Re: 433MHz RF remote control

Post by VadimEL » Mon Jul 24, 2017 3:15 pm

Image
and why is incompatible, first time i see it

Post Reply