Coder Social home page Coder Social logo

moheshmohan / si470x-rds_logger Goto Github PK

View Code? Open in Web Editor NEW

This project forked from granttrebbin/si470x-rds_logger

0.0 0.0 0.0 344 KB

RDS message logger using a silicon labs si470x chip connected to a raspberry pi

Python 88.46% Shell 11.54%

si470x-rds_logger's Introduction

si470x-RDS_Logger

RDS message logger using a silicon labs si470x FM radio receiver connected to a raspberry pi model B

Scripts to allow a raspberry pi model B to control an si470x FM Reciever and log received RDS messages. The main purpose of this project is to log the songs a local radio station plays.

I swear the station plays a handful of songs over and over again - I just want to prove it

si470xOriginal.py

This is the original code from the Raspberry Pi forum by KansasCoder https://www.raspberrypi.org/forums/viewtopic.php?t=28920

si470x.py

This is an altered version of si470xOriginal.py that continually polls the si470x board and logs the data to a file. The log file is rotated every hour. Use at your own risk. It was quickly put together from other people's work. There is no exception handling. There may be an issue with low signal strength that causes non ASCII characters to be received and crash the program. The script has been tested with 40 hours of continuous operation and no problems arose. The logging code is from Stephen Phillips http://blog.scphillips.com/2013/07/getting-a-python-script-to-run-in-the-background-as-a-service-on-boot/

si470x.sh

This is the script for /etc/init.d that allows the script to auto-run on startup as a service. This is once again from Stephen Phillips http://blog.scphillips.com/2013/07/getting-a-python-script-to-run-in-the-background-as-a-service-on-boot/

si470xDropBox.sh

This script uploads the rotated log files to dropbox for backup. The plan was to run it as a cron job, but manual operation served the purpose. DropBox-Uploader by Andrea Fabrizi needs to be installed first https://github.com/andreafabrizi/Dropbox-Uploader

Connecting the Raspberry Pi to the si470x Breakout Board

The breakout board is conencted to the raspberry pi via an I2C connection. The reset line also needs to be connected to Pin 16 - GPIO 23 as shown in the image below.

Connecting the si470x breakout board to a model B Raspberry Pi

si470x-rds_logger's People

Contributors

granttrebbin 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.