Getting started with IoT Netudio 3 ethernet a compatibility Arduino board

enter image description here

Getting started with Studio 3 ethernet

I think many of you may be familiar with Arduino, Raspberry Pi but today I would like to introduce you an Arduino compatibility board "Netduino".

As the name start with NET, it implies that you there must be something related to .NET.

In fact, Netduino is a .NET micro framework microcontroller board which allow you to use C#, .NET to develop and IoT, smart home, or any other kinds of electronic projects

  • There are some benefits of using Netduino
  • It is compatible with Arduino shields.
  • Most Arduino codes or examples work with Netdunio but you need to have to convert codes to C# or change interfaces. However, it easy to get an idea for getting started.
  • Use your favorite IDE C#
  • Built-in debugging without additional devices, Step through, step over breakpoint work the same way as you expected. Work with a high-level C# programming language
  • Built-in internet connection
  • Create class, interface, reusable class library project

Let's start coding on Netduino

Install the development tool

Visual Studio 2015 community

Install Visual Studio 2015 community edition. You can download from the following link.

Link to download Visual Studio 2015 community edition

Unzip ISO file and Launch the installation that you just download and select a custom installation. Keep the default setting then click next enter image description here

Change to default location to install the program if you want.

enter image description here

Follow the installation and wait for several minutes until finishes. Then restart your computer.

enter image description here

.NET Microframework

Install .NET Microframework, download from the following link

Link to download .NET Microframework

enter image description here

NETMF Plugin for Visual Studio Visual Studio 2015

Install NETMF Plugin for Visual Studio Visual Studio 2015, download from the following link

Link to download NETMF Plugin for Visual Studio Visual Studio 2015

enter image description here

Netduino SDK

Install Netduino SDK, download from the following link.

Link to download Netduino SDK

enter image description here

Accept a driver alert.

enter image description here

Create a new project

Launch a Visual studio 2015 Community edition and log in with your Microsoft account, e.g.

After logged in, in a menu bar of Visual Studio, select File > New > Project

In template node, select Visual C# > Micro Framework > Console Application

Enter name: NetduinoBlink and you can save to default location or pick other locations. Then click OK to create a new project. enter image description here

Go to Solution Explorer windows and right click on Reference node and click Add Reference. Then new Window pop up and add these references

  • Microsoft.Spot.Hardware
  • SecretLabs.NETMF.Hardware
  • SecretLabs.NETMF.Harware.Netduino

Writing simple codes

Open Program.cs and put the following code block

using Microsoft.SPOT.Hardware;
using SecretLabs.NETMF.Hardware.Netduino;
using System.Threading;

namespace NetduinoBlink
    public class Program
        const int SLEEP_IN_MILLISECONDS = 250;

        public static void Main()
            // Configure an output port for us to "write" to the LED
            OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
            // Note that if we didn't have the SecretLabs.NETMF.Hardware.Netduino DLL, 
            // We could also manually access it this way:
            // OutputPort led = new OutputPort(Cpu.Pin.GPIO_Pin10, false); 
            while (true)
                led.Write(true); // turn on the LED 
                Thread.Sleep(SLEEP_IN_MILLISECONDS); // sleep for 250ms 

                led.Write(false); // turn off the LED 
                Thread.Sleep(SLEEP_IN_MILLISECONDS); // sleep for 250ms 

Deploy the app to the board

Connect your Netduino board to your USB port In Visual Studio, go to solution explorer > select NeduinoBlink project node >

right click and select Properties

enter image description here

Select NET Micro Framework tab > set Transport to USB > set Devices to your connected Netduino board

enter image description here

Press Ctrl + F5 or Go to Debug > and select Start without debugging

Wait a few seconds your code is compiled and uploading to the board.

After everything done, you should have a blink LED on your Netdunio board.

enter image description here

Optionally, if you have a 0x80131700 Build error while building program please try to install .NET 3.5 that contains .NET 2.0 from the following link.

Link to download .NET 3.5 full