<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.marcelpost.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Moteino-setup</id>
	<title>Moteino-setup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.marcelpost.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Moteino-setup"/>
	<link rel="alternate" type="text/html" href="https://www.marcelpost.com/wiki/index.php?title=Moteino-setup&amp;action=history"/>
	<updated>2026-07-13T04:19:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://www.marcelpost.com/wiki/index.php?title=Moteino-setup&amp;diff=2245&amp;oldid=prev</id>
		<title>Admin at 11:38, 27 June 2016</title>
		<link rel="alternate" type="text/html" href="https://www.marcelpost.com/wiki/index.php?title=Moteino-setup&amp;diff=2245&amp;oldid=prev"/>
		<updated>2016-06-27T11:38:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Starting to use some Moteinos always left me a bit searching for a clear and simple guide on how to set up the boards.txt and libraries in the Arduino IDE.&lt;br /&gt;
&lt;br /&gt;
We distinguish two specific features of the Arduino IDE:&lt;br /&gt;
&lt;br /&gt;
&amp;gt; use custom boards (Moteino, Anarduino, etc..)&lt;br /&gt;
&lt;br /&gt;
- Having a way to easily select a custom board will allow you to program these boards without having to worry about which microcontroller is on the board or how they are wired.&lt;br /&gt;
&lt;br /&gt;
- In order to program a sketch to a custom board you select the corresponding board in the Arduino IDE menu at: Tools - Boards -&lt;br /&gt;
&lt;br /&gt;
- custom boards need to be added to the &amp;#039;hardware&amp;#039; folder (either in the user&amp;#039;s sketchbook&amp;#039;s or arduino&amp;#039;s program&amp;#039;s &amp;#039;hardware&amp;#039; folder)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;gt; use custom libraries (Dallas, LCD, etc..)&lt;br /&gt;
&lt;br /&gt;
- To add sensors or functions to your sketch you can load specific libraries. These will have the proper protocols coded in and work seamlessly with Arduino code. Libraries usually don&amp;#039;t care on which board they run.&lt;br /&gt;
&lt;br /&gt;
- In order to make use of a custom library you reference to them in your code with the &amp;#039;#include&amp;#039; statement&lt;br /&gt;
&lt;br /&gt;
- custom libraries need to be added to the &amp;#039;libraries&amp;#039; folder (either in the user&amp;#039;s sketchbook&amp;#039;s or arduino&amp;#039;s program&amp;#039;s &amp;#039;libraries&amp;#039; folder)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To add support for Moteino in the Arduino IDE we need to add both &amp;#039;hardware&amp;#039; and &amp;#039;libraries&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
* the &amp;#039;hardware&amp;#039; (Moteino Core files) will add the Moteino and Moteino MEGA boards to the list of selectable boards&lt;br /&gt;
&lt;br /&gt;
* the &amp;#039;libaries&amp;#039; (RFM69 and SPIFlash) will allow the sketches to communicate with the HopeRF Radio Module (and optional EEPROM module for OTA programming)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are two ways to add the &amp;#039;hardware&amp;#039; to Arduino. &lt;br /&gt;
&lt;br /&gt;
* copy files manually into the Arduino hardware folder&lt;br /&gt;
&lt;br /&gt;
* with the new Arduino Board Manager (available in version 1.6.x and up)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Manual Method (boards and libraries)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1 - Install the Moteino Core files into the Arduino installation folder===&lt;br /&gt;
&lt;br /&gt;
* download and unzip the core file:&lt;br /&gt;
&lt;br /&gt;
Moteino Core: [[File:Moteino 1.0.6.zip]] (local copy)&lt;br /&gt;
&lt;br /&gt;
Github source: https://github.com/LowPowerLab/Moteino/tree/master/MEGA/Core&lt;br /&gt;
&lt;br /&gt;
Enter the unzipped &amp;#039;Moteino&amp;#039; directory and:&lt;br /&gt;
&lt;br /&gt;
* rename the &amp;#039;avr&amp;#039; directory to &amp;#039;moteino&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* move the newly named &amp;#039;moteino&amp;#039; directory into ~/sketchbook/hardware/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 2 - Install the RFM69, LowPower and SPIFlash libraries===&lt;br /&gt;
&lt;br /&gt;
* download and unzip these three files:&lt;br /&gt;
&lt;br /&gt;
RFM69: [[File:RFM69-master.zip]] (local copy)&lt;br /&gt;
&lt;br /&gt;
Github source: https://github.com/LowPowerLab/RFM69&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
LowPower: [[File:LowPower-master.zip]] (local copy)&lt;br /&gt;
&lt;br /&gt;
Github source: https://github.com/LowPowerLab/LowPower&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
SPIFlash: [[File:SPIFlash-master.zip]] (local copy)&lt;br /&gt;
&lt;br /&gt;
Github source: https://github.com/LowPowerLab/SPIFlash&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* after unzipping, rename the RFM69-master folder to just &amp;#039;RFM69&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* do the same with the unzipped LowPower-master and SPIFlash-master folders&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 3 - check for proper workings===&lt;br /&gt;
&lt;br /&gt;
Start up the Arduino IDE and confirm that:&lt;br /&gt;
&lt;br /&gt;
* the Moteino and Moteino MEGA boards can be selected from the list of boards&lt;br /&gt;
&lt;br /&gt;
* in the Libraries menu you can see the RFM69, Low-Power and SPIFlash libraries&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Easy Method (boards only)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Step 1 - Install the Moteino Core files into the Arduino installation folder===&lt;br /&gt;
&lt;br /&gt;
There&amp;#039;s actually only one step to this..&lt;br /&gt;
&lt;br /&gt;
* Open the Arduino IDE and from the menu select File - Preferences&lt;br /&gt;
&lt;br /&gt;
* copy and paste this path for a new Board Manager URL: https://lowpowerlab.github.io/MoteinoCore/package_LowPowerLab_index.json&lt;br /&gt;
&lt;br /&gt;
* Click OK and in the menu now go to: Tools - Board - Board Manager&lt;br /&gt;
&lt;br /&gt;
* wait until the download has completed and from the list select the &amp;#039;Moteino&amp;#039; entry and click &amp;#039;Install&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* once the installation has completed you can now select the Moteino boards from the boards menu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s it!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One more thing for actually using the Moteinos:&lt;br /&gt;
&lt;br /&gt;
The RFM69 library is suitable for both the 20mW RFM69(C)W and the 100mW RFM69H(C)W modules (The &amp;#039;C&amp;#039; only indicates Compatibility with the older RFM12B footprint, functionality wise they are the same). &lt;br /&gt;
&lt;br /&gt;
If you have the higher-powered 100mW version (RFM69HCW or RFM69HW) make sure to include the IS_RFM69HW define in your code: &lt;br /&gt;
&lt;br /&gt;
  #define IS_RFM69HW    //uncomment only for RFM69HW! Remove/comment if you have RFM69W!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The Moteino demo code also clearly indicates this.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>