RFM69

pinout

Pinout RFM69HCW

pinout_rfm69HCW

RFM69HCW + Arduino Pro Mini 3.3V

arduinppromini

RFM69 Arduino Pro Mini
GND GND
VCC 3.3V (ou alim externe)
MISO D12
MOSI D11
SCK D13
NSS/SS/CS D10
DIO0 D2
/*
  @name : node-rfm69-compteur-edf
  @date : 02/04/2020
  @author : Samuel Goutenoir
  @link : https://blackdrop.fr/
  @platofrm : Visual Code Studio + PlatformIO
  @description: Arduino Pro Mini 3.3V 8MHz + RFM69 + IR sensor
  Mesures in real time the Wattage from the EDF counter
*/

#include <Arduino.h>
#include <RFM69.h>
#include <RFM69_ATC.h>

#define GATEWAYID     1     //ID of  your main/gateway/receiver node (can be any ID but good to keep this as 1 or an easy to remember number)
#define NODEID        3    //unique for each node on same network
#define NETWORKID     100  //the same on all nodes that talk to each other
#define FREQUENCY     RF69_433MHZ
#define IS_RFM69HW_HCW  //uncomment only for RFM69HW/HCW! Leave out if you have RFM69W/CW!
#define ENCRYPTKEY    "sampleEncryptKey" //exactly the same 16 characters/bytes on all nodes!
//#define ENABLE_ATC    //comment out this line to disable AUTO TRANSMISSION CONTROL
#define ATC_RSSI      -75
#define BATT_MONITOR  A7  
#define BATT_FORMULA(reading) reading * 0.00322 * 1.49
#ifdef ENABLE_ATC
  RFM69_ATC radio;
#else
  RFM69 radio;
#endif

#define RF69_SPI_CS 2
//#define RF69_IRQ_PIN 16
//#define RF69_IRQ_NUM RF69_IRQ_PIN


void setup() {
  radio.initialize(FREQUENCY,NODEID,NETWORKID);
  #ifdef IS_RFM69HW_HCW
    radio.setHighPower(); //must include this only for RFM69HW/HCW!
  #endif
  radio.encrypt(ENCRYPTKEY);

  #ifdef ENABLE_ATC
    radio.enableAutoPower(ATC_RSSI);
  #endif

  // To make sure your radio is well initialize, confirm that the freq is good
  Serial.println(radio.getFrequency());
}

void loop() {
  Serial.println("sending...");
  radio.sendWithRetry(GATEWAYID, "START", 5);
  Serial.println("ok");
  delay(500);
}

ESP8266 + RFM69HCW

RFM69 ESP8266
GND GND
VCC 3.3V (ou alim externe)
MISO  
MOSI  
SCK  
NSS/SS/CS  
DIO0