MySensors with NodeJS Controller and OTA bootloader on RPi

My RPi runs Arduino to compile and flash sketches and the bootloader. With this setup no separate PC/Mac is needed. Exactly the same could be achieved (faster) using a PC/Mac for all the Arduino compilation and flashing activities – just skip the steps and execute on PC/Mac instead.

Hardware

Headless Raspberry Pi model B with wired Ethernet

I'm connecting a monitor only for first time boot to get the IP address and then connect via Putty/xRDP

Download and install latest Raspbian version on a fresh SD-Card

Tutorials for this task are available on the internet (download, copy to SD)

Setup base parameters

(adjust to your needs - here: RPi-IP: 10.0.1.5 / Router-IP: 10.0.1.1 / password: test / timezone: Europe,Berlin / hostname: mysensors)

Install latest updates

Install NodeJS (here: latest stable version available for RPi: 0.10.28)

Install MongoDB

Install MySensors from Git branch development (here: password: test)

Start NodeJsController on boot

Serial Gateway

Hardware

Disable default use of RPi serial port

Setup NodeJsController

Ethernet Gateway

Hardware

Setup NodeJsController

Sensor Node Bootloader

Hardware

Compile Bootloader (can be skipped but good to see if everything is working)

Flash Bootloader

End-to-End Test

Add Firmware to Controller

Flash Firmware OTA

Check functionality