Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
Bert BroekB

Bert Broek

@Bert Broek
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Pulse Sensor for electricity sketch question
    Bert BroekB Bert Broek

    I think the result is a floating point number but the divider isn't. I'm going to rewrite the formula so it matches my old sketch which was working correctly.

    Development

  • Pulse Sensor for electricity sketch question
    Bert BroekB Bert Broek

    Hi,
    i have a question about the example sketch Power meter Pulse sensor.
    I hav it all working now but the KWH total count is off.
    I have figured out that my meter has a pulse count of 187,5 blinks/kwh.
    so i changed the value of #define PULSE_FACTOR 1000 to 187.5.

    but it seems the arduino is rounding this number to 187, so my total kwh will be off.
    i think it is because of a float/int messup.
    how can i correct this?

    i was thinking of counting every pulse twice and then set the pulsefactor at 375.
    Maybe there is a other easy way around??

    Kind regards,
    Bert.

    Development
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular