RFM12 – Wireless Transceiver Module Demo using pic microcontoller

RFM12 Wireless Transceiver Module Demo

RFM12 Wireless Transceiver Module Demo

Description

This project shows how to do wireless communication with the RFM12 tranceiver modue in combination with a PIC microcontroller.

The RFM12 is a low costing ISM band FSK transceiver module. There are different module variants available which support different frequency bands: 315/433/868/915MHZ. The module has an SPI interface for communication with a microcontroller.

For this demo project I used a PIC18F458 and a RFM12 module with 433 MHz. But with some small modifications it will also work for other PIC micros or RFM12 moduls with other frequency bands.

Hardware

The connection of the RFM12 tranceiver module is very simple. It just needs

  • a power supply (2.2V – 5.4V)
  • a 10k pull-up to Vdd on the FSK/DATA/nFFS pin
  • antenna (simple wire with 17 cm length for 433MHz)
  • 4 pins for SPI communication (SDI, SDO, SCK, nSEL)
  • optinal: one interrupt pin (nIRQ, not used in this demo)

For this demo two microcontroller boards with one RFM12 on each board is required. One acts as transmitter, the other one as receiver.

RFM12 Wireless Transceiver Module Demo1

Software

The driver which is used in this project is mainly based on a RFM12 driver written for an AVR microcontroller (see link).

I have ported the code to the PIC world. The driver can be compiled with the CCS C compiler and the Microchip C18 compiler.

 

Read more: RFM12 – Wireless Transceiver Module Demo

Leave a Comment

Your email address will not be published. Required fields are marked *