Code Monkey home page Code Monkey logo

Comments (5)

iw2fvo avatar iw2fvo commented on June 25, 2024

good day to all,
I am using PZEM 004T v3.0 connected to esp 8266 loaded using Arduino IDE and relevant example sketches.
I am not so skill in using "c" and IDE so I would like if someone could indicate to me the code line to be used for :

reset accumulated enrgy
set MAX power
read alarm flag
Thank a lot in advance for any answer.
Regards
iw2fo(at)yahoo.com

from pzem-004t-v30.

sergiocntr avatar sergiocntr commented on June 25, 2024

Ciao.

reset accumulated enrgy -> pzem.resetEnergy();
set MAX power -> pzem.setPowerAlarm(watts);
read alarm flag -> bool alarm = pzem.getPowerAlarm();

Try and let me know if you need more help.

from pzem-004t-v30.

iw2fvo avatar iw2fvo commented on June 25, 2024

from pzem-004t-v30.

sergiocntr avatar sergiocntr commented on June 25, 2024

Hi Ambrogio
nice to hear that it worked.
For LoRa I have no code, I've never used that device. I've searched a bit and I can assure you that Renzo has everything you need https://github.com/xreef/LoRa_E32_Series_Library

If you think the problem here is solved, please close the issue.

from pzem-004t-v30.

margohaux avatar margohaux commented on June 25, 2024

hi! i wanted to reset the energy but the code is error. may i know if you have a reference code to reset energy?

from pzem-004t-v30.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.