Community
OpenEnergyMonitor

Community

Update to 3-Phase PLL sketch

3-phase
Tags: #<Tag:0x00007f10a5e7ec50>
(Robert Wall) #1

Continuing the discussion from Arduino IDE problem:

It appears that version 1.8.7 of the Arduino IDE requires a definition of the showString( ) function to be placed in the main sketch. This problem manifested itself in the linked thread, which concerns the 3-phase PLL sketch.

An updated version of the sketch is here:

emonTx_3Phase_4wire_PLL_V1.3.zip (148.2 KB)
This version is now obsolete – see post no.15 below.

MD5 Hashes:

emonTx_3Phase_4wire_PLL_V1.3.zip 37fb18eb9fdccaa4585a976ee57c1728
emonTx_3Phase_PLL.ino : 555097527771ed55174c3460bf018f3a
config.ino: ae9cc9c91f67ed3a6b47e49cc1f47b32
rfm.ino: 44a0b048b14e5e013625809736853c57
emonTx 3-phase PLL User Doc.pdf: 55287f337cf37c482a942cc5cf3e768d
2 Likes

Somtimes negative power on phase 3
3 Phase emonTX v3 firmware (Latest)
EmonTX Three-phase with EmonESP
(Greebo) #2

Quoting https://www.arduino.cc/en/Main/ReleaseNotes:

ARDUINO 1.8.6 2018.08.23

[ide]
* Updated arduino-builder to 1.4.0:
  - parallel build (improve compile speed)
  - better reuse of already compiled files
  - Windows: fixed build for sketch stored under OneDrive cloud folders

That parallel build could be a root cause… I looked through the rest of the release notes back to 1.8.1 and nothing else stood out as a possible cause.

0 Likes

(Robert Wall) #3

So did I, and nothing stood out for me either. But it’s a significant change of behaviour from previous versions.

0 Likes

(John Banks) #4

Respectfully to whom it may concern … (@TrystanLea @Gwil @glyn.hudson)

For the benefit of others, I do hope this latest version will soon be placed/linked to in the Resources section.

Frankly - I find it difficult/impossible to locate single & 3 phase sketches as clicking on links just takes me in a circle back to where I started from.

On a separate/related topic - There is an excellent guide - ‘Using the Arduino IDE’ within the LEARN Electricity Monitoring section. There should be a prominent link to this in the RESOURCES section, in my opinion.

Respectfully …

Edit - added names to post. BT -Moderator

1 Like

(Robert Wall) #5

I have extended the 3-phase PLL sketch to cover now a 3-wire (no neutral) system as well as the 4-wire (with neutral) system.

In the 3-wire setting, one phase is treated as the neutral, and the system then collapses into a 2-phase system with the second phase lagging 60° behind the “reference” phase, the a.c. adapter being connected line 1 – ‘neutral’ phase. In this configuration, the two phase “powers” are meaningless, only the total power (real and apparent) is a valid physical quantity so the total power is reported as “power1”, and “power2” is always zero.

The principal changes are:

  1. A switch to set 3-wire or 4-wire,
  2. Each c.t. can now be allocated to any phase.

MD5 Hashes:

emonTx_3Phase_PLL_V1.4.zip f6f0fd4e57290ed985f23596e1f55bc0
emonTx_3Phase_PLL.ino c8e684a2549cde41629f2db205794b45
config.ino ae9cc9c91f67ed3a6b47e49cc1f47b32
rfm.ino 44a0b048b14e5e013625809736853c57
emonTx 3-phase PLL User Doc.pdf: c18387136424b903cdf49366f30fde9b

Extract the directory “emonTx_3Phase_PLL” and put it in your “sketches” folder. You can put the documentation where you wish.

emonTx_3Phase_PLL_V1.4.zip (151.9 KB)

This version is now obsolete – see post no.13 below.

0 Likes

CT Sensor connection validation
(Greebo) #6

Should this be in Github (https://github.com/openenergymonitor/emontx-3phase) with the “other” 3-phase sketch? Is there any reason this one doesn’t supersede the one already in Github?

0 Likes

CT Sensor connection validation
(Robert Wall) #7

From my point of view, it’s immaterial. I’m happy to be responsible for the version I publish, once a third party makes a change of any sort, responsibility passes to them. The GitHub version was put there by @Simsala, then Dan Bates made a change - a very poorly thought out change - that I could not agree to, so he’s now responsible for that version.

[Moved as the question was off-topic - nothing to do with the operation of the sketch.]

0 Likes

(Greebo) #9

The last commit was done by @glyn.hudson
Is there any reason we shouldn’t create a PR for this version and merge it in?

0 Likes

(Robert Wall) #10

I don’t “do” GitHub, it’s an impenetrable mess to me, so I’ve no view on the matter.

0 Likes

(Trystan Lea) #11

To be clear a ‘Pull request’ in github is a suggestion for a change, and @danbates pull request was not merged in this case. I’m sure Dan was just trying to help and suggest an improvement, is there a discussion somewhere that discusses the proposed changes?

I’ve upload your v1.4 changes @Robert.Wall available here in a development branch for testing:

https://github.com/openenergymonitor/emontx-3phase/tree/v1.4

You can download a zip file of v1.4 which should be identical (content, not file names) to your zip posted above here

https://github.com/openenergymonitor/emontx-3phase/archive/v1.4.zip

Im happy to merge this in if your happy with it @Robert.Wall

0 Likes

EmonTx - use of EEPROM
(Robert Wall) split this topic #12

14 posts were split to a new topic: EmonTx - use of EEPROM

0 Likes

(Glyn Hudson) #13

This PR has now been merged. Current master branch of emontx-3phase is now V1.4 with 3-wire and 4-wire support.

Credit @Robert.Wall

0 Likes

(Robert Wall) #14

Following on from difficulties in using this sketch with an ESP8266 module, the documentation has been changed to note that the baud rate setting in the ESP module must be reduced to 9600 baud. This release has no changes to the sketch, which remains at V1.4.

MD5 Hashes:
emonTx_3Phase_PLL_V1.5.zip 4bc19cd409bf43f32bdf835ea3b59355
emonTx_3Phase_PLL.ino c8e684a2549cde41629f2db205794b45
config.ino ae9cc9c91f67ed3a6b47e49cc1f47b32
rfm.ino 44a0b048b14e5e013625809736853c57
emonTx 3-phase PLL User Doc.pdf: 019524b053c3370380ebcbaf657f5d46

 

Extract the directory “emonTx_3Phase_PLL” and put it in your “sketches” folder. You can put the documentation where you wish.
If you are updating your documentation, it is only necessary to extract that.

emonTx_3Phase_PLL_V1.5.zip (152.4 KB)
This version is now obsolete – see post no.15 below.

0 Likes

Latest data showing blanks/blocks
(Robert Wall) #15

An incorrect space character in the formatted output (3-wire system) for the ESP8266 has been corrected. There is no other change.

MD5 Hashes:
emonTx_3Phase_PLL_V1.6.zip 9b109f26f7a0ec81c8798d20e185cf4c
emonTx_3Phase_PLL.ino : 71adf0fc1c51dcfaf54ddde9f85a2971
config.ino: ae9cc9c91f67ed3a6b47e49cc1f47b32
rfm.ino: 44a0b048b14e5e013625809736853c57
emonTx 3-phase PLL User Doc.pdf: 9ca0eef63994381fe3ee7474778005f8

 

emonTx_3Phase_PLL_V1.6.zip (152.4 KB)

1 Like

emonESP not finding wi-fi networks
EmonESP does not connect to emonCMS
emonESP does not update emonCMS (debian AND Ubuntu - apache error 400)
(Brian Orpin) split this topic #16

7 posts were split to a new topic: Git and GitHub

0 Likes