Good evening,
I've just received the emonPi. Now I'd like to calibrate my real voltage reading. I know I can do calibration in EmonCMS but thats not what I want. I am using the DE-06-09 EU power adapter delivered with the emonPi. The Node reading is ~ 259V instead of 234V, therefore the power reading is as well not accurate.
No matter what I change in the /home/pi/emonpi/Atmega328/emonPi_RFM69CW_RF12Demo_DiscreteSampling/emonPi_RFM69CW_RF12Demo_DiscreteSampling.ino or emonPi_Startup.ino file I have no difference after updating the emonPi. I have also downloaded the ino files and compiled them new (Arduino IDE is giving some errors TRUE and FALSE as true and false and so on). After uploading them with avrdude I don't have any node connection.
Can someone give me a hint how to handle the calibration?
Thanks a lot.
Martin
Re: Calibration on EmonPi
Did you load the file like this - of course using the .hex file that you compiled rather than getting it from Git?
Re: Calibration on EmonPi
Thanks a lot Robert,
stupid me forgot to restart the emonhub =)
Now everything works great.
Re: Calibration on EmonPi
Found an other funny thing. Now my LCD-Display just shows :
Detected: 0
DS18B20 Temp.
I'm not able to switch between the different modes like wifi, power,...
I have not touched anything else than the power adapter calibration.
Best regard Martin
Re: Calibration on EmonPi
I'm only just finding my way around the EmonPi anyway, so I don't know what might have gone missing until I check. Clearly, it's either not seeing the push-button or it's not driving the display correctly. We might need to wait for a response from Glyn on this.
Re: Calibration on EmonPi
Hi Martin,
To upload to the emonPi you need to first compile the code using Arduino IDE on your computer then transfer the .hex compiled file onto the emonPi.
You can then run:
$ ~/emonpi/Atmega328/./update
be sure to edit the update script to point to the location of your new .hex file. Here is the default update script: https://github.com/openenergymonitor/emonpi/blob/master/Atmega328/update. It uses avrdude to do a serial upload @ 115200 after stopping emonhub service.
The serial upload speed is different to the RFM69Pi upload that Robert linked in above since the ATmega328 on the emonPi runs as 16Mhz as opposed to 8mhz on the RFM69Pi.
Re: Calibration on EmonPi
I had this exactly once in the last week - since install - and a power cycle (i.e. pull out the USB and wait 10 seconds, re-insert) fixed it for me.
Re: Calibration on EmonPi
Finally I got it. After having a look at the original update log file I've found that I have to restart the LCD again.
service emonPILCD stop
service emonPILCD start