Dan, thanks for your answer!
I now have the AS3935 running and sending data to my database. Working on other issues, wrote about them in my post "AS3935 database issue" Planning on moving it outside because of the interference with things inside the house, Mikael Den tisdag 9 juli 2019 kl. 10:44:32 UTC+2 skrev dan Forster: > > Mikael, > > > > The two pads A0 and A1 are for setting the base address and are not > allowed to float (not documented very well so this stumped me for ages). > Your setup is exactly (all be it with a different base address) the same as > mine by the looks of things. > > > > When you stop and then restart start weewx using: - > > > > *sudo /etc/init.d/weewx stop* > > *sudo /etc/init.d/weewx start* > > > > and then issue this command quickly: - > > > > *tail -f /var/log/syslog* > > > > you should see the AS3935 load and adjust itself for noise. Bear in mind > where you are using this board, it is sensitive to noise around 500khz, > which can occur many places inside a house (bad and cheap LED lamps are > very noisy). If you can use outside in a weatherproof housing you would > experience less interference (Google about long cables from the board to > your PC, this needs to be done correctly too). > > > > Take care > > > > Dan. > > > On Monday, 8 July 2019 19:53:04 UTC+1, Mikael Fredriksson wrote: >> >> Hi! >> >> I have another issue with this setup, but that´s in another question. >> >> I saw your connections and they differ from mine quite much so I wonder >> which one is correct?! >> >> I´ve been told to connect like this: >> >> VCC -> 3,3V >> GND -> GND >> SCL -> PIN 5 >> MOSI -> PIN 3 >> SI -> 3,3V >> A0 -> 3,3V >> A1 -> 3,3V >> >> And I got respones when running demo.py >> And also in syslog weewx seeing lightning or maybe its something that >> looks like lightning. But it seems to react to something anyway. >> You can read about my database issue in my own question, and if you have >> some answer to that it would be great! >> I´m not very good at linux so there is much trail&error :) >> I hope someone can help you with your question! >> >> Den måndag 8 juli 2019 kl. 10:48:22 UTC+2 skrev dan Forster: >>> >>> Hi, >>> >>> I bought one of these from eBay - *MA5532 AS3935 2.4V to 5.5V >>> Lightning Fulmine Sensor Breakout SPI/I2C Antenna*. I have connected it >>> all up and have it working fine, confirmed by using the demo script and >>> install instructions supplied here >>> *https://github.com/pcfens/RaspberryPi-AS3935 >>> <https://github.com/pcfens/RaspberryPi-AS3935>.* I can see that a few >>> people had problems connecting the module, so I have attached a picture of >>> how I have wired to get it working perfectly (note one address line has to >>> be set to common ground and the address is 00x0 *NOT 00x3)*. >>> >>> I then followed these instructions >>> *https://github.com/weewx/weewx/wiki/as3935 >>> <https://github.com/weewx/weewx/wiki/as3935>* in order that it can be >>> used within my weewx weather station. I have managed to do everything as it >>> says on this page, including the part at the bottom of the page with >>> regards to the extra sqlite database holding the lightening detector data >>> (which I confirmed exists in the same place as the weewx db). >>> >>> >>> >>> Now I am using the Seasons skin and would like to get help on adding the >>> two new lightening detector values (lightning_strikes and avg_distance)into >>> the Seasons skin web page (at the bottom of the Current Conditions list). I >>> think the file I need to alter is /etc/weewx/skins/Seasons/current.inc. >>> >>> >>> >>> I am OK with electronics and getting better at Linux, but I am terrible >>> at HTML. Any pointers would be greatly appreciated... >>> >>> >>> >>> Dan >>> >> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/02b9a6e1-dae0-4b6e-b9b3-b64f15495af6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
