Can any one advise me regarding what to use to convert AC to DC to input the UNO for voltage and two current sensors. I have all the hardware and have used some true rms to dc converters but they don't seem to interface properly with the UNO.
See here: http://openenergymonitor.org/emon/buildingblocks/ct-sensors-interface We have gone along the route of calculating true rms on the arduino itself.
Thanks Trystan, I have build a voltage input circuit but the sketch is throwing up problems as errors below.
voltage_and_current_ex.cpp.o: In function `loop':
C:\DOCUME~1\MARK~1.BEA\LOCALS~1\Temp\build2352948031508961507.tmp/voltage_and_current_ex.cpp:17: undefined reference to `EnergyMonitor::calcVI(int, int)'
C:\DOCUME~1\MARK~1.BEA\LOCALS~1\Temp\build2352948031508961507.tmp/voltage_and_current_ex.cpp:18: undefined reference to `EnergyMonitor::serialprint()'
voltage_and_current_ex.cpp.o: In function `setup':
C:\DOCUME~1\MARK~1.BEA\LOCALS~1\Temp\build2352948031508961507.tmp/voltage_and_current_ex.cpp:11: undefined reference to `EnergyMonitor::voltage(int, double, double)'
C:\DOCUME~1\MARK~1.BEA\LOCALS~1\Temp\build2352948031508961507.tmp/voltage_and_current_ex.cpp:12: undefined reference to `EnergyMonitor::current(int, double)'
Any Ideas, I'm a little green with this.
I can't seem to get the sketch to compile Trystan. Errors are as follows.
Can anyone help with this? I am not seeing something here in the example script. I want to get my immersion heater device finish then I can post it on here.
It seems that I am stuck out on a limb here, tried my hardest to workout what is wrong with the sample sketch here http://openenergymonitor.org/emon/buildingblocks/ct-sensors-interface.
I have put the emon lib in but still keeps coming up with error "undefined reference to `EnergyMonitor::current(int, double)' for voltage and current. Please help someone.
Maybe silly question but did you copy the EmonLib directory into the libraries directory of Arduino ?
Yes I have done that prensel; with all the post regarding the example others seem to get it working ok. I'm just learning about the Arduino and have carried out what is said but it throws the fore mentioned errors on compile.I've tried messaging Trystan but have no reply as yet. I'm not one for throwing the towel in but i'm getting very frustrated with the sketch. Thanks for your reply anyway.
Another simple question - did you restart arduino after copying the libraries into place?
Yes Lloyd I have done that.
Have I got to set anything in the Emonlib would anyone know?
In the Emonlib it says the following
Is this a test? well I have failed.. someone put me out of my misery pleeeeeeeeeeeeeezzzzz.
Your sketch compiles fine.
Thanks Pcunha, It was the emonlib.c I didn't have in, when i put that in the lib folder it worked.
I'm just experimenting with a sketch that Paul Reed uses but that throws up errors, if you could try that as below.
Paul said it works ok but he used the older version of Arduino IDE.
Thanks pcunha for the advice, I have a script that works now and have modified it to my needs. Thanks again.
Open-source tools for energy monitoring and analysis. This project uses the GNU General Public Licence