Static avr-libc library providing basic support for RFM69 radio modules

nbproject Incorporate changes from librfm95 (#3) 11 months ago
sheet Add data sheet 11 months ago
.gitignore Fix build and Makefile 1 year ago
CODE_OF_CONDUCT.md Initial commit 1 year ago
LICENSE Initial commit 1 year ago
Makefile MCU = avrxmega2 4 months ago
README.md Adjust link 3 hours ago
librfm69.c Return actual size of payload received by receiver 4 months ago
librfm69.h Some recommendations from Semtech AN1200.24 (#8) 10 months ago
utils.h Initial commit 1 year ago
README.md

librfm69

About

Static avr-libc library providing basic support for RFM69 radio modules.

This is work in progress. Currently available is:

  • Transmit a packet
  • Blocking receive a single packet with timeout
  • Async'ly receive a packet (MCU sleeps or does something else until reception)

Usage

  1. Include librfm69.h and librfm69.a in the project
  2. Implement the _rfm* functions in librfm69.h in the application
    (this is to make the library device and CPU frequency independent)
  3. Route interrupts occurring on DIO0 and DIO4 to rfmIrq()

Range

There is a range test with an RFM95 in FSK mode at librfm95.

Susceptibility to Temperature Changes

With the default frequency deviation of 5 kHz and receiver bandwidth of
10.4 kHz, packet transmission is very unreliable and fails completely for me
when the temperature of the transmitter is below 10°C and above 40°C, while
the receiver temperature is at 20°C. The receiver does not seem to be prone to
temperature changes.
Increasing frequency deviation to 10 kHz and receiver bandwidth to 20.8 kHz,
temperature susceptibility is eliminated; when testing with transmitter
temperature from -20°C to 50°C, packet transmission is perfectly reliable.

Frequency Deviation = 10.4 kHz (transmitter)
RegFdevMsb = 0x00
RegFdevLsb = 0xa4

Receiver Bandwidth = 20.8 kHz
RegRxBw = 0x54

The issue can probably also be solved with automatic frequency correction (AFC).