Category Archives: IoT

First LoRaWAN message

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

lora-msg
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,
.rxtx = LMIC_UNUSED_PIN,
.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:

lora-wire

Funky 3

funky-bottom
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.

Highlights

  • 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 http://nodered.org 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.

PCB design

Screen Shot 2016-01-03 at 21.11.47

Fritzing is a useful PCB design editor and on their site (http://fritzing.org) you can as well find a lot designs shared by others.
I haven’t yet tried the Fritzing fab, to turn you design into a real pcb, but will put it on my wish list.

Ubidots cloud IoT logging from Raspberry pi

Ubidots offer a free service for up to 5 measurement values.

My setup is Nexa temperatur and humidity sensors that report to a Tellstick connected to Raspberry. Here is the setup:

sudo apt-get install python-setuptools
$ sudo easy_install pip
$ sudo pip install ubidots

Using the api to post data in is only a few lines:

from ubidots import ApiClient
import random

#Create an "API" object

api = ApiClient("4785d3be6f45a6102xxxxxx75efb16a6f9b9c")

#Create a "Variable" object

test_variable = api.get_variable("56294a1xxxxxxx27c3c69d")

test_value = random.randint(1,100)

test_variable.save_value({'value':test_value})

Here is my outside temperatur chart based on a logging once per hour: