Testing the Feather M0 RFM69 Radio

Posted By on Feb 13, 2017 | 2 comments


Recently I bought a Feather M0 RFM69 Packet Radio (this one), and setting up a hello world radio transmitter-receiver turned out to be more difficult than I expected. Mainly, because none of the examples worked out of the box. So, this is my hello world example. Maybe it’ll help someone in the same situation.

 

Example

For the most part I followed Adafruit’s tutorial instructions (here), I even downloaded the RadioHead library from the link they provide. The only thing I did different was using a slightly modified version of an example in the RadioHead library (the one downloaded from Adafruit’s link). In particular, the rf69_reliable_datagram examples. Those examples did not work at first either, but then based on Adafruit’s example I changed the driver declaration line:

RH_RF69 driver(8, 3); //RH_RF69 driver;

 

then set the frequency:

 

while (!driver.setFrequency(915.0));

 

and voila, it worked.

Also, there are two more things that I don’t know if they matter or not, but just in case: a) I used Arduino IDE v1.6.4 (from Adafruit’s link here) because I could not manage to make any example compile after installing the Arduino SAMD boards and Adafruit SAMD boards on the newest IDE; and b) I ended up Arduino SAMD boards version 1.6.6, and Adafruit SAMD boards version 1.0.4 (I do not recall exactly why I have these versions. I was so frustrated that it wouldn’t work, so when it finally worked yesterday late at night, I told myself my Arduino was haunted and left it untouched. Most likely they work with different versions).

 

Demo

 

Downloads

Download

2 Comments

  1. Hi!! Hey, so, you are using the sketch that uses the RH_RF95.h ? I’m asking, because I upload to the Feather M0 RFM69 the examples (Client and server) on the RadioHead library and it is not working for me.
    Are you using the same Feather?

    Post a Reply
    • Yes, the example is for the Feather M0 RFM69. The sketches I was using were the rf69_reliable_datagram_client and rf69_reliable_datagram_server, both of which use the RH_RF69.h (not RH_RF95.h). So maybe you are just using the wrong sketches. Another thing is, I made two small changes to get them working (at least for me), you can see them and download them above… maybe that’ll work for you. Good luck!

      Post a Reply

Submit a Comment

Your email address will not be published. Required fields are marked *