EmonTx with i2c lcdBarGraph

Hello friends 

 i want build this: https://www.youtube.com/watch?v=6BLM9C7FD9U

i have all modules belowe video

at compilling this project i have errors on lcdBarGraph for i2c lcd....

https://github.com/gysmovoile/emonTxFirmware/blob/master/emonTx_Interrup...

 

could smbdy sent to me right librarys?

Thanx wery much.

Thanx

Thanx

 

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

hello, please have smbdy tested it with succes ?

thanx for answer....

 

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

I do not remember having seen anything about LCD bargraphs here. Somebody might have done it, but if they have done it, they have not written about it.

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

i removed bar graphs from the code, now it alowed to programm to arduino board 

but the voltage is still 0volt

watt is still 0watt 

and the ampers are chnaging linear with the input 

its not good, where i have mistake ?

thx

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

maybe i solved, 

 need this, or smth similar....

http://shop.openenergymonitor.com/ac-ac-power-supply-adapter-ac-voltage-...

and it will measure 230v and due the wattage....

tomorow i will have ac 9v in mine works.

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

If you want us to help you, you must tell us what you are using. It is impossible to guess what hardware you have when you do not tell us. Your sketch defined one voltage sensor, therefore I think you have one voltage sensor. If you do not have a voltage sensor, you read 0 V and therefore you must have zero power. It is very simple.

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

OK friend, thanx for interesting.....

please is possible measure fast 3x current ??? this measurement from this sw calculating 2seconds for each of 3phase current sensor.....

 

i changed it to 1second but its too slow for mine usage....

 

i need to drive using this current:

-switching between 230v energy and soalr panel energy

 

Parts Used :
- Arduino Mega R3
- EmonTX Shield Without RF module
- 20X4 Character LCD Module Display - Serial I2C
- AC 220V-240V Converter Adapter AC 9V (for measuring 230V voltage)
- 3 x AC Current Sensor Transformer SCT 013-030

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

I understand you have a 3-phase electricity supply.

At present, we have only one sketch for a 3-phase supply, and that sketch uses the 'discrete sample' method. This sketch measures all three phases for 11 cycles (220 ms), not 2 s, then sends the result. Therefore, depending on the time taken to update your display, you could update your display approximately 4 times per second if you measure only your electricity grid connection, or 2 times per second if you add 3 more CTs which measure the inverter output from your solar panels and you read the two sets of CTs alternately.

("one sketch" = there are several versions, but all work in very much the same way. The emonTx Shield version has not been updated recently, the emonTx V3.4 version is the latest, but you must merge the 3-phase measurement code with your working sketch.)

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

Hello 

i have only 3current sensors.

 please could you sent to me link for downloadring sketch for 220ms for 3phase current measurement?

thanx wery much.

 

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

It's in GitHub.

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

there are wery much programs,

 please is poosible to find for me link?

thanx wery much

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

GitHub > emonTxFirmware > emonTxShield > Shield_CT1234_3Phase_Voltage

Is that so very hard?

dBC's picture

Re: EmonTx with i2c lcdBarGraph

Check out this thread as well:  http://openenergymonitor.org/emon/node/10419

User jdpmendes has identified what looks to be a bug in the "is this the first time through" test and provided what looks to me to be a reasonable fix.   I don't think that fix has made it into github yet.

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

His fix was wrong, and Github does have the correct version.

dBC's picture

Re: EmonTx with i2c lcdBarGraph

Can you elaborate a little please, either here or in the other thread.  He highlighted his issue in May, and I can't see any relevant changes since then.

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

Yes, the real problem was a negative index into the array on the first cycle. So obvious once spotted, but everyone (including me) missed it for quite a while.

dBC's picture

Re: EmonTx with i2c lcdBarGraph

Is this the file we're talking about?https://github.com/openenergymonitor/emonTxFirmware/commits/master/emonTxShield/Shield_CT1234_3Phase_Voltage/Shield_CT1234_3Phase_Voltage.ino

Are you sure your fix made it in?  The only recent change I can see was to do with nodeIDs.

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

i need measure 3x current 

NOT

3x voltage... 

 

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

dBC,

It's a pity GitHub and OEM can't see the advantages of proper version control. I downloaded it half an hour ago and this line is in there:
"V.4 16/6/2015 Array addressing bug solved."

jordiksvk,

We know you need 3-phase currents. The sketch is named as it is because there are single phase versions that measure ONLY current, those do not have "voltage" in the name. The ones that measure BOTH current and voltage do have "voltage" in the name.

The emonTx does not have 3 voltage inputs, so it is not possible to have a sketch for an emonTx that measures 3 voltages.

The sketch I pointed you towards measures 1 voltage and 4 currents. I think it is the one you want.

dBC's picture

Re: EmonTx with i2c lcdBarGraph

If I just use the github browsing feature, I end up here:

https://github.com/openenergymonitor/emonTxFirmware/blob/master/emonTxShield/Shield_CT1234_3Phase_Voltage/Shield_CT1234_3Phase_Voltage.ino

I don't think I can see your fix there.  Can you?

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

thanx, i will test 3phase voltage and will let all mine results.

thanx wery much.

jordiksvk's picture

Re: EmonTx with i2c lcdBarGraph

Shield_CT1234_Voltage_SerialOnly.ino

me compilling sketch and the progess bar freeze at 1/3 

and nothing compilled, what i am making wrong ?

thanx

solved: bad emonlib libraray i used....

 

pb66's picture

Re: EmonTx with i2c lcdBarGraph

Robert and dBC are you referencing the same sketch?

It looks like only the 3-phase emonTx v3.4 sketch has been modified on the 16/6/15 not the 3-phase emonTx shield sketch.

Originally commited on the 17th then modified on the 18th, including adding the changelog entry 

Paul

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

Thanks for pointing that out, Paul. I didn't notice the "shield" bit buried in the link. When I look at it, that's very old as it still has the high pass filter. I've never had anything to do with that, I think Glyn or Trystan converted it from the original emonTx V2. I can convert it quite easily, but it needs someone who has a Shield, and ideally a 3-phase supply, to test it.

dBC's picture

Re: EmonTx with i2c lcdBarGraph

I think I ended up there by following your instructions above:

GitHub > emonTxFirmware > emonTxShield > Shield_CT1234_3Phase_Voltage    Is that so very hard?

As jordiksvk says:   there are wery much programs,

Robert Wall's picture

Re: EmonTx with i2c lcdBarGraph

In fact, the only change that I can see that the emonTx V3.4 sketch requires to convert it for use with the emonTx Shield V2.5 is to copy the current calibration coefficients - the I/O numbers and the voltage calibration look the same.

Comment viewing options

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