This is a derivative work based on: Jim Lindblom SparkFun Electronics date: 1/18/11 Source: & John Burns (www.john.geek.nz) & Gordon Henderson for BMP code & Folkert van Heusden for AS3935 code
A C program for interacting with the AMS Franklin Lightning Sensor. BMP085 Spark Fun Barometric Pressure Sensor. LCD 4D Sytems Visi-Genie communication
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
.
Use Make to build the binary called "Weather"
make
You have to install libgeniePi
git clone https://github.com/4dsystems/ViSi-Genie-RaspPi-Library.git
cd ViSi-Genie-RaspPi-Library/
make
sudo make install
You have to install WiringPi
git clone https://github.com/WiringPi/WiringPi.git
cd WiringPi
./build
I purchased a (v4) breakout board from Embedded Adventures.
AS3935 Pin | Raspberry Pi Pin |
---|---|
4 (GND) | 25 (Ground) |
5 (VDD) | 1 (3v3 Power) |
10 (IRQ) | 11 (GPIO 21) |
11 (I2CL) | 5 (SCL) |
13 (I2CD) | 3 (SDA) |
BMP085 Pin | Raspberry Pi Pin |
---|---|
GND | 25 (Ground) |
VDD | 1 (3v3 Power) |
SCL | 5 (SCL) |
SDA | 3 (SDA) |
LCD Pin | Raspberry Pi Pin |
---|---|
GND | 25 (Ground) |
VDD | 2 (5v Power) |
TX | 10 (UART_RXD) |
RX | 8 (UART_TXD |