Closed atzimot closed 1 year ago
Hi atzimot, is this from a DIY board or the factory assembled PCB?
Can you run and attach the output from a debug plot? https://github.com/David00/rpi-power-monitor/wiki/Software-1.-Overview#debug-mode
Also, make sure that the software is not running in the background with sudo systemctl status power-monitor
, and if it is running, stop it with sudo systemctl stop power-monitor
.
Hi David, Is a factory assembled PCB. The service was stopped when I have done the tuning. I have attached the debug plot I don't have any ct attached right now to the PBC
also I have used your prebuild raspbbery image
Have you only done the initial voltage check and input for the voltage, or have you changed other values in the config.py?
Also, after you changed the values in config.py, did you run the following: cd ~/rpi_power_monitor pip install .
lastly, can you copy and paste the contents of your config.py
Yes I have made only the voltage check. I have done also the pip after changes Here is the config
(Edited by David00 to add a code block)
import logging
import sys
# Create basic logger
logger = logging.getLogger('power_monitor')
logger.setLevel(logging.INFO)
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s : %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
ch.setFormatter(formatter)
logger.addHandler(ch)
# Using a multimeter, measure the voltage of the receptacle where your 9V AC transformer will plug into.
# Enter the measured value below.
GRID_VOLTAGE = 235
# Using a multimeter, measure the output voltage of your AC transformer. Using the value on the label is
# not ideal and will lead to greater accuracy in the calculations.
AC_TRANSFORMER_OUTPUT_VOLTAGE = 8.94
# InfluxDB Settings
db_settings = {
'host': 'localhost',
'port': 8086,
'username': 'root',
'password': 'password',
'database': 'power_monitor'
}
# ADC pins/channels
ADC_CHANNELS = {
'ct1_channel': 0,
'ct2_channel': 1,
'ct3_channel': 2,
'ct4_channel': 3,
'ct5_channel': 6,
'ct6_channel': 7,
'board_voltage_channel': 4,
'v_sensor_channel': 5
}
# The values from running the software in "phase" mode should go below!
CT_PHASE_CORRECTION = {
'ct1': 1,
'ct2': 1,
'ct3': 1,
'ct4': 1,
'ct5': 1,
'ct6': 1,
}
# AFTER phase correction is completed, these values are used in the final calibration for accuracy.
# See the documentation for more information.
ACCURACY_CALIBRATION = {
'ct1': 1,
'ct2': 1,
'ct3': 1,
'ct4': 1,
'ct5': 1,
'ct6': 1,
'AC': 1,
}
@atzimot, was your AC power supply plugged into the PCB when you ran the debug plot above? The PCB looks like it is not seeing much come in on the AC voltage input. Can you share a photo of the label on the AC power supply that you're using?
I have changed the AC power supply and now the debug is like this. Now the AC has the value 9.54V
Here is the AC data
But the values are the same under 0
The problem appears to be that your power supply puts out 9V DC, not 9V AC. It needs to be an AC output.
Thanks for the info What is the minimum consumtion for this transformer ? I'm asking becuase I have found transformers but they have different consumtions 100, 200, 400 mA
Jameco Reliapro 9V AC to AC Output: 9V AC, 500mA
What is the minimum consumtion for this transformer ?
Any of the ones you've listed should work fine. There is very little consumption from the AC transformer input.
I'm tring to do the voltage tuning and i have in terminal values below 0
GRID_VOLTAGE = 235 AC_TRANSFORMER_OUTPUT_VOLTAGE = 8.94
What do I have to do ? I have done all steps from the wiki