* Eventually uncomment the //#define DEBUGGING// if you want to have detailed output over the serial port.

-

* [TODO : set up Vcal, Ical values]

* Compile and upload the sketch to the board.

* Compile and upload the sketch to the board.

=== - Test it ===

=== - Test it ===

* Connect the emonTx power adaptor. A red led should be on and then flash regularly.

* Connect the emonTx power adaptor. A red led should be on and then flash regularly.

-

* Test it is working (on Linux) ​:

+

* To see the values that are transmitted from the emonTx module you can:

-

* Install the //​python-serial//​ package

+

​* Either use the serial console of the Arduino IDE serial console.

-

* On your computer run this python test script (name it //​serialtest.py//​),​ which reads the values emitted from the emonTx over the serial port (make sure the serial port is correct, you can see it executing the //dmesg// command) : <code python>​import serial, sys

+

* Or use a short Python script to display the values received over the serial interface:​

+

​* Install the //​python-serial//​ package

+

* On your computer run this python test script (name it //​serialtest.py//​),​ which reads the values emitted from the emonTx over the serial port (make sure the serial port is correct, you can see it executing the //dmesg// command) : <code python>​import serial, sys

ser = serial.Serial('/​dev/​ttyUSB0',​ 9600)

ser = serial.Serial('/​dev/​ttyUSB0',​ 9600)

while 1:

while 1:

Line 39:

Line 39:

* The fourth column is the operating voltage (multiplied by 100) of the electrical installation.

* The fourth column is the operating voltage (multiplied by 100) of the electrical installation.

* If you have negative values for the power consumption,​ turn up side down the CT clip on the electrical panel.

* If you have negative values for the power consumption,​ turn up side down the CT clip on the electrical panel.

+

=== - Calibrate emonTx ===

+

* In the Arduino IDE, open the //​emonTxV3_3Phase_Voltage//​ sketch.

+

* Eventually uncomment the //#define DEBUGGING// if you want to have detailed output over the serial port.

+

* For each electrical phase:

+

* Make sure there is no power consumption (switch off the lights, appliances...).

+

* Connect a pure resistive load (e.g. a heater) to the electrical phase you are calibrating.

+

* Look at the power consumption in the serial console.

+

* In the sketch, adjust //​PhasecalX//​ (//X// corresponding to the phase you are calibrating) to display:

+

* A power factor of 1.00.

+

* The power consumption corresponding to the one of the appliance you connected.

==== - emonTh ====

==== - emonTh ====

* Just {{:​projects:​open_energy_monitor_unmonastery:​emonth_module.jpg?​linkonly|put the batteries on the emonTh}} temperature / humidity sensor.

* Just {{:​projects:​open_energy_monitor_unmonastery:​emonth_module.jpg?​linkonly|put the batteries on the emonTh}} temperature / humidity sensor.