Jump to: navigation, search

Difference between revisions of "Mihini/EclipseCon2013 Tutorial"

(Schematics)
Line 43: Line 43:
 
=== Installation of Lua Development Tools (all-in-one bundle)  ===
 
=== Installation of Lua Development Tools (all-in-one bundle)  ===
  
==== M3DA Server  ====
+
Home of Koneki Lua Development Tools:
 +
http://eclipse.org/koneki/ldt/
  
tcp://m2m.eclipse.org:44900
+
Default version of Koneki doesn't come with Remote Target Management feature (that enables, for this tutorial, to connect to RaspberryPi system, send your application to it etc)
 +
To create the all-in-one bundle that was provided during the tutorial, you have to:
 +
TBD
  
Run you own instance:
 
Everything you need is there (How to build, to run, interact with):
 
https://github.com/SierraWireless/m3da-server
 
 
<br>
 
 
=== End user android application  ===
 
  
 
=== Running Mihini on RaspberryPi  ===
 
=== Running Mihini on RaspberryPi  ===
Line 65: Line 61:
 
Available instructions [[Mihini/Run Mihini on an Open Hardware platform|here]]  
 
Available instructions [[Mihini/Run Mihini on an Open Hardware platform|here]]  
  
*Copy (git clone?) the sources of Mihini on the Raspberry Pi
+
<br>
  
{{Note|TODO|Provide a copy of the git repo on the USB stick???}}
+
=== Setting up the Arduino  ===
  
*Compile Mihini (and its Lua VM)
+
Arduino code used for the tutorial is --&gt;  
*Brief presentation of the defaultconfig&nbsp;; tweak the few settings that will simplify development
+
 
 +
https://github.com/kartben/mihini-greenhouse-demo/tree/master/SimpleModbusSlaveExample
  
 
<br>  
 
<br>  
  
=== Setting up the Arduino  ===
 
  
Exact Demo arduino code is in --&gt;
 
  
  instalation of the Modbus stack --&gt; https://github.com/kartben/mihini-greenhouse-demo/tree/master/SimpleModbusSlaveExample
+
=== M3DA Server ===
 +
 
 +
tcp://m2m.eclipse.org:44900
 +
 
 +
Run you own instance:
 +
Everything you need is there (How to build, to run, interact with):
 +
https://github.com/SierraWireless/m3da-server
  
 
<br>  
 
<br>  
 +
 +
=== End user android application  ===
  
 
== Hardware  ==
 
== Hardware  ==

Revision as of 16:19, 27 March 2013

Tutorial

This tutorial "Develop a complete M2M application with Koneki and Mihini" occurred at EclipseCon 2013 on 2013-03-25.

Tutorial material is hosted at https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial

How to get it:

  • git clone
git clone https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial.git
  • download zip file:
https://github.com/SierraWireless/eclipsecon2013-m2m-tutorial/archive/master.zip

Once you've got the repo locally, you can browse tutorial material:

Especially:

  • slides: at the root of the repo
    index.html 
  • Code Solution:
    lab/mihini-tutorial-step3/

(That's an Koneki project, so can import it directly in your IDE)


Goals

Show Mihini

  • show key APIs such as logging, sched, airvantage, devicetree, (sms?)...
  • show how it's easy to do I/O manipulation and wireless communication

Koneki for Mihini

  • show how Lua is easy to edit thanks to LDT tooling
  • show EE and remote development for Mihini

FUN!!!!!!

Key steps to reproduce the tutorial

Installation of Lua Development Tools (all-in-one bundle)

Home of Koneki Lua Development Tools: http://eclipse.org/koneki/ldt/

Default version of Koneki doesn't come with Remote Target Management feature (that enables, for this tutorial, to connect to RaspberryPi system, send your application to it etc) To create the all-in-one bundle that was provided during the tutorial, you have to: TBD


Running Mihini on RaspberryPi

Get SDcard image used during the tutorial

TBD?

Compile and run Mihini manually

Available instructions here


Setting up the Arduino

Arduino code used for the tutorial is --> 
https://github.com/kartben/mihini-greenhouse-demo/tree/master/SimpleModbusSlaveExample



M3DA Server

tcp://m2m.eclipse.org:44900

Run you own instance: Everything you need is there (How to build, to run, interact with): https://github.com/SierraWireless/m3da-server


End user android application

Hardware

The main hardware will be a Raspberry Pi (running Mihini) connected to an Arduino ; the Arduino itself being connected to several sensors/actuators.

Bill of materials

Item Qty
Raspberry Pi 1x
Arduino Uno 1x
Grove kit or equivalent 1x
Micro USB cable 1x
4GB SD card 1x
USB 1A power supply 1x
USB A-B cable 1x
Wifi dongle (Netgear WNA1000M-100FRS)* 1x
Breadboard 1x
Temperature Sensor 1x
Luminosity Sensor 1x
LED 1x
Resistor Ohm 1x
Resistor Ohm 1x


You can ordering (almost) everything from Adafruit:

Schematics

Mihini EclipseCon2013 Arduino Schematics bb.png