sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.91k stars 659 forks source link

RCSwitch working when pins are directly connected, but not when used with RF modules. #247

Open Tvde1 opened 6 years ago

Tvde1 commented 6 years ago

Hi, I am using an attiny85 as remote and a nodemcu as a receiver and flashed the example sketches on both and I have corrected the pin numbers.

Only the problem is, this works: 0a0e5400-1b16-42a2-ac8e-a339e738e317 Now the serial monitor shows that the receiver receives data. And this doesn't work: 13cbbffa-890b-424c-8ff5-8cdd961b6050 If I'm correct, it should behave the same. I don't expect RF transmission to be 100% reliable of course but nothing shows up.

I am using these transmitters. (433 Hz)

I also have these but I wouldn't know how to connect the transmitter since it has an extra pin.

Tvde1 commented 6 years ago

Is there no one that can help me?

abellisco commented 5 years ago

Hi, not sure if this comment will help you at this point. I am testing the same receiver you show in your first line, and not knowing your "physical" setup it is difficult to have a proper idea of a solution. But perhaps this helps: I am testing it with a standard 433Mhz remote (the ones usually used for garage doors openers), with the same antenna you show. Surprisingly, the receiver works (receives properly a 24bit code) only when it is quite close (1 meter away). This remote is working with a device that is several meters away from my desk, so... In your case, I would first test the receiver with a standard 433Mhz remote, to reduce the "unknowns" If it works, then try the ATtinny, and then if you need a better distance, change the antenna and try again. The radio environment is very noisy, when you see on your Serial Monitor that RCSwitch has got one RC code decoded, it actually received MANY, and discarded many of them. I guess the number of repetitions can provide you some help here, not sure... Rgds

crolopez commented 4 years ago

I have exactly the same problem.