Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nopnop2002/esp-idf-rf69
RFM69 ISM Transceiver driver for esp-idf
https://github.com/nopnop2002/esp-idf-rf69
esp-idf esp32 rfm69
Last synced: 3 months ago
JSON representation
RFM69 ISM Transceiver driver for esp-idf
- Host: GitHub
- URL: https://github.com/nopnop2002/esp-idf-rf69
- Owner: nopnop2002
- License: other
- Created: 2022-05-18T07:22:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T20:39:12.000Z (11 months ago)
- Last Synced: 2024-10-11T13:44:33.697Z (3 months ago)
- Topics: esp-idf, esp32, rfm69
- Language: C
- Homepage:
- Size: 44.9 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp-idf-rf69
RFM69 ISM Transceiver driver for esp-idf.I ported from [this](http://www.airspayce.com/mikem/arduino/RadioHead/).
I tested with these.
![RFM69-3](https://user-images.githubusercontent.com/6020549/168982514-439e93a1-5633-4cf2-9c99-8490e38107f5.JPG)
![RFM69-12](https://user-images.githubusercontent.com/6020549/168982527-f090f229-dfec-4473-8e0b-9a5d4d77d742.JPG)# Software requirements
ESP-IDF V4.4/V5.x.
ESP-IDF V5.0 is required when using ESP32-C2.
ESP-IDF V5.1 is required when using ESP32-C6.# Installation
```Shell
git clone https://github.com/nopnop2002/esp-idf-rf69
cd esp-idf-rf69
idf.py set-target {esp32/esp32s2/esp32s3/esp32c2/esp32c3/esp32c6}
idf.py menuconfig
idf.py flash
```__Note for ESP32C3__
For some reason, there are development boards that cannot use GPIO06, GPIO08, GPIO09, GPIO19 for SPI clock pins.
According to the ESP32C3 specifications, these pins can also be used as SPI clocks.
I used a raw ESP-C3-13 to verify that these pins could be used as SPI clocks.# Configuration for Transceiver
![config-rf69-1](https://user-images.githubusercontent.com/6020549/168982654-f570bf49-1e23-4c82-a477-bb6cb9efb685.jpg)
![config-rf69-2](https://user-images.githubusercontent.com/6020549/210901663-fbbc2f25-1c17-4192-b35b-c921aba8389d.jpg)- Set TX power high
If you are using a high power RF69 such as the RFM69HW/RFM69HCW, you __must__ to set the TX power high.
If you are using a not high power RF69 such as the RFM6W/RFM69CW, you don't need to set the TX power high.# SPI BUS selection
![config-rf69-3](https://user-images.githubusercontent.com/6020549/168986794-f253634a-d982-4103-a439-a26f5b822644.jpg)The ESP32 series has three SPI BUSs.
SPI1_HOST is used for communication with Flash memory.
You can use SPI2_HOST and SPI3_HOST freely.
When you use SDSPI(SD Card via SPI), SDSPI uses SPI2_HOST BUS.
When using this module at the same time as SDSPI or other SPI device using SPI2_HOST, it needs to be changed to SPI3_HOST.
When you don't use SDSPI, both SPI2_HOST and SPI3_HOST will work.
Previously it was called HSPI_HOST / VSPI_HOST, but now it is called SPI2_HOST / SPI3_HOST.# Configuration for Application
![config-app-1](https://user-images.githubusercontent.com/6020549/168983261-c258d86b-09dc-4d4f-88dd-f4510c8b8280.jpg)
![config-app-2](https://user-images.githubusercontent.com/6020549/168983269-27c78b4f-794c-4a83-9b3c-357bf17d6607.jpg)# Wirering
|RFM69||ESP32|ESP32-S2/S3|ESP32-C2/C3/C6|
|:-:|:-:|:-:|:-:|:-:|
|MISO|--|GPIO19|GPIO37|GPIO4|
|SCK|--|GPIO18|GPIO36|GPIO3|
|MOSI|--|GPIO23|GPIO35|GPIO2|
|NSS|--|GPIO5|GPIO34|GPIO1|
|RESET|--|GPIO16|GPIO38|GPIO0|
|GND|--|GND|GND|GND|
|VCC|--|3.3V|3.3V|3.3V|__You can change it to any pin using menuconfig.__
__The pinout of RFM69 is different for each model.__
# Foot pattern
RFM69CW/HCW has the same foot pattern as ESP12.
Therefore, a pitch conversion PCB for ESP12 can be used.![RFM69CW](https://user-images.githubusercontent.com/6020549/168983702-3d0e8cac-add8-4906-bbfe-22eeee576ff7.JPG)
![RFM69HCW](https://user-images.githubusercontent.com/6020549/168983707-4bb3170a-47ae-4225-b87a-3fc5cc2c07ab.JPG)RFM69W/HW does not have the same foot pattern as ESP12.
![RFM69HW](https://user-images.githubusercontent.com/6020549/168983973-73f21359-21f3-4833-a7ff-dc329faa504f.JPG)
![RFM69W](https://user-images.githubusercontent.com/6020549/168983977-bedada69-5722-46fb-839e-37ec77cc2b26.JPG)# API
http://www.airspayce.com/mikem/arduino/RadioHead/classRH__RF69.htmlInterrupts are not used in this project.
# Communication with Arduino Environment
I used these example.https://github.com/adafruit/RadioHead/tree/master/examples/feather/RadioHead69_RawDemo_RX
https://github.com/adafruit/RadioHead/tree/master/examples/feather/RadioHead69_RawDemo_TX
Wireing for ATmega328
```
#define RFM69_CS 4 // to NSS
#define RFM69_INT 3 // to DIO0
#define RFM69_RST 2 // to RESET
#define LED 13
```Wireing for ESP8266
```
#define RFM69_CS 2 // to NSS
#define RFM69_INT 15 // to DIO0
#define RFM69_RST 16 // to RESET
#define LED 0
```# Screen Shot
![ScreenShot](https://user-images.githubusercontent.com/6020549/168998608-ec658a7a-c4f5-4917-bc13-fe72002b1d34.jpg)