Smart Home Automation Forum
how to calibrate AC voltage for M16V2 - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-M16 / M1 / MB / M30 (https://www.kincony.com/forum/forumdisplay.php?fid=50)
+--- Thread: how to calibrate AC voltage for M16V2 (/showthread.php?tid=3811)



how to calibrate AC voltage for M16V2 - admin - 12-09-2023

1. run arduino calibration program code to find your "Sensitivity" value for ESPHome M16v2 component. 
here is arduino code: https://www.kincony.com/forum/showthread.php?tid=3089
before use this arduino code, you need install "ZMPT101B" arduino library firstly.
then before run this code, use multi meter test your L and N voltage , then only "Change this based on actual voltage" in code:
   
   
when running this code, serial port will print  "Sensitivity" value at the end.
   
then change  "Sensitivity" value in home assistant "/homeassistant/esphome/zmpt101b/zmpt101b_custom_sensor.h"
   
now it's completed.