Giter Site home page Giter Site logo

arduino-rfm22's Introduction

I purchased several RFM22 modules (http://www.hoperf.com/rf_fsk/rfm22.htm) from sparkfun, with the intention of attaching it to my Arduino, and building inexpensive devices able to speak to each other over the air. This turned out to be somewhat more difficult than I had imagined, but once I solved the basic hardware issues, I put this library together to make it easier to interact with the radio from code.

THe library does some basic SPI setup to talk to the device, and provides some low level commands to get and set the values of various registers on the device. Assuming the Arduino has one of its interrupt lines connected to the device, setting and clearing interrupts that can be set is also exposed from a few simple methods. Additionally, there is an init command which goes through and sets the various values required for basic wireless operation for the 434MHz models.

This project serves as a way to learn hardware development in addition to C++ and the various details of wireless communication, so there are likely many easy improvements which can be made. For example, instead of
radio.write(0x10,0b10011000);
it would be nice if I could get to the point where one could say something to the effect of
radio[0x10] = 0b10011000;
I know this to be possible, but it is yet out of my reach. I soon also hope to provide methods that can be called for burst reads/writes for use in the FIFO buffers, as well as possibly simple messaging protocols that make use of these low level commands.

arduino-rfm22's People

Contributors

niloc132 avatar

Watchers

 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.