Reading RF codes with receiver

Hello all,

I'm trying to build a system to control my RF power sockets (flamingo SF-501) through my arduino and acquired a cheap 433mhz sender/receiver combo from seeed studio.

Through all forumposts and guides I decided the first step would be to decode the signal transmitted by the remote.
I tried using the RCSwitch library and the ReceiveDemo_advanced sketch, connecting the data-pin of the receiver to pin 2 on my Uno.

using the code below, I get no input at all when activating the remote near the receiver.
The remote is also 433.92mhz and is transmitting (the lights go on/off) .

The receiver is brand new and should be working, but I don't have any confirmation on this, as I don't receive any signal.

Can you give me any advice on how to proceed? I'm at a loss because there are so many variables involved.

Thank you very much for any advice!

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

I am having this same issue with the same remote outlet brand and type. I can confirm my 433MHZ transmitter and receiver are working. But still when transmitting a signal using the outlet remote no logs are written in the serial monitor.

Franks95,

Use this library; click on the download link at the bottom:

https://bitbucket.org/fuzzillogic/433mhzforarduino/wiki/Home
Use the "NewRemoteSwitch" part.

Works like a charm for said power sockets.

Am using this library in an all-in-one binary clock + infrared remote for TV/amplifier + RF remote for power sockets, all controlled through a home-made bluetooth app on my android phone. Works really well :slight_smile:

Let me know if you need help!

Sorry if I re-open this thread or anything, but I'm trying to control the same type of outlets. I however neglected to buy a receiver for my Arduino as I found a library that should be plug and play like. (I know silly of me, just forgot that I might have to read out the original remote).

So for my question, does anyone have some example code to use with the "NewRemoteSwitch" library? I'm assuming the on/off part should be roughly the same for all the SF501s?

It has been a while, but, using #include <NewRemoteTransmitter.h>:
Put this above void{}:

bool isOn = NewRemoteCode::on;
bool isOff = NewRemoteCode::off;
NewRemoteTransmitter transmitter(27293696, pinRF, 266);

where pinRF is the pinnumber used to send data to your RFsender

then use:

transmitter.sendUnit(channel, isOn);
transmitter.sendUnit(channel, isOff);

to send on/off commands. Channel should be the number (I know 1-9 work, dunno for 10 and up) of the particular power socket. I use bluetooth input, where the input (the channel number) is stored in the int commonInput, so my actual code reads

transmitter.sendUnit(commonInput, isOff);

to turn a channel off.

To clarify: the powersocket will "learn" it's channel "created" by/for the arduino if you use any number from 1-9; just plug in the socket and send the "on" on the required channel while the socket is blinking. Be aware, though, that if your arduino does not function (which it will do occasionally), you will be unable to use the remote to turn on the socket, unless you unplug/plug it in again and re-learn.

Hope this helps, let me know if you need more help

Awesome, that worked.

Been trying for a while now with the "RemoteTransmitter" library. But non of the predefined transmitter types corresponded to the SF501.

Thanks a lot :slight_smile:

Hi Shreever,

Would you care to share how you managed to fix the setup with your flamingo SF-501?
I can't seem to get it working.

Hi people,

I couldn't get any library to work with the sf-501 rf socket set (3 sockets one remote) set so I created my own library. The main objective was to a) learn to create my own library b) get a esp-8266 to control the cheap sockets I bought. It works really well now and I hope other might find it useful to. Please feel free to send me feedback on performance and issues you have on GitHub.

If you find any overlap with other libraries. That is possible. My main objective was to create something myself to learn radio protocols and creating arduino libs. It could mean that I implemented stuff that other libraries as well or even better.
I snooped the protocol with a cheap sdr and a logic analyzer.

Have fun!

Arjen

Has anyone done this for the Lutron Caseta Pico? I’m pretty noobish but I’d love to emulate the Pico to control dimmers without going through the Smart Bridge.

Good afternoon. I would like to control some blinds

  • The blinds are operated with remote control by RF.

  • On the other hand we have a controller via WIFI, called BroadLink RM Pro, with which you can control from a mobile phone through an App called e-Control with which you can control both RF and IR receivers. This element is perfectly linked with all the blinds, and also with RF plugs, as well as with IR TV.

  • From this situation, I thought about taking the step to try to control the Blinds with the Arduino ,.
    For this I started doing tests with two Arduinos and some cards of Emitter and Receiver of 433 MHz one in each Arduino, with which I manage to send messages between them, and also on the Receiver to read the signal of a Command of a Doorbell, and take out the sequence of pulses, and thereby generate it from the Arduino and send it to the Doorbell.

  • Until there is everything seems correct, but the Problem starts when I try to read the Blind Knob, and the Arduino Receiver does not detect it. When I look at the Command I see that the Frequency is 433.92 MHz,
    I bought another pair of Issuer and Receiver that said 433.92.

I have received them and first in the Chip it puts WL433S, I mean of the .92 nothing, but I have tried it and with the Doorbell Control it goes well, but with that of the blind Nothing.

  • I want to make an observation of when Linking or learning the Commands with the BroadLink there are two alternatives, when making the link for Learning by RF, where you ask:
  • "Learn one"
  • "Learn Various"
    I enter "Learn one", the other I do not know what it means, and then 2 alternatives appear:
  • "Learn"
  • "Swaep Frequency"
  1. When you learn with the Ringer Knob, I use the "Learn" button and it asks you to press the Button, then you find it, and everything is fine.
  2. When I try to learn the Blind Knob, this system does not work, and I have to resort to the "Swapping Frequency" option. This sends you "press the knob until the scan is over", and answer "Frecuency Scaned - Do you want to learn this button?", Continues and then asks "Please tap the remote button", and with this, remains learned that command.
    I understand that in this case first look for the frequency, and then the Code, and so everything resolved.

Can someone help me to locate the Frequency and then the Code, or what should I do?

Thanks and regards..