ZMPT101B & Arduino AC Voltmeter Blueprints I don’t see people playing with ZMPT101B much on the internet. Luckily, I got better results thru the “serial monitor” code adapted from here https://solarduino.com/how-to-measure-ac-voltage-with-arduino/ (my code is just something quick and...
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...