Announcement

Collapse
No announcement yet.

Lightning Detection for Homeseer

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Just finished setting up the AS3935 breakout board with an Arduino Uno.
    It's chugging away.
    Now, since this will end up located nowhere near a USB port on the HS machine, I just need to figure out the Serial shield (which came without documentation).

    Perhaps another day.
    Real courage is not securing your Wi-Fi network.

    Comment


      Good news Greg!!

      I purchased the AS3935 breakout board that you recommended and connected it for time bean to original Homeseer RPi Zee and testing with some python scripts.

      Did you solder pins or just wires on to the breakout board to connect to your Ardunio?
      - Pete

      Auto mator
      Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
      Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
      HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

      HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
      HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

      X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

      Comment


        Originally posted by Pete View Post
        Did you solder pins or just wires on to the breakout board to connect to your Ardunio?
        Wires for now while I'm testing.

        Figured out the RS232 shield. And have data transfer over that interface to the computer.
        Now to connect to HS via a remote serial port (Quatech) and have some real fun.

        I used the PWF sample sketch in the Arduino with some modification for now. I found it a bit verbose for my needs. All that's really necessary is strike detection information.
        Real courage is not securing your Wi-Fi network.

        Comment


          Good news Greg!!

          Is the serial data delimited text?

          Noticed there are three values to tune the device.

          Thinking it is the capacitor value for frequency, inside and outside sensitivity and a floor value.

          The sketch shows the values as follows:

          Welcome to the MOD-1016 (AS3935) Lightning Sensor test sketch! Thinking this is from Sparkman's sketch?

          Code:
          TUNE	IN/OUT	NOISEFLOOR
          6	10010	5
          Python demo script shows:

          sensor.set_indoors(False)
          sensor.set_noise_floor(2)
          # sensor.calibrate(tun_cap=0x0D)
          sensor.calibrate(tun_cap=0x0F)

          I am having difficulties understanding what works the best (macro wise with the python scripts).

          One user said to leave it configured for outdoors for best sensitivity.

          Another user is mentioning to adjust it once you have it where it will remain (indoors or outdoors).

          So here have the capacitor value set, outdoor use and playing now with the noise floor.
          Last edited by Pete; July 11, 2017, 07:37 AM.
          - Pete

          Auto mator
          Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
          Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
          HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

          HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
          HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

          X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

          Comment


            If by delimited you mean does it include CR/LF, then yes, but that would be determined by whatever script/sketch you use.

            The capacitor value will be printed on the bag the board came in; in my case 112pf. Set for Indoors as that's where the device will ultimately be located, although I'm not convinced that will make much difference unless you have aluminum siding on the house, or it's not located near an outside wall, or near something with a motor. Haven't touched the Floor value yet; I'll decide later. That will probably set the ultimate sensitivity as in ignoring weak or very distant strikes.

            Connected now to HS machine & reading the data via Hyperterm. Just have to do a bit of programming to read the serial port into HS.

            Originally posted by Pete View Post
            Good news Greg!!

            Is the serial data delimited text?

            Noticed there are three values to tune the device.

            Thinking it is the capacitor value for frequency, inside and outside sensitivity and a floor value.

            I am having difficulties understanding what works the best (macro wise with the python scripts).
            Real courage is not securing your Wi-Fi network.

            Comment


              Thank you.

              Yes here still playing with an RPi/lightning sensor next to a window.

              Outside it is brick except for the window.

              Reading too that an earth ground makes it less sensitive.

              The old Hobby Boards dual counter Lightning sensor doesn't work without a ground.

              I attached the EMP sensor (well now three) such that it is powered by a 3VDC lithium battery. We had some storms here yesterday with much lightning.
              I went to just watching and hearing the sounder on the board.
              - Pete

              Auto mator
              Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
              Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
              HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

              HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
              HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

              X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

              Comment


                Unrelated to lightning question:

                What is the difference between these two tires?

                1 - 235/50ZR18 101W
                2 - 235/40ZR18 92W

                Can I use both on one SUV?

                Which one's would you recommend for the front tires?

                1 - 101 W
                2 - 92 W

                I see a big difference here and wondering rather to stagger the tires.

                Tire Size Comparison - staggered big on back tires.

                Specification Sidewall Radius Diameter Circumference Revs/Mile Difference
                235/50-18 4.6in 13.6in 27.3in 85.6in 740 0.0%
                255/45-18 4.5in 13.5in 27.0in 84.9in 746 -0.8%

                Specification Sidewall Radius Diameter Circumference Revs/Mile Difference
                235/40-18 3.7in 12.7in 25.4in 79.8in 794 0.0%
                235/50-18 4.6in 13.6in 27.3in 85.6in 740 7.3%

                Answering my own question the SUV has the options of:

                1 - 235/50-18 on all 4 tires
                2 - 255/45-18 on all 4 tires
                3 - staggering the 235's in front to the 255's in back.

                Probably just wait on getting the 235/50-18's for all four tires.
                Last edited by Pete; July 11, 2017, 10:17 AM.
                - Pete

                Auto mator
                Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                Comment


                  Lightning Detection for Homeseer

                  There is significant weight difference and depending on your SUV, I would verify the weight rating required.

                  The 101 and the 92 represents the weight rating. See https://m.tirerack.com/tires/tiretec....jsp?techid=35

                  The other considerations is the lower the profile, the potentially harder the ride and less shock can be absorbed by the tires. Therefore, this is either absorbed by the suspension or transferred to the vehicle and as a consequence felt more by the passengers. The additional risk depends on rims and lower profile, hard bumps and edge can result in more stress on the rims and potentially cracks etc.

                  The BMW X5 were running similar to option 3.. 21 in but 102w.
                  Last edited by brientim; July 15, 2017, 07:39 AM.

                  Comment


                    Thank you Tim.

                    Yes this is for a BMW X3. I am allowed two sizes from reading the documentation.

                    IE:

                    235/50-18 101W and 255/45-18 92W (if I recall)

                    All four can be one or the other size or I can stagger the sizes front and back.

                    The issue was / is that I originally was going to stagger the tires now decided to go to 4 235/50ZR18 101W tires.

                    Been using the Miata Tire Size calculator here:

                    Tiresize calculator

                    Tire Size Comparison

                    Specification Sidewall Radius Diameter Circumference Revs/Mile Difference
                    235/50-18 4.6in 13.6in 27.3in 85.6in 740 0.0%
                    255/45-18 4.5in 13.5in 27.0in 84.9in 746 -0.8%



                    Thing is that I purchased two of the 235/50ZR18 tires about a month ago and cannot find another pair. I can't find the 255/45-18 tires either now.

                    This was my mistake for waiting as they were available about two weeks ago.

                    I created this issue.

                    I will just be waiting now here for availability of the tires as the vehicle is not be used right now here in the summer. (winter vehicle).
                    Last edited by Pete; July 15, 2017, 08:20 AM.
                    - Pete

                    Auto mator
                    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                    Comment


                      Finally, some results with the AS3935 (still set up in breadboard mode until I get the box I've ordered for permanent installation outside, solar powered).

                      I was away at the time, in the middle of the actual storm, 20 miles from home. The chip recorded several strikes here, the last one at a reported distance of 5km (~2 miles). No evidence that it rained here at all, but where I was we were drenched.

                      During the same period, the EMP sensor only detected one strike.
                      Real courage is not securing your Wi-Fi network.

                      Comment


                        Good news Greg!!!

                        Here moved the AS3935/RPi next to the HB dual counter in the attic.

                        Not getting much in the attic with the AS3935. The HB boards counter is working fine there in the attic.

                        The AS3935 worked best facing a window in the kitchen (which was low on the WAF).

                        Today moved it to office window - well and IRQ wire fell off and resoldered it.

                        I read that the antenna on the AS3935 is very directional.

                        Thinking of doing similar to you using solar power.

                        Found a small 5VDC power supply to charge cell phones and was going to see about trickle charging the small battery pack with a solar cell.

                        First test will probably be just putting everything outside in a large plastic bag.

                        Looked on All Electronics and see a few there.

                        The two new EMP sensors and old EMP sensor are not showing any activity in the house whether connected to an RPi or a battery.

                        All said it appears that both of these sensors work best on batteries with no earth ground.

                        I believe you set up an Arduino with the AS3935 on your breadboard; eh?
                        Last edited by Pete; July 21, 2017, 06:50 PM.
                        - Pete

                        Auto mator
                        Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                        Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                        HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                        HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                        HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                        X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                        Comment


                          Been following this thread with great interest, and have even ordered the EMP sensor. However, I've also just received the Acurite 02020 portable lightning detector. It seems to work great actually, so it got me thinking it might be possible to hack this unit and connect it to a Fibaro door sensor? It blinks and beeps every time a lightning is detected, so should possible for someone more capable with electronics than myself

                          Link to Amazon: https://www.amazon.com/gp/product/B0...?ie=UTF8&psc=1

                          Comment


                            Yes here looked at the AcuRite 06045M for the same reasons.

                            Working well right now using the old Hobby Boards 1-wire lightning sensor redone and connected to an RPi2 / ZNet / 9097 1-wire configuration. The Lightning antenna is omnidirectional and mounted in the attic (it used to be on the roof). It is very sensitive to lightning and will go from zero to 10,000 lightning strikes in a matter of minutes...

                            The AS3935 is connected to an RPi running a python script which outputs a generic text output file on the main mothership. The AS3935 is mounted on a window here as it seems very directional.

                            Here switched my Davis weather station to using Cumulus a long time ago. Now redoing all of the weather stuff to using WeeWx. WeeWx via the Meteostick. Adding to that will be more wireless sensors plus 1-wire sensors.
                            Last edited by Pete; August 4, 2017, 04:04 PM.
                            - Pete

                            Auto mator
                            Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                            Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                            HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                            HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                            HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                            X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                            Comment


                              Patiently waiting for the "dart-1" to go on sale. So DrFlash, how's the testing coming along on those?

                              P.S. Lying about the "patiently" thing.

                              Comment


                                Is this still the best to buy to integrate lightning detection into HS

                                https://www.ebay.com/itm/EMP-sensor-...4AAOSwpONZTINm

                                Or is there something else out there that everyone is using

                                TIA
                                Cheers,
                                Bob
                                Web site | Help Desk | Feature Requests | Message Board

                                Comment

                                Working...
                                X