Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 23:07 18 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Lightning detector

     Page 1 of 2    
Author Message
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 11:15pm 02 May 2017
Copy link to clipboard 
Print this post

Has anyone here used/coded a lightning detector for the Micromite?
such as THIS module or THIS module?
They are both based on the AS3935

There is code available for the Arduino and Mikrobasic but I've no idea how to "translate" them into MMBasic
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 01:39am 03 May 2017
Copy link to clipboard 
Print this post

Lew
have you actually viewed the Mikrobasic source code? If you have then put it up on TBS as an attachment and I'll have a brief look at it.
Bob
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9082
Posted: 02:28am 03 May 2017
Copy link to clipboard 
Print this post

You could use me.
I am acutely tuned to be able to detect lightning since October 2016.....

...I just had to get that in there.

I did not know such a thing even existed. I might have to get one and have a play around. I am sure the local village that got hit might benefit from knowing if another storm was on the way.

...or not!(in that they don't want to know about it - ever again!)
Smoke makes things work. When the smoke gets out, it stops!
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 10:44am 03 May 2017
Copy link to clipboard 
Print this post

THIS is the pdf specification

This is the code for the click board Lightning detector
Both C and Pic32 versions of the code is enclosed
2017-05-03_204350_Lighting_code_Mikro.zip
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 10:59am 03 May 2017
Copy link to clipboard 
Print this post

Hi Grog & Lew,

There's another Lightning monitoring product that's very interesting.

The Blitzortung Project. Really good data, but you can't just "get one".
http://en.blitzortung.org

You have to jump in the hardware queue & wait & see what happens.

Could be a good thing to have installed in it RicTech office though.
Help improve accuracy for the region.



 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 11:15am 03 May 2017
Copy link to clipboard 
Print this post

  lew247 said  or THIS module?
They are both based on the AS3935

There is code available for the Arduino and Mikrobasic but I've no idea how to "translate" them into MMBasic


Hmm,

Had a quick look at the code, but it's out of my skill set.
I'd need to better understand SPI or I2C first.

But looks like an interesting device.

Anyone interested in playing with it?

If I can get a few commitments to trying it out, I might grab one & put it on a MM that members can log into externally for a play.

Any takers?

Phil.
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 11:15am 03 May 2017
Copy link to clipboard 
Print this post

  lew247 said   THIS is the pdf specification

This is the code for the click board Lightning detector
Both C and Pic32 versions of the code is enclosed
2017-05-03_204350_Lighting_code_Mikro.zip


Thanks Lew, but that's why I asked if you had actually read it. I found those files also but they are ZIPped RAR archives and I can't unpack a RAR archive and, at the moment, I don't wish to install 7-Zip or similar to unpack it.
Bob
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 11:33am 03 May 2017
Copy link to clipboard 
Print this post

I've already unzipped the rar files
its in winzip format
If you want them unzipped let me know and I can do it
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 11:40am 03 May 2017
Copy link to clipboard 
Print this post

@BobD
I've extracted them all into text files and sent it as a message rather than posting here

 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 11:55am 03 May 2017
Copy link to clipboard 
Print this post

  lew247 said   @BobD
I've extracted them all into text files and sent it as a message rather than posting here

Sorry Lew
I was in too much of a hurry earlier. I didn't actually look at the files. My bad.

I have just had a quick look at the Mikro Basic file and I'll get back to it later.
Bob
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 712
Posted: 07:12pm 03 May 2017
Copy link to clipboard 
Print this post

Lots of professional German "Gewitterwarner" Projects.
Most with microcontrollers.
Google Translate will help.

Lightning Detector
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5923
Posted: 07:45pm 03 May 2017
Copy link to clipboard 
Print this post

I have seen a circuit that was nothing more than an AM radio with a very wide front end.
I forget where I came across it but here is a link to something similar:

http://www.techlib.com/electronics/lightning.html

A micromite would have no problems counting the pulses.

I was going to use something similar to monitor my electric fence (which would play havoc with the lightning detector.

The really clever ones have very precise timing and by having a number of receiving stations at suitable distances apart, you can calculate the location of the lightning strikes.

Jim
VK7JH
MMedit   MMBasic Help
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 815
Posted: 09:33pm 03 May 2017
Copy link to clipboard 
Print this post

Hi Lew,

I have this module from ELV - which works with the AS3935 very fine! Unfortunately it has no SPI or IIC interface but it can be "programmed" with switches and you have outputs for "warning", "flash" and for "all-clear"...

I have more informations for this module if needed...

Frank
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 10:15pm 03 May 2017
Copy link to clipboard 
Print this post

nice little module
The reason I liked the ones I posted first is it should be easy enough to include them in a weather station project
they not only let you know if there is lightning but they also tell you how far away it is
so it would look good on a nice display
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 06:03pm 04 May 2017
Copy link to clipboard 
Print this post

Sorry Lewis but it is too complicated for me to translate the Mikrobasic to MMBasic.
Bob
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5923
Posted: 07:27pm 04 May 2017
Copy link to clipboard 
Print this post

Lew,
I had a look at the data sheets for your module and it looks very interesting.
Most of the Mikrobasic code is to do with the display side of things. It also uses SPI where I would choose I2C. The actual setting up the chip and reading results should be simple enough. Where have I heard that before?

It will be interesting to see how good it is at estimating distance.

I will probably get one to play with but I am heading north for winter (or at least a few weeks of winter) so it will be a couple of months before I even ordered one.

In the meantime, I have two dogs that crawl up my legs well before I can detect any lightning approaching. The forecast is for some lightning here tomorrow.

Jim
VK7JH
MMedit   MMBasic Help
 
akashh
Senior Member

Joined: 19/01/2014
Location: India
Posts: 115
Posted: 03:25pm 05 May 2017
Copy link to clipboard 
Print this post

I got a sample kit from Austrian Microsystems the other day, and it is pretty neat. I haven't had much time to play with it yet though unfortunately. I think getting the right inductor is very critical, and there seem to be a lot of calibration options.

Akash
 
Justplayin

Guru

Joined: 31/01/2014
Location: United States
Posts: 313
Posted: 08:20am 06 May 2017
Copy link to clipboard 
Print this post

This AS3935 breakout board from playingwithfusion.com comes fully calibrated and on request they will provide you a copy the calibration data for your board. It's not cheap, but they have taken care of the hardest part of configuration for you.

--Curtis
I am not a Mad Scientist...  It makes me happy inventing new ways to take over the world!!
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 08:39am 06 May 2017
Copy link to clipboard 
Print this post

THIS one aready has the calibration data done so it's simple to use
[quote]The AS3935 needs callibration upon startup - and for this you need to check that certain internal clock are running at the right frequency. Sounds tricky, right? Yeah. So we've made that super easy be pre-calibrating each MOD-1016 in the factory, so you can simply load the configuration into the appropriate registers and start listening for approaching storms.[/quote]Edited by lew247 2017-05-07
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1676
Posted: 08:41am 06 May 2017
Copy link to clipboard 
Print this post

IF anyone can code it - I'll even buy if for them if they want and get it sent direct*

Here's some info that might help if anyone is considering the moduleEdited by lew247 2017-05-08
 
     Page 1 of 2    
Print this page
© JAQ Software 2024