The answer is and a reliable ZMPT101B library .

#include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); float voltageRMS = 0; float readValue = 0; float Vref = 2.5; // Output offset of ZMPT101B (adjust based on simulation)

void setup() lcd.begin(16, 2); lcd.print("AC Voltage:");

lcd.setCursor(0,1); lcd.print(" "); lcd.setCursor(0,1); lcd.print(voltageRMS); lcd.print(" V AC");

Оформить заказ
История движения бонусов пока пуста
OK