Good day,
I've got an RFM24W transceiver module in order to control my garage door on 433.89 Mhz.
First thing I want to do is to establish an SPI connection. (see attachment for a setup image).
According to the RFM24W Datasheet on page 19, command 0x01 should report some basic information about the device.
#include <SPI.h>
const int ss = 7;
void setup()
{
pinMode(ss, OUTPUT);
pinMode(10, OUTPUT);
SPI.begin();
Serial.begin(9600);
digitalWrite(ss, LOW);
SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE0));
SPI.transfer(0x01); // 0x01 PART_INFO Reports basic information about the device
Serial.println("Command sent");
SPI.endTransaction();
digitalWrite(ss, HIGH);
}
void loop()
{
}
I was expecting the response on serial monitor, but this only shows my "Command sent" line.
After doing some research on the internet, I think I need to program a while loop, waiting for an answer.
Unfortunately, I have no clue where to start with.
What should I do next?
Very thankful for your help!
Steffl


.