Git Product home page Git Product logo

moteino-rfm69pi's Introduction

Moteino USB as RFM69Pi

Open Energy Monitor sensors use HopeRF RFM69CW radios to send data to emonHub, where it is processed, stored, and visualized with emonCMS. (https://openenergymonitor.org/)

The RFM69Pi hat is the gateway that receives the radio packets and writes them via serial to emonHub. The device is comprised of an ATmega328 with RFM69CW radio. Technical documentation and firmware for RFM69Pi can be found here. https://docs.openenergymonitor.org/emonbase/rfm69-pi.html

Moteinos from Low Power Lab (lowpowerlab.com) are also ATmega328 devices and they support several different HopeRF transceivers, including the RFM69CW. They have all the necessary parts to act as an RFM69Pi, and can communicate via serial USB to emonHub.

JeeLib Classic and LowPowerLab Radio Libraries

New Open Energy Monitor devices such as the emonTx v4 use a radio library developed by Felix Ruso at Low Power Lab. Older devices use the JeeLib library from JeeLabs. The RFM69Pi has firmware for each radio library, but is only compatible with one or the other at any given time. Moteinos can also run both versions of the firmware. Using an RFM69Pi and Moteino USB (or two Moteino USBs) it is possible to listen to both kinds of radio packets at once. Moteino USB RFM69Pi

Similarly, new emonBases are shipped with the RFM69SPI hat, which occupies the GPIO instead of the serial-based RFM69Pi. Add a Moteino USB and the emonBase can listen to JeeLib packets as well. Moteino USB RFM69Pi JeeLib

Flashing Moteino USB with RFM69Pi Firmware

In this repository are the current versions of both the LowPowerLab and JeeLib firmware. The .hex files have been compiled to work with the Moteino USB and have the bootloader included for ongoing serial programming, and .ino files can be flashed to the Moteino USB with Arduino IDE.

RFM69Pi firmware is released by Open Energy Monitor as compiled binaries (.hex) and also as source code compatible with Arduino IDE (.ino). The compiled binaries are not compatible with Moteino USB because the two devices use diffent oscillators (8mhz internal in the case of RFM69Pi, 16mhz external for Moteino USB). So the easiest way to flash the Moteino USB is to use Arduino IDE and upload the sketch as you would to an Arduino Uno. Or you can use the compiled binaries in this repository, which are compatible with Moteino USB.

The OEM repositories are here: https://github.com/openenergymonitor/RFM2Pi/tree/master/firmware/RFM69CW_RF_Demo_ATmega328 https://github.com/openenergymonitor/emonBase_rfm69pi_LPL

Notes

It works well to use a USB A Male to Micro Male adapter to connect the Moteino to the emonBase or emonPi.

After upload, use the Serial Monitor (or other method) to set the node number of the transciever. This sketch listens to serial input for commands. For example, send 14i to set the node to 14.

Add the following entry to the [interfacers] list in emonHub configuration. emonCMS > Setup > emonHub > Edit Config > add the text below > save.

[[MoteinoUSB]] Type = Type = EmonHubJeeInterfacer [[[init_settings]]] com_port = /dev/ttyUSB0 com_baud = 38400 [[[runtimesettings]]] pubchannels = ToEmonCMS, subchannels = ToRFM12,

moteino-rfm69pi's People

Contributors

brandock avatar

Watchers

 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.