Code #include<ZMPT101B.h>//ZMPT101B sensor connected to the A0 pinZMPT101BvoltageSensor(A0);voidsetup() { Serial.begin(9600);//Set Vref, defaults to 5.0 (V)voltageSensor.setVref(5.0);//Set zero point, defaults to 512//or use calibrateLive() in the main loopvoltageSensor.setZeroPoin...
ZMPT101B arduino的使用经验 如果要使用官方推荐的ZMPT101B arduino库:https://github.com/Abdurraziq/ZMPT101B-arduino,则需要注意的是,里面的example需要改动的地方在sensitivity值和zero值。根据issue里面的提示,这个sensitivity是后验值,需要你有参考的电源电压值来测量得到,比如你测量的是220V,那么你需要调整这个sen...