Giter Site home page Giter Site logo

raspberrypi-as3935's Introduction

RaspberryPi-AS3935

Build Status

A python library and demo script for interacting with the AMS Franklin Lightning Sensor.

This script will only work if the correct kernel modules are loaded on your Pi. Adafruit has a nice tutorial set up, though depending on the breakout board that you use, you may not see anything show up when you run i2cdetect.

Installation

You can install this module by running

pip install RPi_AS3935

or you can clone this repository and run

python setup.py install

Breakout Board

The AS3935 is a small chip, and rather than trying to solder it myself I purchased a (v2) breakout board from Embedded Adventures.

Connecting the AS3935

In my test setup I connected my breakout board to the Pi as shown

AS3935 Pin Raspberry Pi Pin
4 (GND) 25 (Ground)
5 (VDD) 1 (3v3 Power)
10 (IRQ) 11 (GPIO 17)
11 (I2CL) 5 (SCL)
13 (I2CD) 3 (SDA)

Known Issues

Addressing

You may need edit line 12 of demo.py so that the correct address is read.

Breakout Board Default Address
Embedded Adventures v2 0x00
Embedded Adventures v4/v8 0x03
Tautic Electronics (untested) 0x00

RaspberryPi Model

If you have one of the newer 512MB Pi boards, then you need to adjust line 12 in the demo script to read

sensor = RPi_AS3935(address = 0x00, bus = 1)

raspberrypi-as3935's People

Contributors

doigal avatar pcfens avatar sarnold avatar wvanbreukelen avatar

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.