[#XDUINO] #Arduino vs #Netduino vs #NetGadgeeter (III), starting with Netduino

image

Series:

  1. Introduction. https://elbruno.com/2013/07/13/xduino-arduino-vs-netduino-vs-gadgeteer-i/
  2. Example with Arduino. https://elbruno.com/2013/07/15/xduino-arduino-vs-netduino-vs-netgadgeeter-ii-usamos-el-arduino/

Good.

After the super simple exercise of yesterday with Arduino:, today touch switch to Netduino. The first thing we find is that, working with Netduino, we don’t have an official extension for Visual Studio 2012 (or talk about VS2013).

The scenario is far-fetched so I will try to explain it. Netduino uses .Net Micro Framework (NETMF) platform. The current version of NETMF is version 4.3 that if integrates with Visual Studio 2012. However almost all the plates ofNetduino sold come with version 4.2 of NETMF. On the other hand, the official to work with Netduino extension is for Visual Studio 2010 and NETMF 4.2. Adding these parties we have a salad where mismatched parts.

Moreover, if you are looking for on the official Netduinodownloads page, you will see that there is no download forNETMF 4.3 > http://netduino.com/downloads/. And here comes the great Chris Walker to our rescue with this post on a forum where guides us to the discharge of Netduino SDK 4.3, that if it allows us to work with Visual Studio 2012.

This looks better, now in the Visual Studio new project window we can already see the Netduino projects.

image

Now I select the hardware to see if everything works. In this case I will use

image

The program that I will use is very simple, a blink the led that is integrated in the plate. It has the following source code:

   1: using System.Threading;
   2: using Microsoft.SPOT.Hardware;
   3: using SecretLabs.NETMF.Hardware.Netduino;
   4:  
   5: namespace NetduinoApplication1
   6: {
   7:     public class Program
   8:     {
   9:         public static void Main()
  10:         {
  11:             var ledStatus = false;
  12:             var led = new OutputPort(Pins.ONBOARD_LED, false);
  13:             while (true)
  14:             {
  15:                 led.Write(ledStatus);
  16:                 Thread.Sleep(500);
  17:                 ledStatus = !ledStatus;
  18:             }
  19:         }
  20:     }
  21: }

Within an Infinite Loop this program changes the status of the LED on the Board every half-second. With the Panel connected to the USB port, giving F5 I encounter the following error:

Error 2 Cannot deploy the base assembly ‘mscorlib’, or any of his satellite assemblies, to device – USB:Netduino twice. Assembly ‘mscorlib’ on the device you have version 4.2.0.0, while the program is trying to deploy version 4.3.0.0

The board of the Netduino 2 has mounted NETMF 4.2 no 4.3. The solution is simple, in the properties of the project, in the section Application change the framework to make it the NetMF 4.2.

image

Also in the project properties, I verify that transport is carried out using the USB cable to my plate.

image

And ready after an F5 already have the application deployed and running.

Will post tomorrow about how to implement the proposed exercise using the BUTTON and the LED on the Board and how to do it with a Groove on it.

Downloads: http://www.netduino.com/downloads/netduinosdk_NETMF43.exe

References: http://forums.netduino.com/index.php?/topic/8083-how-to-upgrade-to-the-net-micro-framework-v43-sdk/

Saludos @ Home

El Bruno

image image image Google

One thought on “[#XDUINO] #Arduino vs #Netduino vs #NetGadgeeter (III), starting with Netduino

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.