Using more than one AC-AC adapter

Hi i have 2 different power sources so 2 different ac waves, as far as i understand i can't have 2 ac-ac adapters...

So can i "select" to use the ac-ac adapter for one CT and fix the other CT as no ac-ac adapter mode ?




TrystanLea's picture

Re: Using more than one AC-AC adapter

Are these two power sources connected in any way? are they on the same phase? The firmware could be modified to do what you want.

Take a look at the examples:

  emonTxFirmware > emontx v2 > Guide > 1_SingleCT


emonTxFirmware > emontx v2 > Guide > c_ACVoltage

you would need to merge these two, something like this:


#include "EmonLib.h"                   // Include Emon Library
EnergyMonitor ct1,ct2;                     // Create an instance

void setup()
  ct1.voltageTX(228.268, 1.7);         // Calibration, phase_shift
  ct1.currentTX(1, 111.1);             // CT channel, calibration.
  ct2.currentTX(1, 111.1);             // CT channel, calibration.

void loop()
  ct1.calcVI(20,2000);                 // Calculate all. No.of half wavelengths (crossings), time-out
  ct1.serialprint();                   // Print out all variables

  double Irms = ct2.calcIrms(1480);    // Calculate RMS current (1480: no. of samples)
  Serial.println(Irms*230);            // Print power Irms x 230Volts (assumed)


fca's picture

Re: Using more than one AC-AC adapter

Hi and thanks...

no the power sources are complete isolate  one from the public grid other from my offgrid ( hybrid) inverter  and third one from diesel generator (near future )

sobin your example ct1 as no ac ac adapter and ct2 is using the ac ac adapter reading ?

Comment viewing options

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