Modifying a code to work with RFM69
-
Hello guys. I have this transmitter and receiver code which is written to work with Nrf24L01 modules using RF24 library by TMRh20. I would like to use RFM69 modules instead of nrf modules. Can you please give me some pointers so i can start working on it. I dont even know which library should i use for the RFM69 modules. Any help is appreciated as im quite a noob in coding
thank you
-
Welcome to the MySensors community @orhanyor
For a MySensors node, switching between nrf24 and rfm69 is just using#define MY_RADIO_RFM69
instead of
#define MY_RADIO_RF24
For a sketch that does not use MySensors, I guess LowPowerLab’s library is the way to go. That’s whay MySensor uses underneath. I have never used it directly though.
-
@mfalkvidd
hey man thanks for the input. i was thinking to find radio related lines and see what kind of classes they use there and try to find the equivalents in lets say LowPowerLab’s library. is that a good way to go? i wish it was coded with mysensors it would have been much easier to switch in between
i also found this library https://www.airspayce.com/mikem/arduino/RadioHead/annotated.html it also seems to support both modules. honestly i dont know which one is easier.
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Home Assistant/MySensors quirks
Development • 19 days ago • OldSurferDude 19 days ago