Emon Not working

Hi I am new to the arduino arena, I have downloaded the files & compiled them & load them to the board but it doesn't seem to be working. I am using a freetronics "Eleven" board, the problem seems to be with the line

emon.calc(20,200);              //Energy Monitor calc function

I get 1 line of output but nothing else.

If I comment out the line I can get the serial output of 0.00 for each of the values.

I have tried the other sketch mainsACtest which works fine.

Any help would be appreciated & info on why it doesn't work so I can understand the problem & the solution.

Thanks

Matt

 

glyn.hudson's picture

Re: Emon Not working

Hi Matt,

You say you get ine line of output but nothing else. What does that line say?

Glyn.  

Guest's picture

Re: Emon Not working

I get the values that should be returned ie volts, power, current etc.
If I hit the reset button I some times get a output line but not every time.

TrystanLea's picture

Re: Emon Not working

Is your voltage divider by any chance not at half the supply voltage 2.5V if your supply is 5V. I can see where this would freeze the program if your biasing voltage divider was not at half the supply. I will make a change to it and upload a new version.

TrystanLea's picture

Re: Emon Not working

Ok, I've made a small change to the library, and I have uploaded the library and example to github. If you download it from there and give it a go and let me know if it works that would be great:

Github: https://github.com/openenergymonitor/MainsACv3

 

Comment viewing options

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