Adding PZEM-017 current and voltage monitor to DIYBMS

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มิ.ย. 2024
  • Integrating the Peacefair PZEM-017 current and voltage monitoring device with DIYBMS.
    Peacefair PZEM-017 AliExpress Link (affiliate)
    s.click.aliexpress.com/e/_9jy32p
    Patreon
    / stuartp
    GITHUB Repository
    github.com/stuartpittaway/diy...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 50

  • @BenMitro
    @BenMitro 2 ปีที่แล้ว +2

    Your videos are always useful to me Stuart. Thanks mate.

  • @Crapsight
    @Crapsight 2 ปีที่แล้ว +1

    Thanks for showing an alternative. Have been struggling to source all the parts for diyShunt.

  • @wayne8113
    @wayne8113 2 ปีที่แล้ว

    Thanks Stuart

  • @butteryak
    @butteryak ปีที่แล้ว

    Does the PZEM retain energy usage statistics (KWH) after power loss? or does it reset back to 0?

    • @StuartPittaway
      @StuartPittaway  ปีที่แล้ว

      From memory, it resets to zero - but its been a long time since I used that unit.

  • @Thingamajigs
    @Thingamajigs 11 หลายเดือนก่อน

    Can you use this to monitor TWO dc circuits?
    I have one of these (with tasmota) monitoring DC solar input, but i'd also like it to monitor my DC output as well (to a cigarette lighter output) is this possible?
    I'd really hate to have to buy a second one just for DC output.

    • @StuartPittaway
      @StuartPittaway  11 หลายเดือนก่อน

      I don't think that would work without a second device

  • @evindiclekaplan4808
    @evindiclekaplan4808 ปีที่แล้ว

    I bought PZEM017 and set the all circuit as you did. But values are just reading as a zero.. What might be the problem I didnt find. Because of monitor or something else...

    • @StuartPittaway
      @StuartPittaway  ปีที่แล้ว

      Probably easier to discuss this over on the OpenEnergyMonitor Forum, or open a github issue

  • @taxxab69
    @taxxab69 2 หลายเดือนก่อน

    Hi, great video and great project.
    But can anyone explain why have you added 120ohms resistor b/w A and B?
    Does it has to do anything with current monitoring?

    • @taxxab69
      @taxxab69 2 หลายเดือนก่อน

      The issue i'm facing is i'm getting 150V from solar panels, and pzem is it reading correctly, but current isshown to be zero.

    • @StuartPittaway
      @StuartPittaway  2 หลายเดือนก่อน +1

      No, thats to do with RS485 communication - it requires a 120ohm resistor at each end of the cable to work properly.

  • @SiKincring
    @SiKincring 2 ปีที่แล้ว

    When I compare this pzem to the multimeter kyoritsu, the results was different about 10% for voltage and 80% for current (external shunt 50A type)

    • @Michl2086
      @Michl2086 2 ปีที่แล้ว

      @Stuart Pittaway could you test against your current shunt board? Would be nice :)

  • @SpecieltBrugenavn
    @SpecieltBrugenavn 2 ปีที่แล้ว +2

    Hi Stuart,
    Great work!
    Have you tried reaching out to the Peacefair company regarding the detection of current direction?
    Cheers,
    Christian

    • @StuartPittaway
      @StuartPittaway  2 ปีที่แล้ว

      No I've not spoken to them. To be fair, it's very common for energy monitoring devices not to support direction.

  • @ahmadkadafihs2652
    @ahmadkadafihs2652 ปีที่แล้ว

    Did you have any Idea how to measure internal resistance battery using this sensor?

  • @zaprodk
    @zaprodk 2 ปีที่แล้ว

    What about adding support for the Victron SmartShunt? Does what we need and you are able to purchase it.

    • @StuartPittaway
      @StuartPittaway  2 ปีที่แล้ว

      Its possible if there is a published document on what communications protocols it uses

    • @pekaway
      @pekaway 2 ปีที่แล้ว +1

      The victron shunt sends all data as a string every second on the ve.direct port (uart). This should be easy. Victron has detailed information on there homepage.

    • @StuartPittaway
      @StuartPittaway  2 ปีที่แล้ว

      @@pekaway it's easy to parse the data, but no direct serial port available on the controller to use.

    • @pekaway
      @pekaway 2 ปีที่แล้ว

      @@StuartPittaway you mean on your esp32/8266? Maybe softserial? Baudrate is not so fast 19200.

    • @zaprodk
      @zaprodk 2 ปีที่แล้ว

      @@StuartPittaway one could stick an Arduino with RS485 in-between to connect it.

  • @arhitektche
    @arhitektche 2 ปีที่แล้ว

    Very nice! Did anyone sucesfully implemented the JK rs485 active balancers that everybody is using now with Lifepo4 baterries? It could be useful to have a second way of reading the battery voltage and control the active balancer on/off etc

    • @StuartPittaway
      @StuartPittaway  2 ปีที่แล้ว

      I've not looked at the interface to those devices, is it documented some where?

  • @zaprodk
    @zaprodk 2 ปีที่แล้ว

    Very cool! - I wonder why it cannot offer Wh counting - the example software shown on the AliExpress site shows Wh numbers. Maybe it's one-way only, and thus useless?

    • @StuartPittaway
      @StuartPittaway  2 ปีที่แล้ว

      It will do w/h counting, but diybms uses amp hour, so not compatible.

    • @zaprodk
      @zaprodk 2 ปีที่แล้ว

      @@StuartPittaway Hmm, wouldn't it be possible to calculate Ah from Wh if you sample the voltage and current often enough?

    • @StuartPittaway
      @StuartPittaway  2 ปีที่แล้ว

      @@zaprodk yes, but this would be required inside the microcontroller inside the shunt, just like I've done with the official diybms current monitor.

  • @atanisoftware
    @atanisoftware 2 ปีที่แล้ว

    It looks like there may be a resistor pad inside the case for A/B termination.

    • @zaprodk
      @zaprodk 2 ปีที่แล้ว

      R19, yes :)

    • @StuartPittaway
      @StuartPittaway  2 ปีที่แล้ว

      Yes, I thought that too.

  • @muxerbaker4638
    @muxerbaker4638 9 หลายเดือนก่อน

    @StuartPittaway
    Hi Stuart.
    I've been looking at the issue of current monitoring and building up my own circuit to do the work, using easy replaceable like for like parts.
    However (bad build quality aside), an off the shelf unit like this that can be got at a reasonable price is probably the better solution. (Along with adding current monitoring to the actual board, which I believe you're adding in V4.6 anyway)
    The only issue we seem to have with this module is the current direction. A simple micro controller could put a pin high or low depending on the current direction. Or even just listen on its serial port for it to be asked for current direction and then respond with the answer.
    I know you do a lot of work behind the scenes, so just wondering on your thoughts on this before I go reinventing the wheel.
    Low cost power monitoring ICs from LCSC are available in droves and typically used for the battery/load DC current testers (which I've had experience with) and cost around $1-2 each.
    Thanks,
    J

    • @muxerbaker4638
      @muxerbaker4638 9 หลายเดือนก่อน

      Just to add to this, people have modded the PZEM-017 to work over serial. Using this logic we can piggy back on the PZEM serial to Modbus converter to allow something cheap (like an ESP-12f - don't need the WiFi, just the cheapest thing I can think of that's available everywhere) to act like another Modbus network device that returns current direction. With that in mind, a $1 micro-controller and a few resistors would solve the issue.

    • @StuartPittaway
      @StuartPittaway  9 หลายเดือนก่อน

      The ina229 chip I'm using is relatively low cost it doesn't really make sense to reinvent the wheel

    • @muxerbaker4638
      @muxerbaker4638 9 หลายเดือนก่อน

      @@StuartPittawayFair enough. I couldn't seem to get it here in Ireland or on any of the PCB sites, so gave up.

    • @StuartPittaway
      @StuartPittaway  9 หลายเดือนก่อน

      @@muxerbaker4638 you can order directly from TI, worldwide delivery. www.ti.com/product/INA229

  • @ohranitel
    @ohranitel 2 ปีที่แล้ว

    Is there any chance to make this work with old esp8266 ?

    • @StuartPittaway
      @StuartPittaway  2 ปีที่แล้ว

      Not really, that controller doesn't have RS485 interface on it, and no spare serial ports.

    • @AaronJacksonJS
      @AaronJacksonJS 2 ปีที่แล้ว

      th-cam.com/video/TbLLrlZ3deI/w-d-xo.html

    • @LarryKapp1
      @LarryKapp1 2 ปีที่แล้ว

      Yes it is very easy - flash esp8266 with Tasmota firmware . Tasmota supports the PZEM-016, 017 . I made a video on how to hook it up th-cam.com/video/TbLLrlZ3deI/w-d-xo.html

  • @chuxxsss
    @chuxxsss 2 ปีที่แล้ว

    Is there anyway to add Bluetooth to these?

    • @StuartPittaway
      @StuartPittaway  ปีที่แล้ว

      I don't think that's possible

    • @chuxxsss
      @chuxxsss ปีที่แล้ว

      @@StuartPittaway No problems Stuart, I end up getting a JKBMS, now I need to connect the RS485 to the glowatt Goodwin protocol. Wish me luck.