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. General Discussion
  3. Lightning Detection

Lightning Detection

Scheduled Pinned Locked Moved General Discussion
8 Posts 4 Posters 1.8k Views 3 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.
  • skywatchS Offline
    skywatchS Offline
    skywatch
    wrote on last edited by
    #1

    Hi,

    I have a lightning detector with analog and digital outputs. I would like to use the analog to see the amplitude of energy to help determine distance to strike.

    Question is, what would be the best sensor 'type' to choose for this? I would like it to be shown as a graph in MyController with 0-100%, but not with humidity symbols. There is a generic digital type, but no generic analog type (maybe an idea?)....

    Thanks for any suggestions :)

    mfalkviddM Boots33B 2 Replies Last reply
    0
    • skywatchS skywatch

      Hi,

      I have a lightning detector with analog and digital outputs. I would like to use the analog to see the amplitude of energy to help determine distance to strike.

      Question is, what would be the best sensor 'type' to choose for this? I would like it to be shown as a graph in MyController with 0-100%, but not with humidity symbols. There is a generic digital type, but no generic analog type (maybe an idea?)....

      Thanks for any suggestions :)

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @skywatch https://forum.mysensors.org/topic/880/sketch-for-lightning-sensor/ might have some useful information

      1 Reply Last reply
      0
      • skywatchS Offline
        skywatchS Offline
        skywatch
        wrote on last edited by
        #3

        Thanks, That is a different sensor to the one I have (mine has simply digital and analog outputs). Still, I will have a read through it, I can already see that V-VAR1 is in use, never seen that before.....still learning!!! :)

        1 Reply Last reply
        1
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          What are the values you are getting from the sensor's library.?

          1 Reply Last reply
          0
          • skywatchS Offline
            skywatchS Offline
            skywatch
            wrote on last edited by
            #5

            There is no 'library' for the board as it is only digital out and analog out, so simply read the corresponding pin and you are done. So far I have only tested with the digital pin and that works with a small piezo spark.
            Next will be to try the analog and graph the results (which should be 0-1023) from the analog pin. This I will then convert to % and see if it is possible to get an estimation of distance from that (but varying magnitude lightning discharges might mean that it won't be that reliable).

            1 Reply Last reply
            0
            • skywatchS skywatch

              Hi,

              I have a lightning detector with analog and digital outputs. I would like to use the analog to see the amplitude of energy to help determine distance to strike.

              Question is, what would be the best sensor 'type' to choose for this? I would like it to be shown as a graph in MyController with 0-100%, but not with humidity symbols. There is a generic digital type, but no generic analog type (maybe an idea?)....

              Thanks for any suggestions :)

              Boots33B Offline
              Boots33B Offline
              Boots33
              Hero Member
              wrote on last edited by
              #6

              @skywatch said in Lightning Detection:

              Hi,

              I have a lightning detector with analog and digital outputs. I would like to use the analog to see the amplitude of energy to help determine distance to strike.

              Question is, what would be the best sensor 'type' to choose for this? I would like it to be shown as a graph in MyController with 0-100%, but not with humidity symbols. There is a generic digital type, but no generic analog type (maybe an idea?)....

              Thanks for any suggestions :)

              In Domoticz S_DUST, V_LEVEL are a good combination to use for generic sensors. You can easily use this for percentage etc. and it will give you a graph as well.

              To use S_DUST was first mentioned by @pjr in This Post

              I have used it in my Water Tank Sensor to show both litres and percentage and in my Lightning Sensor to show distance and intensity.
              It may work in other controllers as well, I guess it will depend on how it is implemented in the plugin.

              1 Reply Last reply
              1
              • skywatchS Offline
                skywatchS Offline
                skywatch
                wrote on last edited by
                #7

                @Boots33

                Thanks for the tip :)

                I guess the mycontroller will have similar functions, I'll try it out soon.

                1 Reply Last reply
                0
                • skywatchS Offline
                  skywatchS Offline
                  skywatch
                  wrote on last edited by
                  #8

                  I tried it with a simple digital binary sketch and it worked as far as the display goes. I could get a graph so I could know at what time the lighting strikes were. Trouble is, no lightning to test it fully with :(

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


                  13

                  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