Différences entre versions de « ENG-CANSAT-RFM69HCW-TEST »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 19 : Ligne 19 :
 
# The encryption key must be identical on the both side.
 
# The encryption key must be identical on the both side.
  
== Installing the library ==
+
== Installing the RadioHead library ==
 
If not done yet, we will have to install the RadioHead library in Arduino IDE.
 
If not done yet, we will have to install the RadioHead library in Arduino IDE.
  
Ligne 41 : Ligne 41 :
  
 
[[Fichier:ENG-CANSAT-RFM69HCW-TEST-22.png|640px]]
 
[[Fichier:ENG-CANSAT-RFM69HCW-TEST-22.png|640px]]
 +
 +
We will focus our interest in the following examples:
 +
* File -> Examples -> RadioHead -> Feather -> RadioHead69_RawDemo_RX
 +
* File -> Examples -> RadioHead -> Feather -> RadioHead69_RawDemo_TX
  
  
 
{{ENG-CANSAT-TRAILER}}
 
{{ENG-CANSAT-TRAILER}}

Version du 11 octobre 2018 à 20:54

Forewords

It is now time to establish a communication between:

  • a Data Emitter made with a Feather M0 Express + RFM69HCW-433MHz.
  • a Data Receiver made with the second RFM69HCW that should be linked to a second micro controller.

As the kit contains only one micro controller (the Feather M0 Express), we will use the very common Arduino UNO (not included) as micro controller for the Data Receiver.

In this simple exemple:

  1. The Data Emitter will send a message and wait 500ms for a response.
  2. The Data Receiver will receive the message.
  3. The Data Receiver will send a reply.

ENG-CANSAT-RFM69HCW-TEST-00.jpg

As we will see in the sample, 2 key items will be highlighted:

  1. The frequency must be identical in the emitter and receiver (eg: 433.0 MHz in this example).
  2. The encryption key must be identical on the both side.

Installing the RadioHead library

If not done yet, we will have to install the RadioHead library in Arduino IDE.

That library support lot of RFM modules including our RFM69HCW.

Adafruit did fork the RadioHead library and add some useful sample, so we will install the small|Adafruit's RadioHead forked library.

Download-icon.pngDownload RadioHead forked library

For easy install, you can run Arduino IDE and open the menu "Sketch -> Add a .ZIP library..."

ENG-CANSAT-RFM69HCW-TEST-20.jpg

Then pick-up the downloaded RadioHead ZIP file.

ENG-CANSAT-RFM69HCW-TEST-21.png

Once installed the RFM69 examples are available from the menu "File -> Examples".

ENG-CANSAT-RFM69HCW-TEST-22.png

We will focus our interest in the following examples:

  • File -> Examples -> RadioHead -> Feather -> RadioHead69_RawDemo_RX
  • File -> Examples -> RadioHead -> Feather -> RadioHead69_RawDemo_TX



Written by Meurisse D. from MC Hobby - License: CC-SA-BY.