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
  1. Home
  2. My Project
  3. Energy pulse meter + outside temperature

Energy pulse meter + outside temperature

Scheduled Pinned Locked Moved My Project
tempenergy pulse me
13 Posts 8 Posters 11.4k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mbj
    wrote on last edited by
    #1

    This is a prototype for an energy pulse meter type sensor plus a Dallas temp sensor. Works after some problems with the radio communication so it is time to do a "real installation". A nano and radio is in the bigger white box, the DS18b20 in the small box and the pulse sensor is hooked up to the meter. The boxes and the IR sensor holder are made with a 3D printer.Energy.jpg

    RJ_MakeR 1 Reply Last reply
    5
    • M mbj

      This is a prototype for an energy pulse meter type sensor plus a Dallas temp sensor. Works after some problems with the radio communication so it is time to do a "real installation". A nano and radio is in the bigger white box, the DS18b20 in the small box and the pulse sensor is hooked up to the meter. The boxes and the IR sensor holder are made with a 3D printer.Energy.jpg

      RJ_MakeR Offline
      RJ_MakeR Offline
      RJ_Make
      Hero Member
      wrote on last edited by
      #2

      @mbj nice... I really need to look into getting a 3D printer. ..

      RJ_Make

      1 Reply Last reply
      0
      • T Offline
        T Offline
        therik
        wrote on last edited by therik
        #3

        Nice work. What printer do you have? I 'invested' in the MOD-t from NewMatter, an Indiegogo campaign product. I have a Makerbot at work that I 'practice' with. My father uses a service at his local library that will do 3D prints for him; check around your local area.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbj
          wrote on last edited by mbj
          #4

          The printer is "home made". Based on the Ord Bot Hadron mechanical parts and the rest are pieces from here and there. Very nice to have to make parts like this. (the sensor box and the IR sensor holder)Em2.JPG Em1.JPG

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mbj
            wrote on last edited by
            #5

            By the way - here is a typical output from Openhab where data comes in via the mqtt-gateway to a RPi controller with Razberry z-wave board. (the house is electrically heated so heaters go on and off together with all other electrical equipment so curves look a bit rough, upper curve is Kwh and the lower is W ).Em3.JPG

            1 Reply Last reply
            0
            • T Offline
              T Offline
              twosh
              wrote on last edited by
              #6

              @mbj Would you mind sharing your sketch? :) Right now I'm using two separate arduinos for measuring energy and temperature (hot/cold side) on my heat pump. Would be nice to combine this into one arduino, one sketch.

              Cheers,
              Tim

              1 Reply Last reply
              0
              • R Offline
                R Offline
                ron7136
                wrote on last edited by
                #7

                I'm looking for code to read the IR pulses from my hydro meter.

                1 Reply Last reply
                0
                • ANZ14778A Offline
                  ANZ14778A Offline
                  ANZ14778
                  wrote on last edited by
                  #8

                  Please post your sketch. Thank you.

                  1 Reply Last reply
                  0
                  • sundberg84S Offline
                    sundberg84S Offline
                    sundberg84
                    Hardware Contributor
                    wrote on last edited by
                    #9

                    Hi @ANZ14778!

                    To start you can look here: http://www.mysensors.org/build/pulse_power

                    Controller: Proxmox VM - Home Assistant
                    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                    1 Reply Last reply
                    0
                    • NickBuilderN Offline
                      NickBuilderN Offline
                      NickBuilder
                      wrote on last edited by
                      #10

                      Hi!

                      Would it be possible to use both of the interrupts for two LED sensors or will the interrupts then collide and effect the precision? Of course it would be better if I could use S0-outputs and then perhaps the 12-channel meter described here but in this case I only have the blinking LEDs available.

                      If multiple interrupts are ok, would it then also be ok to go for even more interrupts, 5 or 6 interrupt pins are available for the Mega if I'm not mistaken. Whats the limit? I guess it depends on the clock frequency and the number of tasks in the loop()?!

                      Thanks!

                      M 1 Reply Last reply
                      0
                      • NickBuilderN NickBuilder

                        Hi!

                        Would it be possible to use both of the interrupts for two LED sensors or will the interrupts then collide and effect the precision? Of course it would be better if I could use S0-outputs and then perhaps the 12-channel meter described here but in this case I only have the blinking LEDs available.

                        If multiple interrupts are ok, would it then also be ok to go for even more interrupts, 5 or 6 interrupt pins are available for the Mega if I'm not mistaken. Whats the limit? I guess it depends on the clock frequency and the number of tasks in the loop()?!

                        Thanks!

                        M Offline
                        M Offline
                        mbj
                        wrote on last edited by
                        #11

                        @NickBuilder
                        I made this one so long ago that I do not remember the program well but (from a bad memory as well :-) ) I think that the interrupt is there for the sleep mode only which is optional and meant for a battery powered sensor.
                        Mine is on USB power all the time so I do not use the sleep mode at all and besides I want to follow the watt numbers which will not be available during a sleep mode operation.

                        In principle there should be no problem using two interrupts but the program need a rewrite for that setup of course. Also it might be questionable if using sleep mode together with two power sensor leds will save anything at all (often they blink 1000 times per kW consumed).

                        1 Reply Last reply
                        0
                        • NickBuilderN Offline
                          NickBuilderN Offline
                          NickBuilder
                          wrote on last edited by
                          #12

                          I assumed you were using the example mentioned by sundberg84 and in that code it's clear that the interruption is used to increment the pulse count.

                          If you use a different approach I would very much like to take part of your code. Are you still monitoring your energy and power this way?

                          Thanks!

                          M 1 Reply Last reply
                          0
                          • NickBuilderN NickBuilder

                            I assumed you were using the example mentioned by sundberg84 and in that code it's clear that the interruption is used to increment the pulse count.

                            If you use a different approach I would very much like to take part of your code. Are you still monitoring your energy and power this way?

                            Thanks!

                            M Offline
                            M Offline
                            mbj
                            wrote on last edited by
                            #13

                            @NickBuilder
                            I now have looked at the code and (of course) you are right, the interrupt is used for the pulse count which I think is the best way of programming this function.

                            My sensor is based on an old version of this code but modified for use with Openhab (which does not give any start value back, this function has to be own programmed). Another modification is that same unit monitors a number of temperature sensors.

                            The "thing" has been in operation since my first post above and works well but I guess I should make an effort to modernize the code. Maybe a task for the long and dull autumn/winter days here.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            19

                            Online

                            11.7k

                            Users

                            11.2k

                            Topics

                            113.1k

                            Posts


                            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                            • Login

                            • Don't have an account? Register

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