3 Phase system

Hi!

I just bought EmonTx v3.4 with 3 CT sensors. I have 3-phase in my home, so I`d like to add EmonTx just after 3-phace electicity meter. I found example for 3-phase systems (https://github.com/openenergymonitor/emonTxFirmware/tree/master/emonTxV3...) but it itsn`t working. I`m not receiving data to my emonhub. Maybe someone can help me to find bug in this firmware or help to add 120` for CT2 and 240` for CT3 delay to script that is working: https://github.com/openenergymonitor/emonTxFirmware/blob/master/emonTxV3/RFM12B
​/emonTxV3_4_RFM12B_DiscreteSampling/emonTxV3_4_RFM12B_DiscreteSampling.ino

 

 

Robert Wall's picture

Re: 3 Phase system

Which Radio module do you have? You might need to add
  #define RF69_COMPAT 0 // Set to 1 if using RFM69CW or 0 is using RFM12B
if you have the new RFM69CW radio module.
Have you set the correct radio frequency?
Have you followed the calibration instructions in the comments at the beginning of the sketch?
What do you see on the Arduino IDE serial monitor? - You may need to #define SERIALPRINT to see this.

Robert Wall's picture

Re: 3 Phase system

OK, the problem was that RFu_jeelib did not want to work with the RF69, then when I changed back to JeeLib, a long-standing change in JeeLib meant that some renaming was required. Try this version. I've added RF69 compatibility and it seems to be working for me - at least, it is transmitting correctly and as the maths has not changed, all the rest should be OK.

Be sure to follow the calibration instructions in the comments.

alexg's picture

Re: 3 Phase system

hi guys, sorry for reviving such and old thread but I also have some issues with 3 phase, RFu_JeeLib.h and the latest sketches on github.

For me the only sketches that work, are those that include RFu_JeeLib.h. The sketch attached above from Robert did work when i changed JeeLib.h to RFu_JeeLib.h. 

This one, the latest 3 Phase from git https://github.com/openenergymonitor/emonTxFirmware/blob/master/emonTxV3/RFM/emonTxV3.4/emonTxV3_4_3Phase_Voltage/emonTxV3_4_3Phase_Voltage.ino 

does not work at all for me and I m not sure where to go and what to change. Are the RFM functions copied directly from jeelib? could i just overwrite them to the ones from RFu_JeeLib.h ?

thank you very much for all the information and help

alex

Robert Wall's picture

Re: 3 Phase system

I'm afraid I'm not this guy on the right.

You need to tell us more about your system; particularly what hardware you are using. Without knowing that, any advice would be a pure guess.

Thank you.

Robert Wall's picture

Re: 3 Phase system

From your mention of RFu_JeeLib, I'm guessing that you have an emonTx V3.2 with a RFμ 328.

If you have the V1.2 RFμ 328, you can change these two constants in the sketch and it should work. (It works for me). If you have a V1.1, there's a known problem with the standard JeeLib. I think the routines in the sketch do not include the cause of the problem, but I cannot test a V1.1.

#define RFMSELPIN 4
#define RFMIRQPIN 3

The details are here: https://github.com/openenergymonitor/RFu_jeelib

alexg's picture

Re: 3 Phase system

Hi Robert, 

 

Sorry about the lack of details, I was still finding things out myself and then my answer was under moderation so I figured I d wait rather than double post.

So here is what I have

emonTX v3.2

Ciseco RFμ 328 v1.3 

I was able to get https://github.com/openenergymonitor/emonTxFirmware/blob/master/emonTxV3/RFM/emonTxV3.4/emonTxV3_4_3Phase_Voltage/emonTxV3_4_3Phase_Voltage.ino working by removing all the included RFM stuff, including RFu_jeelib and using it's functions.

I will try your suggested workaround and report back, thank you very much.

Cheers

Alex

alexg's picture

Re: 3 Phase system

Hi,

I am happy to report your fix worked for me. Thank you very much.

I have also added it here if anyone else runs into this:

https://github.com/openenergymonitor/emonTxFirmware/issues/10

Have a great evening ;)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.