How to Use Sonoff POW ESP8266 WiFi Power Switch with MQTT and ThingSpeak

ITEAD Studio’s Sonoff is a family of cheap home automation products based on ESP8266 WiSoC, and I’ve already tested Sonoff TH16 wireless switch with a humidity and temperature sensor using the stock firmware and eWelink app for Android or iOS. It works, but up to recently it required a registration to a cloud service (the company will now allow use from the local network), and the source code is closed. So for the second device under review, namely Sonoff POW wireless switch with a power consumption monitor, I decided to install ESPurna firmware working on ESP8266 Sonoff devices and NodeMCU, as it’s open source, supports Sonoff POW natively, includes a web interface to control the device from the LAN, and includes an MQTT client. MQTT (Message Queuing Telemetry Transport) is a lightweight publish/subscribe messaging protocol used to control IoT sensors and devices, and it’s a popular method to gather data from client to a MQTT broker to push the data …

Support CNX Software – Donate via PayPal or become a Patron on Patreon

How to Install ThingSpeak in Ubuntu 16.04

Last week-end I installed ESPurna open source firmware with MQTT server on Sonoff POW WiFi switch, and the next step is find a way to draw power consumption charts in some web based interface. We could do this in the IoT cloud with services like Xively or ThingSpeak, but since one of the goals of replacing the default firmware was not to rely on a proprietary cloud based solution, I decided to find a way to draw those chart in a local server, and it so happens that ThingSpeak is also open source with the code available on Github. Hardware platforms like NanoPi NEO / NEO Air, or Orange Pi Zero boards appear to be particularly well suited for the task of running an MQTT broker and Thingspeak, but at first I wanted to install ThingSpeak in my own Ubuntu 16.04 computer to have a try. As you can see from the screenshot above I manage to do it, but …

Support CNX Software – Donate via PayPal or become a Patron on Patreon

How to Build and Flash ESPurna Open Source Firmware to Sonoff POW Wireless Switch

ITEAD Studio Sonoff family is comprised of various inexpensive ESP8266 WiFi power switch, and the company sent me two of their latest CE certified models with Sonoff TH16 + external temperature & humidity probe, and Sonoff POW to measure power consumption. I checked the hardware is the first part of the review, and used Sonoff TH16 to control a water pump with the stock firmware and Ewelink Android app in the second part. It works reasonably well, but it relies on the cloud, so if you lose your Internet connection or the service closed, you can’t control the relay manually anymore. Luckily, the UART pins are exposed on Sonoff switches so you can solder a 4-pin header and connect a USB to TTL to flash your own firmware. Please don’t connect Sonoff devices to the mains when programming them, it’s very dangerous, instead the USB to TTL board will power the system, and will allow you to program the board …

Support CNX Software – Donate via PayPal or become a Patron on Patreon

The Eclipse Foundation Releases Open Source Smart Home & IoT Gateway Frameworks, MQTT & oneM2M Implementations

The Eclipse Internet of Things (IoT) Working Group has released – or soon will be releasing – four open source projects for the Internet of Things with Eclipse SmartHome 0.8 framework, Eclipse Kura 2.0 IoT gateway framework, Eclipse Paho 1.2 MQTT & MQTT-SN clients, and Eclipse OM2M 1.0 implementation of oneM2M standard. Eclipse SmartHome 0.8 Eclipse SmartHome is a framework for smart home solutions that runs on embedded devices, including Raspberry Pi, BeagleBone Black or Intel Edison development boards. The latest SmartHome 0.8 release includes a new REST API and corresponding “Paper UI” administration interface, support for new devices including Sonos speakers, LIFX bulbs, Belkin WeMo devices, digitalSTROM systems, EnOcean devices (via a new OSGi EnOcean Base Driver) and others, as well as a new rule engine supporting templates for beginners, JavaScript for automation rules and graphical rule editors. You can find more details on Eclipse SmartHome page, and/or download SmartHome 0.8, and optionally SmartHome Designer for Linux, Mac OS X, or …

Support CNX Software – Donate via PayPal or become a Patron on Patreon

Electrodragon WiFi IoT Relay Includes ESP8266 Module, AC Power, and Enclosure for $6

Thanks to ESP8266, the cost of WiFi relays has dramatically come down, but so far, I could not find an all-in-one solution with ESP8266, relay, AC power and enclosure, and for example I’m still using NodeMCU board, a relay board, a USB power supply, and put all that into a plastic jar in order to control a water pump. It works but it’s not ideal, and solutions like Wemos D1 mini with relay shield improves things further, but Electrodragon has come with a connect-and-play WiFi IoT relay that integrates everything including the case for $6 + shipping. Wifi IoT Relay Board Based on ESP8266: WiFi module – ESP-12F based on Espressif ESP8266EX WiSoC Relays – 2x Songle SRD-05VDC-SL-C relays supporting 125VAC/10A, 250VAC/10A, 30VDC/10A, 28VDC/10A Input/Output – 3x terminal blocks for relay and power Expansion – 12-pin header with Rx/Tx,  GPIO4, Btn2, GPIO15, 5V/GND,  ADC, GPIO5, Btn1, OUTPUT1, and 3V3 Debugging – Serial pins accessible on header for programming the board …

Support CNX Software – Donate via PayPal or become a Patron on Patreon

Axiomtek ICO310 Din-rail Industrial IoT Gateway Supports Power over Ethernet (PoE)

Axiomtek ICO310 is a din-rail IIoT (Industrial IoT) embedded platform powered by Intel Celeron Braswell processors supporting up to 8GB RAM, PoE, and featuring two Gigabit LAN ports, RS-232/422/485 ports, USB 2.0 & USB 3.0 ports, one VGA port, and one DIO interface. It also support mSATA and SATA drives, and wireless module via mPCIe interfaces. Target applications include smart energy, smart factory automation, facility monitoring systems and more. Axiomtek ICO310 Specifications: SoC Intel Celeron N3060 dual core processor @ 1.6GHz / 2.48 GHz (Turbo) with Intel HD graphics 400 with 12EU @ 320/600 MHz OR Intel Celeron N3160 quad core processor @ 1.6GHz / 2.24 GHz (Turbo) with Intel HD graphics 400 with 12EU @ 320/640 MHz System Memory – 204-pin SO-DIMM DDR3L-1600 socket up to 8 GB Storage – 1 x mSATA,  1x SATA SSD (or HDD) Video Output – VGA Connectivity 2x 10/100/1000Mbps Ethernet, including 1x PoE PD compliant with 802.3at standard (LAN 1) 2x full size mini …

Support CNX Software – Donate via PayPal or become a Patron on Patreon

Embedded Linux Conference 2016 and OpenIoT Summit 2016 Schedule

The Embedded Linux Conference 2016 and the OpenIoT summit 2016 will take place on April 4 – 6, 2016 in San Diego, California, and over 800 attended will meet including kernel & system developers, userspace developers, and product vendors. The Linux Foundation has recently published the schedule, so I’ve had a look at some of the talks, and designed my own virtual schedule to find out more the current development focus although I won’t attend. Monday April 4 10:40am – 11:30am – Linux Connectivity for IoT by Marcel Holtmann, Intel OTC There are many connectivity solutions that available for IoT. For example Bluetooth Low Energy, 802.15.4, Zigbee, OIC, Thread and others. This presentation will provide and overview of the existing technology and upcoming standard and how they tie into the Linux kernel and its ecosystem. 11:40 – 12:30 – BoF: kernelci.org: A Million Kernel Boots and Counting by Kevin Hilman, BayLibre The kernelci.org project is currently over 1500 kernel boot …

Support CNX Software – Donate via PayPal or become a Patron on Patreon

Vigek IOT Core is a Tiny STM32 WiFi Board with a Camera Interface, GPIOs, PWM, and Analog Inputs

Vigek IOT Core packs an STM32 MCU, a Realtek WiFi module, and 8-bit camera interface into a 3.6×3.75 cm board. It also provides GPIO, PWM, and analog input to interface with external hardware such as sensors, and the project had a modest, yet successful, Kickstarter campaign in the summer. Vigek IOT Core specifications: MCU – STMicro STM32F103 ARM Cortex-M3 micro-controller @ up to 72MHz Connectivity – 802.11b/g/n WiFi @ 54Mbps I/Os Up to 8 GPIOs, configurable as up to 4 analog inputs, and up to 6 PWM outputs I/O voltage tolerance – 0~3.6V I/O output current – Up to 8mA Camera – 8-bit camera interface, optional 2.0MP camera with OV2640 sensor Power supply – 3.3V ~ 24V Power Consumption – 32mA in active mode (WIFI connected, camera not working) Dimensions – 36mm x 37.5mm While Vigtek IOT Core can be used without programming, simply using an Android app to control the camera, and I/Os, the company also provide an APP SDK, …

Support CNX Software – Donate via PayPal or become a Patron on Patreon