
MEDIDOR DE ALTERNA
thingiverse
MEDIDOR DE ALTERNA, MIDE VOLTAJE, INTENSIDAD, POTENCIA APARENTE Y ACTIVA, FACTOR DE POTENCIA Y FRECUENCIA. 80-260V, 0-16A. LISTA DE MATERIALES: -ARDUINO NANO, MÓDULO PZEM-004T_v3, TIENE QUE SER LA VERSIÓN 3 SI NO NO VA A FUNCIONAR, PANTALLA LCD I2C 20X4, ENCHUFE MACHO AEREO, ENCHUFE HEMBRA PARA EMPOTRAR, INTERRUPTOR BIPOLAR LUMINOSO Y ALIMENTADOR DE 5V, VALE EL DE CUALQUIER MÓVIL. -CÓDIGO DE ARDUINO: -INTRODUCIR LAS SIGUIENTES LIBRERIAS: -PZEM004Tv30 -LiquidCrystal_I2C -Wire /* Use software serial for the PZEM * Pin 11 Rx (Connects to the Tx pin on the PZEM) * Pin 12 Tx (Connects to the Rx pin on the PZEM) */ PZEM004Tv30 pzem(11, 12); LiquidCrystal_I2C lcd(0x27,20,4); void setup() { Serial.begin(115200); Wire.begin(); lcd.init(); // initialize the lcd lcd.backlight(); } void loop() { int voltage = pzem.voltage(); if( !isnan(voltage) ){ Serial.print("Voltage: "); Serial.print(voltage); Serial.println("V"); }// else { // Serial.println("Error reading voltage"); // } float current = pzem.current(); if( !isnan(current) ){ Serial.print("Current: "); Serial.print(current); Serial.println("A"); }// else { // Serial.println("Error reading current"); // } float power = pzem.power(); if( !isnan(power) ){ Serial.print("Power: "); Serial.print(power); Serial.println("W"); } //else { // Serial.println("Error reading power"); // } float energy = pzem.energy(); if( !isnan(energy) ){ Serial.print("Energy: "); Serial.print(energy,3); Serial.println("kWh"); } //else { // Serial.println("Error reading energy"); // } int frequency = pzem.frequency(); if( !isnan(frequency) ){ Serial.print("Frequency: "); Serial.print(frequency, 1); Serial.println("Hz"); } //else { // Serial.println("Error reading frequency"); // } float pf = pzem.pf(); if( !isnan(pf) ){ Serial.print("PF: "); Serial.println(pf); }// else { //Serial.println("Error reading power factor"); // } Serial.println(); lcd.setCursor(1,0); lcd.print("MEDIDOR DE ALTERNA"); lcd.setCursor(2,1); lcd.print(voltage);//posiciona el cursor y escribe valor lcd.print("V "); lcd.setCursor(11,1); lcd.print(current);//posiciona el cursor y escribe valor lcd.print("A "); lcd.setCursor(2,2); lcd.print(power);//posiciona el cursor y escribe valor lcd.print("W "); lcd.setCursor(11,2); lcd.print(voltage*current);//posiciona el cursor y escribe valor lcd.print("VA "); lcd.setCursor(2,3); lcd.print(pf);//posiciona el cursor y escribe valor lcd.print("FP "); lcd.setCursor(11,3); lcd.print(frequency);//posiciona el cursor y escribe valor lcd.print("Hz "); delay(500); }
With this file you will be able to print MEDIDOR DE ALTERNA with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on MEDIDOR DE ALTERNA.