Exchanging messages

The transceiver present on the TeensyWiNo is a HopeRF RFM22b (datasheet).

The HopeRF RFM22b on TeensyWiNo

The RadioHead RH_RF22 examples must be modified to be executed on the TeensyWiNo board:

  • Teensy SPI clock pin must be set to pin #14
  • Teensy SPI CS pin must be set to pin SS
  • Teensy SPI IRQ pin must be set to pin #9

Here is the correct configuration in the RH_RF22 constructor of the Arduino sketch:

1
 RH_RF22 rf22(SS,9);

In the setup(), before calling rf22.init():

1
 SPI.setSCK(14);

With these two modifications, all RadioHead RH_RF22 example sketchs are operational.

What's on this Page