anabolyc / arduino-attiny85-rgb-lamp-vs-remote

1 stars 0 forks source link

RFM and ATtiny sync? #1

Open 3Dtj opened 6 years ago

3Dtj commented 6 years ago

Just to get clarification (as I'm trying something similar), are you using two LoRa modules? One to send and one to receive? Did you have any trouble in sync'ing the ATtiny with the RFM so that it receives the signal? I'm having problems get the LED just to light up.

Thanks, 3Dtj

anabolyc commented 6 years ago

Hi,

First, these are not Loras, those are much cheaper RF433 modules, just under 1$ pair (sender + receiver). Realistically they have range ~5 meters.

Second, yes, there are some issues with bare naked Attiny85 when you transfer long messages. Library supports up to 80 symbols, but while testing with 25 symbols messages i found lose rate ~50%, when reduced to just 3 symbols it close to 100% success. I guess that without external crystal Attiny85 just not stable enough. Looking into library sources - it strongly depends on Timer/Counter and interrupts, therefore for good sync you should have good timer sources.

Starting with simple examples that library shipped with i found no issues at all connecting 2 modules actually, it just works out of the box, so to speak.