First LoRaWAN message

I now finally got the first LoRa message send from my node through my gateway and visible at The Things Network.

My node device is the Adafruit Feather 32u4. It allows software switching between 915 and 868 MHz. The pinout of the Adafruit Feather M0 version is different and more common in the TTN forum discussions.

However, here is a summary of my config.

Arduino source is the tnn-abp (Activation-by-personalisation) created by Matthijs Kooijman (credits :-).

Add this:
#define CFG_eu868 1

Change this:
const lmic_inmap lmic_pins = {
.nss = 8,
.rst = 4,
.dio = {7, 6, LMIC_UNUSED_PIN},

and of cource you have to update network and application session keys and the end-device address based on the application created at the TTN console.

And a wire like this:


Pool – uppdatering

En av få dagar med både is och snö denna vinter

En av få dagar med både is och snö denna vinter

Nu har det varit ett lång uppehåll på denna blog. Jag hoppas på att kunna fylla på med allt som hänt det senaste året. Och som syns av bilden här så är både pool och nya altanen nu så gott som färdig.


ToF sensor test

This is a test of the VL-6180X with a range of 0-100 mm.

Here I have it mounted on an Arduino Uno board.

Aruino – VL
5V – VIN
Gnd – Gnd
A5 – SCL
A4 – SDA

Time of flight sensor connected to an Arduino Uno

Time of flight sensor connected to an Arduino Uno



Funky 3

This is a hobby project by Martin Harizanov. A small Arduiono with usb and radio module.
This is v3 of my “Funky” Arduino clone, specifically designed to be small, with on-board radio module and for low power applications.


  • Board size is 20×21.2mm (0.78″x0.83″)
  • Weighs 3 grams (0.11 oz)
  • Compatible with Arduino IDE
  • ATMega32U4 MCU, the same as processor used in the popular Arduino Leonardo
  • No need for external programmer to upload new sketch – just use micro USB cable
  • Equipped with 433/868 wireless RFM12B or RFM69CW transceiver module
  • Runs on 8 Mhz and can be powered from 2.7-3.3V power source, including coin cell battery
  • Low power operating mode

He also has a gateway board for the Raspberry to use as gateway to talk to wireless nodes such as the Funky and emonTXJeeNode, etc

Node red

IBM is very active in both open source as well as in IoT. Here is a very nice tool for anyone into integration of any sorts of data flow.

I have it installed on one of my Raspberry Pi’s and it allow me to visually create integration mixing hardware and software.

Head of to if you have yet see this.

Screen Shot 2016-01-03 at 21.16.50

Update, 25 Jan 2016: Node Red is included in the Jessie build for Raspberry pi. After struggling to get the GPIO to work with my old build, I decided to start from scratch. It was worth it. Node red is now only a menu option away, works like a sharm.
Extra benefit: The new GUI in Jessie (if you don’t decide for the slim down version) is very nice.

One example of what I included as my first experiment:

I have motion running with a camera overlooking my garden and street. As soon motion is detected it sends an event to a MQTT broker I’m running on another Pi. Then I have a node flow that subscribes to that topic and makes a http against my Sonos system to play a short notification indicating ‘car is arriving’. The Sonos api is based on node (min version 4) by jishi.