Hello, it was a hardware problem. I had tried with two different Pro Mini boards, but after trying with a third one, everything is working now. Thank you for your help.
Aymeric
Posts
-
Sleeping with RFM95 ? -
Sleeping with RFM95 ?Hi,
I'm trying to put a node to sleep that consists of an Arduino Pro Mini board (3.3 V, 8 MHz) and an RFM95 module (SX1276 chip) using MySensors (2.4.0). In the code below, the node does not go to sleep. I've tried with and without transportDisable/transportReinitialise, and also cutting power to the RFM95 module using powerDownRadio / powerUpRadio, but whenever sleep actually works, the radio transmission no longer works after waking up… I don’t know what else to test. Any idea? Is it a hardware problem ?#define MY_DEBUG
#define MY_RADIO_RFM95
#define MY_RFM95_FREQUENCY (RFM95_868MHZ)
#define MY_IRQ_PIN 2
#define MY_RST_PIN 9
#define MY_NODE_ID 22#include <MySensors.h>
MyMessage msgTestRfm(100, V_CUSTOM);
void presentation() {
sendSketchInfo("Test RFM", "1.1");
present(100, S_CUSTOM);
}void loop() {
send(msgTestRfm.set(1));
wait(200);// couper la radio (sinon sleep() bloque)
transportDisable();
wait(50);// sommeil — pas de LowPower ici !
sleep(5000);// réactiver la radio
transportReInitialise();
wait(200);Serial.println("Réveillé !");
}