- 1 Tutorial
- 1.1 Goals
- 1.2 Key steps
- 1.3 Hardware
EclipseCon 2013 Tutorial plan.
- 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
Installation of Lua Development Tools
Download Lua Development Tools product (or get it from an USB stick provided to the participants), install the Remote Lua Development feature.
- Write a first simple Lua application ("Hello World").
- Get familiar with the notion of Execution Environment, learn how to use Lua.
- Launch the application using the embedded JNLua VM
- Learn how to use the debugger
Installation of Mihini
Participants will compile and install Mihini on the Raspberry Pi based on the instructions available here
Compile Mihini source code
- Copy (git clone?) the sources of Mihini on the Raspberry Pi
- Compile Mihini (and its Lua VM)
- Brief presentation of the defaultconfig ; tweak the few settings that will simplify development
First Mihini launch
- Start Mihini on the target
- Open a telnet connection on port 2000 to play with the agent's shell
- a = 1
Hello World REMOTE
- Configure a new Remote System corresponding to the Raspberry Pi inside LDT
- Launch the previously written Hello World using a remote launch conf
- Do a remote debug
Setting up the Arduino
- First step will be to setup the arduino with a blinking LED
- Next is the instalation of the Modbus stack --> https://github.com/kartben/mihini-greenhouse-demo/tree/master/SimpleModbusSlaveExample
Log hello on the module.
Upload first data on internet using MQTT and AirVantage
Show how to install an application using mihini (and airVantage)
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||Total Cost (USD)|
|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|
- this might not be the best option for the US market (sounds look it is way more expensive than in Europe?)
Ordering everything from Adafruit would be:
- Raspberry Pi: https://www.adafruit.com/products/998 - 39.95USD
- Starter pack for Arduino: https://www.adafruit.com/products/68 - 65.00USD
- Sensors (the ones provided in the budget pack)
- SD card: https://www.adafruit.com/products/102 - 7.95USD
- Power supply: https://www.adafruit.com/products/501 - 5.95USD
- USB A-Micro: https://www.adafruit.com/products/592 - 3.95USD
- USB A-B (the one provided in the budget pack)
- WiFi dongle: https://www.adafruit.com/products/814 - 11.95USD
- TOTAL: 135USD