Sock IoT with this Azure Connected System-on-a-chip Project

While creating a temperature and humidity IoT project is the IoT “Hello World,” Marcel Meurer has put in a cool twist, connecting it to Azure and even PowerBI!

Build your own IoT device with ESP8266 system-on-a-chip, Azure Event Hub, Stream Analytics and Azure Storage

IoT is a big buzz word. I wanted to make it more tangible for me. So, I decided to build a small WiFi based sensor to monitor temperature and humidity, and to send these data to Azure. For my scenario at home I need less than 12 sensors, but the solution scales up to hundreds – even thousands – of sensors. That’s why I used Azure Event Hub and Stream Analytics.

The sensor ESP8266-01 – WiFi SoC

I want to build a very small sensor that can connect to my WiFi and execute a short program, as well. The System-on-a-Chip ESP8266-01 is ideal for this purpose. Its PCB Version 01 is flat and has a small form factor, less than 25mm x 15mm. The chip itself works with WiFi (including TCP/IP) and can be flashed with one’s own programs. It’s also brings two I/O ports (GPIO) to connect to – for example, a temperature/humidity sensor. In my case it’s a DHT22 – a digital temperature and humidity sensor. The ESP and the sensor together cost less than $7.

image

Prepare the Arduino IDE to program the chip

Now we can access the chip and send programs to it with the Arduino IDE. These programs are saved permanently and executed on start up. Open the Arduino IDE and include the board definition for ESP8266 chips: File -> Preferences -> Additional Boards Manager URLs and add http://arduino.esp8266.com/stable/package_esp8266com_index.json.

Building Event Hub and Stream Analytics services for IoT data

If it works as expected, we can now build our Azure services to collect data sent from our IoT device – after this we must extend our sketch to send data to the Event Hub.

To receive data from sensors/IoT devices I use an Event Hub and a Stream Analytics service in Azure. I don’t use an IoT Hub because I only want to have a one-way transmission to the cloud and don’t need to control my sensor(s).

Generate a long-lasting authorization code for the sensors

The sketch we built before must now be extended to send the data to Azure. But first we need an Authorization code to communicate with the REST API. We can create this code based on the saved connection string from the shared access policy “messages.”

Extend the sketch to send data to the Event Hub

To send data to the Event Hub we must extend our sketch (see below). For this, we need some variables to configure the Azure connection:

And after a few minutes in the running Stream Analytics job you will see:

image

If you connect it to PowerBI, you can have these charts:

image

… [Click through for all the details, steps, tips and tricks]

Follow @CH9
Follow @coding4fun
Follow @gduncan411

Continue reading Sock IoT with this Azure Connected System-on-a-chip Project

TWC9: Building Build Badges, NASA Space Apps Challenge, Visual Lexicon of LINQ and more | This Week On Channel 9

This week on Channel 9, Nikola and guest host Jeff Burtoft discuss the week’s top developer news, including;[01:30] Jeff Burtoft[02:11] Vote for the Windows Developer Awards, At Microsoft Build 2017: First-ever Windows Developers Awards[03:21] Microsof… Continue reading TWC9: Building Build Badges, NASA Space Apps Challenge, Visual Lexicon of LINQ and more | This Week On Channel 9

Don Schenck – Red Hat | On .NET

This week, Don Schenck from Red Hat is on the show to talk about .NET on RHEL.

To get .NET Core: https://dot.net

For Red Hat Enterprise Linux-specific .NET Core: https://access.redhat.com/documentation/en-us/net_core/1.1/html/getting_started_guide/

To get the Red Hat Development Suite, including a no-cost copy of RHEL, Docker, Kubernetes and OpenShift: https://developers.redhat.com/downloads/

To get the book “Transitioning to .NET Core on Linux”: https://developers.redhat.com/promotions/dot-net-core/

Installing Red Hat Development Suite: https://www.youtube.com/watch?v=VR-diXSowEM

Installing .NET Core SDK on RHEL: https://www.youtube.com/watch?v=aWC2yg_kI1k

Continue reading Don Schenck – Red Hat | On .NET

Surface Dial, Microsoft Edge Updates, and more! | This Week On Windows

This week we’re showing off the Surface Dial and the things you can do with it! We’ve got tips to help you organize your browsing life with Microsoft Edge and we’re getting down with Fifty Shades Darker in the Windows Store. Topics covered in this week… Continue reading Surface Dial, Microsoft Edge Updates, and more! | This Week On Windows

Call of Duty: WWII Revealed and Now Available for Pre-Order

Today we got our first look at the next dramatic entry in the Call of Duty series with Call of Duty: WWII, coming this November to Xbox One and now available for pre-order. During the livestream event hosted by Activision, some specific details were revealed, including the game’s setting, story, multiplayer modes, and more. With a return to its World War II roots, Call of Duty: WWII will look to redefine what it means to experience a historic shooter. Players enlist in a gritty, intense campaign through the harrowing battlegrounds of war, facing overwhelming odds and hostile terrain across Europe,… Continue reading Call of Duty: WWII Revealed and Now Available for Pre-Order

Rearchitecting Visual Studio 2017 | Visual Studio Toolbox

In this episode, Robert is joined by Art Leonard, who explains how and why Visual Studio was rearchitected to support faster and more flexible installs. He discusses the Core Editor, breaking up the product into smaller parts, installing workloads, the… Continue reading Rearchitecting Visual Studio 2017 | Visual Studio Toolbox