Coder Social home page Coder Social logo

biffobear / circuitpython_as3935 Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 5.0 356 KB

A CircuitPython driver library for the Franklin AS3935 lightning detector. The driver supports connections via SPI and I2C.

License: MIT License

Python 100.00%
as3935 circuitpython circuitpython-library franklin-as3935 lightning lightning-detector

circuitpython_as3935's People

Contributors

biffobear avatar gamblor21 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

circuitpython_as3935's Issues

Having problems with false lightning stikes

Hi,
Can any one tell me how to set up the driver to reduce false possitives, unfortuntaly my knowledge of python3 is a little limited, I would be greatful for any help.

Michael

Code doesn't work with latest Circuit Python

I've found some bugs in the latest release. It seems that the code in the repo differs from what the latest release has... and if I'm reading this correctly it doesn't seem to be for 8.X version of Circuit Python. It has some very basic errors trying to use the constants (since they're declared in one class and being referenced from a self.XX where self is a different class)

So, I'm wondering if this has been tested recently (with the latest CircuitPython) and if you could point me towards which version of the .py files I should be working from.

I've tried 2 different boards, checked the wiring multiple times on each, and always get this stack trace:

Traceback (most recent call last):
File "code.py", line 21, in
File "/lib/biffobear_as3935.py", line 548, in init
File "/lib/biffobear_as3935.py", line 135, in init
File "/lib/biffobear_as3935.py", line 488, in _startup_checks
File "/lib/biffobear_as3935.py", line 456, in calibrate_clocks
File "/lib/biffobear_as3935.py", line 443, in _check_clock_calibration
OSError: Problem communicating with the sensor. Check your wiring.

I'm just using the basic example. My Interrupt Pin is D21 and CS is D20.
I also noted that there are two different SPI start functions I could use, either one in board or one in busio.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.