Building an ESP32 Pulse Meter for ESPHome

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 24

  • @SiBex_ovh
    @SiBex_ovh Год назад +2

    Nice! ESP32 can track to 8 channels that way. Please consider doing a way to work and cache counting when wifi is offline - or please update me if this is not problem at all. I sill do similar projest but with S0+ from energy meter.

    • @artemkalinchuk
      @artemkalinchuk  Год назад +1

      What happens now if the wifi is offline? I wonder if caching is something that can be configured with the pulse_counter plugin.

  • @tino2828
    @tino2828 5 месяцев назад

    Thank you for the video. Could you please provide the pinout for X1 connector?

    • @artemkalinchuk
      @artemkalinchuk  5 месяцев назад

      The X1 connector can be used to read up to 4 meters. There is no specific pinout for it as long as one wire of the meter goes to GND and another goes to one of the X1 pins (which are then routed to ESP32 pins 12, 14, 27 & 26).

    • @tino2828
      @tino2828 5 месяцев назад

      @@artemkalinchuk Thank you.

  • @justdoingodswork
    @justdoingodswork 4 месяца назад

    Hey, I have been trying to read Pulse on ESP32 from 4 meters but due to electromagnetic interference, pulse on 1 GPIO pins causes Pulse Counter on others as well.

    • @artemkalinchuk
      @artemkalinchuk  4 месяца назад

      Have you tried using shielded wire for the meters?

    • @justdoingodswork
      @justdoingodswork 4 месяца назад

      @@artemkalinchuk Yes I'm using CAT6. Since its a reed switch it, get multiple high-low when there is a pulse from meter. I have tried to stop that with counter and debounce, but unable to stop the reading on other GPIO pins. I'm using GPIO pins 35, 25, 26, 27 for Pulse reading. Could it be because of wrong GPIO pins?

    • @artemkalinchuk
      @artemkalinchuk  4 месяца назад

      @@justdoingodswork Try using the pins that I was using in the video and see if that helps.

  • @tomaszscislowski9040
    @tomaszscislowski9040 11 месяцев назад

    I am getting the following error when trying to run this code " Pin 26 is used in multiple places". Any ideas?

    • @artemkalinchuk
      @artemkalinchuk  11 месяцев назад

      Hmm, not sure. What if you feed the meter into two separate pins and use those pins in your configuration?

    • @tomaszscislowski9040
      @tomaszscislowski9040 11 месяцев назад +1

      @@artemkalinchuk was thinking the same thing! Thanks for the tutorial

    • @megaveejay
      @megaveejay 2 месяца назад

      use the setting "Allow other uses": - see example below.
      pin:
      number: GPIO26
      mode: INPUT_PULLUP
      allow_other_uses: true

  • @Dead_Aim556
    @Dead_Aim556 6 месяцев назад

    Ever thought of selling one of these boards to the public? I am Interested in one

    • @artemkalinchuk
      @artemkalinchuk  6 месяцев назад

      I have not thought of building an actual PCB because of it's simplicity but I might consider it if there is enough demand for it. How much are you willing to pay for an unstuffed board? Trying to gauge the viability of the proposal.

    • @Dead_Aim556
      @Dead_Aim556 6 месяцев назад

      @@artemkalinchuk well let’s start at the base your time and effort are worth something obviously but the cost of goods are somewhat fixed. What would it cost you in materials? Say from pcb way or something. This way you wouldn’t have to solder stuff yourself

    • @artemkalinchuk
      @artemkalinchuk  6 месяцев назад

      @@Dead_Aim556I think I could get it fabricated for under $10 a piece (plus shipping). Have you considered making a Gerber file for it yourself?

    • @Dead_Aim556
      @Dead_Aim556 6 месяцев назад

      @@artemkalinchuk I always like to give credit where credit is due due! I know 0 about board design but have some ideas on how you could market this. I think if you could keep the overall cost low you could make some good $

    • @artemkalinchuk
      @artemkalinchuk  6 месяцев назад

      ⁠I think this would be a good project to start learning about PCB design since it’s fairly simple. Check out KiCAD.

  • @SiBex_ovh
    @SiBex_ovh Год назад

    Wemos D1 Mini who works on ESP8266 have a conflict when we use both PulseCounter + PulseMeter on the same PIN.
    PulseCounter not see impulses and I ignore it. We choose PC or PM and I select a Pulse_Meter who work OK.
    In your code you have the same value but you can discover that PulseMeter see strange additional digits after dot.

    • @artemkalinchuk
      @artemkalinchuk  Год назад

      I'm not very familiar with Wemos D1 Mini. Maybe it's just an issue with that specific device. Is there a reason why you're using it instead of ESP32? Have you tried a different pin just in case the pin you're using is having interference?

    • @SiBex_ovh
      @SiBex_ovh Год назад

      @@artemkalinchuk It's small and be easy mount into 1module in electric box, it have modification know as LoLin who can be on battery easy... and I have 10 both of them :).

    • @artemkalinchuk
      @artemkalinchuk  Год назад

      @@SiBex_ovh That makes sense. I have never used it but I'll be checking it out for sure.