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.
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:
then set the frequency:
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).
DownloadsDownload Read More