Hi,
I purchased a "Adafruit Feather 32u4 RFM69HCW Packet Radio - 868 or 915 MHz - RadioFruit",...
https://www.adafruit.com/product/3076
....I successfully added the RadioHead library, and I uploaded the example code to to my feather device. When I open the serial 115200 window, the code fails on the "rf95.init()" portion of the code. Here is the first few lines of code....
//*****************************Arduino Code Below*********************************
#include <SPI.h>
#include <RH_RF95.h>
// for feather32u4
#define RFM95_CS 8
#define RFM95_RST 4
#define RFM95_INT 7
// Change to 434.0 or other frequency, must match RX's freq!
#define RF95_FREQ 915.0
// Singleton instance of the radio driver
RH_RF95 rf95(RFM95_CS, RFM95_INT);
void setup()
{
pinMode(RFM95_RST, OUTPUT);
digitalWrite(RFM95_RST, HIGH);
Serial.begin(115200);
while (!Serial) {
delay(1);
}
delay(100);
Serial.println("Feather LoRa TX Test!");
// manual reset
digitalWrite(RFM95_RST, LOW);
delay(1000);
digitalWrite(RFM95_RST, HIGH);
delay(1000);
while (!rf95.init()) {
Serial.println("LoRa radio init failed");
while (1);
}
Serial.println("LoRa radio init OK!");
/*************************Arduino Code Above***************************
...The output from this code in the serial prompt is ...."LoRa radio init failed"
If anyone can help me with this issue I would be very grateful!!!
Thank you in advanced,
John
Feather 32U4 Serial Failure rf95.init()
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jerryn
- Posts: 1865
- Joined: Sat Sep 14, 2013 9:05 am
Re: Feather 32U4 Serial Failure rf95.init()
The board you have linked is the RFM69HCW and it is not compatible with the RF95 libraries. Use the RadioHead RFM69 examples instead.
- jgrimble
- Posts: 14
- Joined: Sat Nov 03, 2018 7:32 pm
Re: Feather 32U4 Serial Failure rf95.init()
jerryn thank you!! Your are a pure genius.
For others with a similar issue, below is a link to tutorial...
https://learn.adafruit.com/adafruit-fea ... fm69-radio
Thanks a million,
John
For others with a similar issue, below is a link to tutorial...
https://learn.adafruit.com/adafruit-fea ... fm69-radio
Thanks a million,
John
Please be positive and constructive with your questions and comments.