{"id":6206,"date":"2012-12-19T19:20:36","date_gmt":"2012-12-20T00:20:36","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=6206"},"modified":"2012-12-19T22:33:53","modified_gmt":"2012-12-20T03:33:53","slug":"getting-ready-for-netduino-netduino-plus-tutorials","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/getting-ready-for-netduino-netduino-plus-tutorials\/","title":{"rendered":"Getting Ready for Netduino \/ Netduino Plus Tutorials"},"content":{"rendered":"<p>There are a few things that need to be done besides simply connecting the Netduino to the computer. I will be using Netduino Plus for the tutorials however Netduino and Netduino Plus are more or less the same for our tutorials. Let\u2019s first list all the necessary tidbits:<\/p>\n<ul>\n<li>Microsoft Visual Studio (C# or VB) Express 2010<\/li>\n<ul>\n<li><a href=\"http:\/\/www.microsoft.com\/visualstudio\/eng\/products\/visual-studio-express-products\">http:\/\/www.microsoft.com\/visualstudio\/eng\/products\/visual-studio-express-products<\/a><\/li>\n<li>Using this software we will be writing our codes in VB.NET or C#.NET.<\/li>\n<\/ul>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>.NET Micro Framework SDK v4.1<\/li>\n<ul>\n<li><a href=\"http:\/\/www.netduino.com\/downloads\/MicroFrameworkSDK.msi\">http:\/\/www.netduino.com\/downloads\/MicroFrameworkSDK.msi<\/a><\/li>\n<li>Without this, we will not be able to write code that Netduino (or any Micro Framework supported hardware) will understand.<\/li>\n<\/ul>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Netduino SDK v4.1.0<\/li>\n<ul>\n<li>32 bit : <a href=\"http:\/\/www.netduino.com\/downloads\/netduinosdk_32bit.exe\">http:\/\/www.netduino.com\/downloads\/netduinosdk_32bit.exe<\/a><\/li>\n<li>64 bit : <a href=\"http:\/\/www.netduino.com\/downloads\/netduinosdk_64bit.exe\">http:\/\/www.netduino.com\/downloads\/netduinosdk_64bit.exe<\/a><\/li>\n<li>This SDK will enable us to write Netduino specific codes.<\/li>\n<\/ul>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Netduino or Netduino Hardware<\/li>\n<ul>\n<li><a href=\"http:\/\/www.netduino.com\/buy\/?pn=netduinoplus\">http:\/\/www.netduino.com\/buy\/?pn=netduinoplus<\/a><\/li>\n<li>This is our main microcontroller where we will deploy our code and it will perform as we have written.<\/li>\n<\/ul>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Basics electronics board and components.<\/li>\n<ul>\n<li>It\u2019s hard to list but at the minimum we will need a computer (of course), breadboard, connecting wires, LEDs, resistors, etc.<\/li>\n<\/ul>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Once you have all these installed\/accessed, plug your Netduino to your computer, and start your Visual Studio.\u00a0 When Visual Studio is started for the first time it may ask you a few things, such as the language (VB or C#) that you are comfortable with.<\/p>\n<p>&nbsp;<\/p>\n<h2>Visual Studio<\/h2>\n<p>Visual Studio (VS) that I have installed is configured for CSharp.NET so when I start a Visual Studio and try to create a new project, it automatically selects CSharp (C#) section. To create a new project, from VS go to <strong>File &gt; New &gt; Project<\/strong>, this will display a New Project file open dialog-box, as shown below. Under <strong>C#<\/strong> and <strong>Micro Framework<\/strong>, highlight <strong>Netduino Application<\/strong> or <strong>Netduino Plus Application<\/strong> and give Name, Location then click <strong>OK<\/strong> button. (I will be using Netduino Plus.)<\/p>\n<div id=\"attachment_6228\" style=\"width: 542px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/?attachment_id=6228\" rel=\"attachment wp-att-6228\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6228\" class=\"size-full wp-image-6228 \" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/NewProject_VisualStudio.png\" alt=\"New Project Window Visual Studio\" width=\"532\" height=\"405\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/NewProject_VisualStudio.png 591w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/NewProject_VisualStudio-550x418.png 550w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/a><p id=\"caption-attachment-6228\" class=\"wp-caption-text\">New Project dialog of VS<\/p><\/div>\n<p><!--more--><\/p>\n<p>This will create a new project and we are almost ready to write our code. From the <strong>Solution Explorer<\/strong> (<strong>View &gt; Solution Explorer<\/strong>), double click the Program.cs. Something like following will show up in the main window.<\/p>\n\n<div class=\"wp_syntax\"><table><tr><td class=\"code\"><pre class=\"csharp\" style=\"font-family:monospace;\"><span style=\"color: #0600FF; font-weight: bold;\">public<\/span> <span style=\"color: #6666cc; font-weight: bold;\">class<\/span> Program\n<span style=\"color: #008000;\">&#123;<\/span>\n    <span style=\"color: #0600FF; font-weight: bold;\">public<\/span> <span style=\"color: #0600FF; font-weight: bold;\">static<\/span> <span style=\"color: #6666cc; font-weight: bold;\">void<\/span> Main<span style=\"color: #008000;\">&#40;<\/span><span style=\"color: #008000;\">&#41;<\/span>\n    <span style=\"color: #008000;\">&#123;<\/span>\n        <span style=\"color: #008080; font-style: italic;\">\/\/ write your code here<\/span>\n&nbsp;\n    <span style=\"color: #008000;\">&#125;<\/span>\n<span style=\"color: #008000;\">&#125;<\/span><\/pre><\/td><\/tr><\/table><\/div>\n\n<p><em>Public static void Main()<\/em> is the main entry point in our code. From here we will control how the code will proceed into a next step.<\/p>\n<p>&nbsp;<\/p>\n<h2>Running code<\/h2>\n<p>Before hitting <strong>F5<\/strong> <strong>or Debug &gt; Start Debugging<\/strong>, we need to tell VS to put our compiled code to our Netduino. In order to do so, click on <strong>Project &gt;<\/strong> \u2018yourProjectName\u2019 <strong>Properties<\/strong>, which will bring the following type of window:<\/p>\n<div id=\"attachment_6229\" style=\"width: 530px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/?attachment_id=6229\" rel=\"attachment wp-att-6229\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6229\" class=\"size-full wp-image-6229 \" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/ProjectProperty_VisualStudio.png\" alt=\"Project Property Visual Studio\" width=\"520\" height=\"316\" \/><\/a><p id=\"caption-attachment-6229\" class=\"wp-caption-text\">Application tab of a Miro Framework project<\/p><\/div>\n<p style=\"text-align: left;\">From this Project Property window, click on <strong>.NET Micro Framework<\/strong> tab then select <strong>USB<\/strong> on <strong>Transport<\/strong>. Now in <strong>Device<\/strong> dropdown, <strong>Netduino<\/strong> (or <strong>Netduino Plus<\/strong>) should be listed. If your Netduino is not listed make sure you have installed all the components described earlier and also unplug and re-plug the Netduino. The .NET Micro Framework section should look like follow:<\/p>\n<div id=\"attachment_6227\" style=\"width: 539px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/?attachment_id=6227\" rel=\"attachment wp-att-6227\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6227\" class=\"size-full wp-image-6227  \" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/NewProject_NETFM_VisualStudio.png\" alt=\"Project Properties NET MF Tab Visual Studio\" width=\"529\" height=\"306\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/NewProject_NETFM_VisualStudio.png 588w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/NewProject_NETFM_VisualStudio-550x318.png 550w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/a><p id=\"caption-attachment-6227\" class=\"wp-caption-text\">.NET Micro Framework tab of a project properties page<\/p><\/div>\n<p>Now we are ready to run (or Debug) our code!<\/p>\n<p>&nbsp;<\/p>\n<h2>Netduino<\/h2>\n<p>\u201cThe Netduino is an open source electronics platform using the .NET Micro Framework. It features a 32-bit microcontroller and a rich development environment. The Netduino combines 20 GPIOs with SPI, I2C, 2 UARTs, 4 PWMs, and 6 ADC channels.\u201d<\/p>\n<ul>\n<li>Atmel 32-bit microcontroller<\/li>\n<li>48Mhz, ARM7<\/li>\n<li>14 Digital I\/O Pins<\/li>\n<li>6 Analog Inputs<\/li>\n<li>Arduino Shield Compatible<\/li>\n<li>Specs:\u00a0 <a href=\"http:\/\/www.netduino.com\/netduino\/specs.htm\">http:\/\/www.netduino.com\/netduino\/specs.htm<\/a><\/li>\n<\/ul>\n<div id=\"attachment_6220\" style=\"width: 497px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/?attachment_id=6220\" rel=\"attachment wp-att-6220\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6220\" class=\"size-full wp-image-6220 \" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/Netduino1.jpg\" alt=\"Netduino\" width=\"487\" height=\"397\" \/><\/a><p id=\"caption-attachment-6220\" class=\"wp-caption-text\">Netduino Board<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2>Netduino Plus<\/h2>\n<p>\u201cThe Netduino Plus is an open source electronics platform using the .NET Micro Framework. The board features a 32-bit microcontroller and a rich development environment\u2026 The Netduino plus adds an ethernet connection and an SD socket for even greater functionality.\u201d<\/p>\n<ul>\n<li>Atmel 32-bit microcontroller<\/li>\n<li>48Mhz, ARM7<\/li>\n<li>14 Digital I\/O Pins<\/li>\n<li>6 Analog Inputs<\/li>\n<li>Ethernet Connection<\/li>\n<li>SD card socket<\/li>\n<li>Specs:\u00a0 <a href=\"http:\/\/www.netduino.com\/netduinoplus\/specs.htm\">http:\/\/www.netduino.com\/netduinoplus\/specs.htm<\/a><\/li>\n<\/ul>\n<div id=\"attachment_6222\" style=\"width: 523px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/?attachment_id=6222\" rel=\"attachment wp-att-6222\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-6222\" class=\"size-full wp-image-6222 \" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2012\/11\/NetduinoPlus1.jpg\" alt=\"NetduinoPlus\" width=\"513\" height=\"413\" \/><\/a><p id=\"caption-attachment-6222\" class=\"wp-caption-text\">Netduino Plus Board<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are a few things that need to be done besides simply connecting the Netduino to the computer. I will be using Netduino Plus for the tutorials however Netduino and Netduino Plus are more or less the same for our tutorials. Let\u2019s first list all the necessary tidbits: Microsoft Visual Studio (C# or VB) Express 2010 http:\/\/www.microsoft.com\/visualstudio\/eng\/products\/visual-studio-express-products Using this software we will be writing our codes in VB.NET or C#.NET. &nbsp; .NET Micro Framework SDK v4.1 http:\/\/www.netduino.com\/downloads\/MicroFrameworkSDK.msi Without this, we will not be able to write code that Netduino (or any Micro Framework supported hardware) will understand. &nbsp; Netduino SDK<\/p>\n","protected":false},"author":4,"featured_media":6220,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[495],"tags":[528,529,1316,500,501],"class_list":["post-6206","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-netduino","tag-basic-setup","tag-getting-started","tag-netduino","tag-netduino-plus","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/6206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=6206"}],"version-history":[{"count":39,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/6206\/revisions"}],"predecessor-version":[{"id":6782,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/6206\/revisions\/6782"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/6220"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=6206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=6206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=6206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}