Windows IoT Core Archives - Falafel Software Blog

Read/Write data from/to USB thumb drive on a Windows IoT Core device

By | .NET, Blogs, C#, Fun, IoT, Microsoft, Multi-Device, News, Raspberry Pi, Visual Studio, Windows Universal Apps | One Comment

Currently, universal apps are sandboxed to the point of blocking you from reading/writing data files to a removable USB drive on Windows IoT Core devices. This post will show you a work around if you really need to do this. Now, understand that this is not for store apps. If you submit an app using this work around, it will likely get rejected. However, for internal projects, it will definitely work, and work well. This is a great way of reading application initialization data and writing log data in a test apparatus and laboratory setting. Particularly when a network or…

Read More

C# Windows IoT Core Serial Communications with an ESP8266

By | Blogs, C#, ESP8266, git, Hardware, IoT, Microsoft, Multi-Device, News, Raspberry Pi, Visual Studio, Windows Universal Apps | No Comments

Windows IoT Core is great for connecting single board computers such a Pi2 to an ESP8266, via a serial link. The hardware for such a link can be found in my previous post here. The details for a basic serial communication C# framework are detailed in this post. If you have an ESP8266, there are numerous ways of communicating with them such as LuaLoader. However, I needed to communicate with my ESP8266 through a Pi2 running Windows IoT Core. This is part of a larger automated test project for an upcoming consumer project we’re developing. In this post, I’ll cover…

Read More
Software PWM at 0.35 Duty Cycle

Windows IoT Core: Software PWM

By | C#, Hardware, IoT, Microsoft, Raspberry Pi, Visual Studio, Windows, Windows Universal Apps | No Comments

One of the gaping holes in my opinion is the availability of PWM when working with Windows IoT Core on the Raspberry Pi. There are two approaches to solving this problem, one is with additional hardware to provide PWM functionality, the other is to achieve PWM with software. This article will focus on Software PWM. A Convenient Software PWM Library In poking around the web, I stumbled across this convenient library for Windows IoT Core. One of the implemented functions in this library is support for Software PWM. This library is also available as a package through NuGet. To demonstrate…

Read More
Two Wheel Robot on the floor

Windows IoT: Basic Control of a Two Wheel Robot

By | C#, Hardware, IoT, Raspberry Pi, Windows, Windows Universal Apps | One Comment

In my last article, we utilized a Raspberry Pi running Windows IoT Core to bi-directionally control a single DC motor with the help of the L293D chip. In this article, we will take things a bit further and have the L293D chip control two motors placed on a chassis to create a Two Wheel Robot. Materials Raspberry Pi 2 running Windows IoT Core Pi Cobbler with Ribbon Cable (optional) L293DNE chip Adafruit 2 Wheel Robot Chassis Kit (contains 2 DC motors) One 4xAA battery pack (to power the motors) Breadboard Various M-M Jumper wire   Wiring Details Wiring Details Cobbler 5v…

Read More
Breadboard Diagram

Azure IoT Hub: Managing and communicating with IoT devices

By | Azure, C#, Hardware, IoT, Microsoft, Raspberry Pi | 4 Comments

This is post 13 of 29 in the series “A Cloudy 29 Days of Microsoft Azure” Officially declared Generally Available (GA) on February 3rd, 2016, the Microsoft Azure IoT hub aims to help ease the software development burden by providing foundational tasks when it comes to building an Internet of Things system. With device provisioning, monitoring, management and system updates provided by the Azure IoT Hub, you are free to concentrate on coding your device’s core functionality. Another alluring aspect of Azure IoT Hub is that there is a free tier that allows an account to provision and maintain up…

Read More
Wiring Diagram

IR Break Beam Hot Wheels Car Speed Track

By | C#, Fun, Hardware, IoT, Microsoft, News, Raspberry Pi, Visual Studio, Windows | No Comments

Today I bring you a fun little project. The goal of the project is to measure the speed of toy cars as they run the length of a track. Kids and adults can compete to see who has the fastest car. What you’ll need: Hot Wheels Cars A track – I used baseboard molding from a home improvement store Two 5 mm IR break beam sensors Your existing Windows IoT Core setup Wiring Diagram Wiring Details (x2) IR Break beam transceiver black wire to GND (x2) IR Break beam transceiver red wire to 5V (x2) IR Break beam receiver black…

Read More
Touchscreen Panel Application

Windows IoT Core : A Philips Hue Touchscreen Panel Application

By | C#, Fun, Hardware, IoT, Microsoft, Multi-Device, Raspberry Pi, Visual Studio, Windows, Windows Universal Apps | 10 Comments

Philips Hue is a fabulous lighting system. It is a hub based system that discovers when new bulbs are added, allowing you to grow the collection of smart bulbs in your home organically. Hue also has apps available on some mobile platforms that make customizing and controlling your lights an easy and visual task. These are all fine and dandy, as long as you have a mobile device with you at all times. Hardware switches are available to circumvent that need, but they have limited functionality and in all honesty, they aren’t all that flashy or futuristic looking. I thought…

Read More
Circuit Diagram for Sound Sensing with the Raspberry Pi

Windows IoT Core : Sensing Sound Levels

By | Blogs, C#, Fun, Hardware, IoT, Microsoft, News, Raspberry Pi, Windows, Windows Universal Apps | 3 Comments

The ability to sense the amount of sound in an environment can come in handy. From the hobbyist standpoint, you can create light elements with LED strips that light up based on the amount of sound, similar to an equalizer, to add to the ambiance of the playing music. From a commercial perspective, you can create alerts once sound levels exceed a certain threshold at a workplace (or classroom). You can also create helpful visual indicators for sound that can help those that are hard of hearing, such as a lighting-based baby monitor that will light up when a baby…

Read More
FTP Files to Windows IoT Core

Windows IoT Core: Running a PowerShell Script on Startup

By | Hardware, IoT, Microsoft, News, Windows | 4 Comments

Sometimes it is useful to be able to run various configuration scripts on your IoT device at start up. This article will outline a way to run a PowerShell script on startup of the Windows IoT Core operating system. The first thing you will need to do is build the script you would like to run. In this example, we’ll keep it simple. We’ll create a log file at startup that will log the current date. Create a new file, name it StartupScript.ps1 and add the following lines of PowerShell code:

Next we will create a simple batch (*.bat) file…

Read More
Orico Bluetooth 4.0 Dongle

Making a Smart Bracelet using Custom BTLE GATT Services, Arduino, and Windows IoT Core

By | Arduino, C#, Hardware, IoT, Multi-Device, News, Visual Studio, Windows Universal Apps | One Comment

In this article, we are going to cover how to setup your own custom GATT service on the Arduino platform and then interact with it using an application running on Windows IoT Core. The project we will create is a BTLE bracelet that has an LED light (NeoPixel) that changes colors based on the communications received over the custom GATT service. What is a GATT Service? GATT stands for Generic ATTribute Profile. Essentially, it is what defines the services and their associated characteristics that are available on a particular BTLE (Bluetooth Low Energy) device (it is also available on regular Bluetooth…

Read More

Windows IoT Core Oscilloscope

By | .NET, Blogs, C#, Fun, Hardware, IoT, Microsoft, Mobile, Multi-Device, News, Telerik, Tools, Visual Studio, Windows Universal Apps | 2 Comments

In my continuing quest to see what the Windows IoT Core is capable of and my desire to push my gadgets to their limits, I came up with an interesting oscilloscope project using a Windows IoT Core-based Raspberry Pi 2 and a simple ADC. Now, I’m not claiming that you can just quickly build an oscilloscope using a Raspberry Pi 2 and an ADC and never need to spend the money on an oscilloscope ever again. The one shown in this project is limited in its temporal resolution to the millisecond range. For an oscilloscope, that’s slow, but it may…

Read More
MCP3008 Chip

Analog to Digital Conversion with MCP3008 and Windows IoT Core

By | C#, IoT, Microsoft, News, Visual Studio, Windows Universal Apps | 3 Comments

The Raspberry Pi 2 is an amazingly powerful board, with plenty of great features at a low price-point. I invested in a couple Raspberry Pi 2 boards to use in my projects. I quickly discovered one feature missing on the Pi that I had grown accustomed to in an Arduino world: analog pins. I have a plethora of analog sensors that I like to tinker with, so I went in search of solutions to using them with my Pi boards. I did my research and invested in a few MCP3008 chips. The MCP3008 is a 10-bit analog to digital converter….

Read More

Bluetooth Rfcomm Communication with a Windows IoT Core Device

By | .NET, C#, IoT, Mobile, News | 2 Comments

Being a gadget guy, I can’t express enough the excitement I have for the Windows 10 IoT Core. The fact that I can now run most any UWA on a Raspberry Pi 2 is cool. I looked at the many ways you could wirelessly communicate with the Raspberry Pi 2. Carey has done a great post on using ZigBee modules. Then there is also Wifi and Bluetooth. This post will look at using Bluetooth to link a Raspberry Pi 2 with my Surface Pro 3. If you’ve not installed the Windows IoT Core onto your Raspberry Pi 2 you can…

Read More
Serial Conversion Module

ZigBee communication with Raspberry Pi 2 and Windows IoT Core

By | C#, Hardware, IoT, Microsoft, News, Visual Studio, Windows, Windows Universal Apps | 16 Comments

ZigBee Primer A ZigBee PAN (personal area network) is a self-organizing series of modems that communicate using the same protocol (based on the IEEE 802.15.4 standard). Individual modems are configured to play a specific role within the network. Coordinators establish and organize the network (there is only ever one coordinator in a network). End Devices are the leaf nodes of the network, their responsibility is to provide valuable data. This data could be anything. It could be a power usage reading, a string relaying device status, or even a reading from a temperature sensor. The last type of configuration is…

Read More

Running a touch-based Universal Application on a Pi 2 with Windows IoT Core Insider Preview

By | Blogs, C#, Fun, Hardware, IoT, Microsoft, Windows Universal Apps | One Comment

Building on my last blog post, I decided to put together a quick Windows Universal Application that I could run on my Pi 2 with my touchscreen. I wanted to determine how good the touch experience would be using the Rasberry Pi 2 and the Windows IoT Core Insider Preview OS. I was pleasantly surprised that once I deployed my application, the touch capabilities were very accurate and responsive. Creating the Application This blog post assumes that you’ve been through the setup of your Raspberry Pi 2 and your Windows PC as described on www.windowsondevices.com. The application I created is…

Read More

Setting up a 7-inch Touchscreen on a Pi 2 with Windows IoT Core Insider Preview

By | Hardware, IoT | 19 Comments

One of the things that I am most excited about with Windows coming to the Raspberry Pi is the support of displays. I have an existing 7” touch display that could serve a great UI experience in many IoT projects. This is the procedure that I followed in order to get the display working with the Pi 2 running Windows IoT Core Insider Preview. This article expects that you already have a Raspberry Pi 2 and that it is running the Windows IoT Core operating system. If you don’t currently have this setup it is quite easy to begin by…

Read More