| Ligne 6 : |
Ligne 6 : |
| | * a '''Data Receiver''' made with the second RFM69HCW that should be linked to a second micro controller. | | * 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 as micro controller for the '''Data Receiver'''. | + | 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: |
| | + | # The '''Data Emitter''' will send a message and wait 500ms for a response. |
| | + | # The '''Data Receiver''' will receive the message. |
| | + | # The '''Data Receiver''' will send a reply. |
| | | | |
| | [[Fichier:ENG-CANSAT-RFM69HCW-TEST-00.jpg]] | | [[Fichier:ENG-CANSAT-RFM69HCW-TEST-00.jpg]] |
| | + | |
| | + | As we will see in the sample, 2 key items will be highlighted: |
| | + | # The frequency must be identical in the emitter and receiver (eg: 433.0 MHz in this example). |
| | + | # The encryption key must be identical on the both side. |
| | + | |
| | + | == Installing the 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-box|https://github.com/adafruit/RadioHead/archive/master.zip|Download RadioHead forked library}} |
| | + | |
| | + | For easy install, you can run Arduino IDE and open the menu "Sketch -> Add a .ZIP library..." |
| | + | |
| | + | |
| | + | |
| | | | |
| | {{ENG-CANSAT-TRAILER}} | | {{ENG-CANSAT-TRAILER}} |