Activating voltage based control in Rpi

Activating voltage based control in Rpi

Voltage Thresholds

High Voltage alarm is activated with value for any of the phases is more than 275 for more than 2 minutes.
Low Voltage alarm is activated when value for any of the phases is less than 150V for more than 2 minutes.


Update log_files repository

  1. cd log_files
  2. git pull origin master

Run python script to activate voltage based control. Following script will create a json file in `/home/pi/conf/voltage_monitor` folder.

  1. python activate_voltage_based_control.py

Check if following file is created or not

  1. pi@raspberrypi ~ $ cat conf/voltage_monitoring/voltage_monitor.json
  2. {
  3.     "enable": "True",
  4.     "voltage_monitor_path": [
  5.         "/Meter2/VoltageRPhase",
  6.         "/Meter2/VoltageBPhase",
  7.         "/Meter2/VoltageYPhase"
  8.     ]
  9. }
In the above example, we are monitoring voltage control on Meter id 2's VoltageRPhase, VoltageBPhase, VoltageYPhase.


Restart the driver 
  1. driver_restart


Checking logs for voltage based control

  1. 2018-09-09 10:35:03+0530 [-] Voltage Alarm Normal - False

High Voltage
  1. 2018-09-09 10:35:03+0530 [-] Voltage Alarm High- True

Low Voltage

  1. 2018-09-09 10:35:03+0530 [-] Voltage Alarm Low- True