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
Re: Emon Not working
Hi Matt,
You say you get ine line of output but nothing else. What does that line say?
Glyn.
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.
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.
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