So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By bradfield
#91499 Hi,

I am using a 433mhz sending module (FS1000A) on my ESP. Have connected it to D1, and I see on the PI that data is
received:
Code: Select all# rtl_433 -F json
...
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}
{"time" : "2021-05-28 21:12:43", "model" : "Waveman-Switch", "id" : "O", "channel" : 4, "button" : 1, "state" : "off"}


The esp code I am using is:

Code: Select all#include <ESPiLight.h>

#define TRANSMITTER_PIN 5

ESPiLight rf(TRANSMITTER_PIN);

void setup() {
}

void loop() {
  rf.send("elro_800_switch", "{\"systemcode\":17,\"unitcode\":1,\"on\":1}");
  delay(2000);
  rf.send("elro_800_switch", "{\"systemcode\":17,\"unitcode\":1,\"off\":1}");
  delay(2000);
}


But somehow, the data I am using in the rf.send command is not received on my PI.

Best Regards,
Ralf
User avatar
By davydnorris
#91514 Have you confirmed that the code actually works with the module you've chosen?

I would start by finding out what protocols the unit has available - the library you are using appears to have a function availableProtocols() that returns a string that you can print to the console.

Then I would look at what protocols you need to talk to the Pi with, and would then supply the protocol in your send command, which at the moment is using "elro_800_switch" as the protocol.
User avatar
By btidey
#91520 The FS1000 is a basic amplitude modulated TX so driving it direct from the rc library should be fine.

Have you put an antenna on the TZX module (and on the Raspberry RX module)? Without those the range would be very short. Antenna can either be a helical coil or a 17cm straight wire.