Hi,
my problem is to use the RFM69HW with an Arduino MEGA 2560. I have checked this thread to https://lowpowerlab.com/forum/rf-range-antennas-rfm69-library/rmf69w-rfm69hw-and-arduino-mega-atmega2560-2560/ (https://lowpowerlab.com/forum/rf-range-antennas-rfm69-library/rmf69w-rfm69hw-and-arduino-mega-atmega2560-2560/). I have 2 RFM69HW and 2 Arduino MEGAs with the both problem.
My connection is (all connected with level shifter / converter):
RFM69W - Mega2560
GND - GND
3,3V - 3,3V from level-shifter and this is connected to MEGA2560 3,3V to
NSS - D53 (SS)
SCK - D52 (SCK)
MISO - D50 (MISO)
MOSI - D51 (MOSI)
DIO0 - D2 (INT0 on MEGA 2560 to)
I used all RFM69-Lib Samples and all work same, nothing.... So let talk about Struct_send.
I had only modified
SPIFlash flash(8, 0xEF30); //EF40 for 16mbit windbond chip
to SPIFlash flash(53, 0xEF30); //EF40 for 16mbitwindbond chip
and #define FREQUENCY RF69_433MHZ
to #define FREQUENCY RF69_868MHZ
On Serial Console i only see:
Transmitting at 868 Mhz...
So the problem is that the perform flash.initialize() don`t finished. After many minutes nothing. If i disconnect the 3,3V than is the follow message present "SPI Flash Init FAIL! (is chip present?)".
In the RFM69.h i also tested with modify to .
Now im out of Idea`s.
My Questions are:
1) Is the wirering correct?
2) Is the DIDO with Intterupt D2 used by flash.initialize()? So i can limit the problem
3) How can i check witch chip is used (EF30 / EF40, i tested both)?
4) How can i debug / check the SPI chip is present / scanning ?
Many thanks for helping!!!
Regards, Andy