Moteino rf95 Examples

Started by jcozzy, May 05, 2018, 05:00:38 PM

jcozzy

Hey everyone!

I just received 2 Moteino RFM95's and tried the Radiohead client and server examples using latest Arduino IDE with the Arduino Uno as the board selected.  See following video:


https://youtu.be/HGKu2FXp8Gw


The only change to the examples I made was the #define FREQUENCY 915 line due to concern of default values.  I do not even get serial output for these codes.

Any suggestions?

Felix

Hi jcozzy!

Hmmm, did you try the library from my RadioHead link on the LoRa guide page, or did you get the latest RadioHead?

jcozzy

Thanks for the reply, I think it was the latest Radiohead, I tried the Radiohead version 1.83 from the link you provided and got this error on both client and server, respectively (I will try some editing):

rf95_client.ino:25:9: error: redefinition of 'RH_RF95 rf95'
rf95_client.pde:15:9: error: 'RH_RF95 rf95' previously declared here
rf95_client.ino: In function 'void setup()':
rf95_client.ino:27:6: error: redefinition of 'void setup()'
rf95_client.pde:22:6: error: 'void setup()' previously defined here
rf95_client.ino: In function 'void loop()':
rf95_client.ino:39:6: error: redefinition of 'void loop()'
rf95_client.pde:46:6: error: 'void loop()' previously defined here

rf95_server.pde:15:9: error: redefinition of 'RH_RF95 rf95'
rf95_server.ino:25:9: error: 'RH_RF95 rf95' previously declared here
rf95_server.pde: In function 'void setup()':
rf95_server.pde:24:6: error: redefinition of 'void setup()'
rf95_server.ino:27:6: error: 'void setup()' previously defined here
rf95_server.pde: In function 'void loop()':
rf95_server.pde:49:6: error: redefinition of 'void loop()'
rf95_server.ino:38:6: error: 'void loop()' previously defined here

jcozzy

The Reliable_Datagram versions compile, but they also give no serial.  I see this warnng in the code: "Ensure serial flash is not interfering with radio communication on SPI bus"

Might that be an issue?

Felix

Make sure there is only 1 version of RadioHead installed on your system. If you have two you will get those errors.
You may have one installed manually in your arduino/libraries folder (or two conflicting libs) or you may have a manual version installed and one from the Library manager.