Testing the Feather M0 RFM69 Radio

 

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 downloaded Arduino as a zip, installed the latest Arduino SAMD boards (v 1.6.17) and Adafruit SAMD boards (v1.0.22), and downloaded the RadioHead library (v1.6.2) 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.

 

Demo

 

Downloads

Download
By |2018-02-16T06:35:19+00:00February 13th, 2017|Arduino, Driver Examples|4 Comments

4 Comments

  1. Brenda October 12, 2017 at 9:44 pm - Reply

    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?

    • Rafael Roman Otero October 15, 2017 at 5:11 am - 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!

  2. david March 15, 2019 at 8:55 pm - Reply

    How would you get data?

  3. Steve August 28, 2019 at 2:38 am - Reply

    This is great!

    But, while I get packets received at the server, the server almost always fails to get an ACK from the client (99/100 times).

    Feather M0 boards with RFM69HCW redios. I set the TX power to 17 on both and they are less then a foot apart,

Leave A Comment Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.