Hi everybody!
I have an emonTx Shield and emonBase, both with RFM69.
I want to measure current and real power with CT sensors and transmit data via wireless using RFM69 to emonBase
#define RF69_COMPAT 1 // set to 1 to use RFM69CW
#include <JeeLib.h> // make sure V12 (latest) is used if using RFM69CW
#include "EmonLib.h"
EnergyMonitor ct1,ct2,ct3, ct4;
At this point if I set to 0, the sketch run well and send data by serial monitor, everything is fine, but I’m not sending data via wireless
If I want to send data with my RF69 I set to 1, but I always get the same error, and it doesn’t send any data by serial monitor, only setup configurations “emonTX Shield CT123 example, OpenEnergyMonitor.org” etc, but no data.
For any reason it gets stuck.
I have all library installed, I’m using Arduino IDE 1.8.5 and windows 10, but I also tried with Visual Studio IDE, with windows 7, downgrading the Arduino IDE to 1.0.6 and 1.5.2 and I always get the same error
I suggest using an OLDER version of the JEELIB RFM library rather than the latest one - pick one from the same time range as the examples you are using - probably 2 years old.
The sketch you link to is the correct one. The sketch sticking usually means the RFM69CW is not responding to the initialise command. And that is usually because of a bad connection to the radio module itself. The jumper settings could be the bad connection you are looking for.
Do not forget your antenna. It is important. Without it, you must not operate the radio at or near full power, otherwise the output stage might be damaged.
Looks like you could have a faulty RF module. Could you email us at the shop with your order number? We can work out together the best way to resolve this.