First you need to install the Moteino core (includes Moteino, MoteinoMEGA & MightyHat definitions). This is easy with the new Board Manager added in Arduino 1.6.4+. Add the Moteino core json definition URL to your Board Manager. Then in Board Manager click install and Moteino, MoteinoMEGA and MightyHat will show up under the Tools>Boards menu.
There is now a programming guide for Moteinos which helps you get started with libraries and programming in Arduino IDE, please check it out if you are new to Arduino. Quick steps to programming in the Arduino IDE:
- First, you need to download and install the necessary libraries in your Arduino/libraries folder: RFM69 library, SPIFlash library
- For RFM95/96 LoRa radios please see the LoRa page
- Get started with RFM69 example sketches: Sender and Receiver
- To upload a sketch, select Arduino Uno in the Tools>Boards menu in the Arduino IDE, and the serial port emulated by your FTDI or USB-serial adapter in Tools>Serial Port
The FTDI header has silkscreen markings for the GND and DTR pins to help you align your FTDI Adapter (black and green wires respectively on the FTDI cable). Usually the PCB based FTDI adapters also have the same markings on their end (see the FTDI Adapter).
The Moteino can be used like any Arduino, but for wireless communications you will need a library for the onboard RFM69 transceiver. You can use the official RFM69 library for RFM69 Moteinos, it has a suite of examples to get you started. The simplest way is to start with the Node and Gateway examples. For RFM95/96 LoRa radios please see this page for details. Copy the library folder in your Arduino Libraries folder. See this tutorial on Arduino libraries if you’re not sure how to install an Arduino library.