Giter Club home page Giter Club logo

avr-rfm12's Introduction

RFM12 on ATmega328P

A wireless sensor network using the RFM12 transceiver

An AVR implementation in progress.

Configuration

  • ATmega328P running at 16MHz (Arduino Nano + Duemilanove)

  • SPI configured in mode 0 (CPOL=0, CPHA=0) with prescaler 16 (SPR1=0, SPR0=1, SPI2X=0), resulting in 1MHz SPI speed. According to the data sheet, SPI rate during FIFO access must be smaller than 2.5MHz with the default 10MHz oscillator in place:

    Note: During FIFO access fSCK cannot be higher than fref /4, where f ref is the crystal oscillator frequency.

    A substantially lower SPI rate (i.e. lower than transmit frequency) results in buffer underruns on the transmitter side (RGUR in Status Register), obviously.

The wires.

Wiring is basically as follows, although I eventually decided to invest in one of JeeLabs' RFM12B breakout boards.

Breadboard

... and something visual.

From an early demo, leaving the power amplifier enabled for a second before and after transmission.

SDR Capture

Later, the 47th transmission of HOLYCOW prefixed by magic pattern 0x01020304 (payload size 8).

HTerm snapshot of a successful transmission

avr-rfm12's People

Contributors

sunsided avatar

Stargazers

 avatar  avatar  avatar

Watchers

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