netduino Getting Started



Similar documents
TPG MOBILE BROADBAND QUICK SETUP GUIDE

ScanShell.Net Install Guide

MY WORLD GIS. Installation Instructions

Quick Start Guide Vodafone Mobile Connect USB Modem

Guide for Remote Control PDA

Designed for Vodafone

ENPS-MF1. 1 USB Port. Multifunctional Print Server. Quick Installation Guide V1.0

User Guide Vodafone Mobile Broadband USB Modem K4606. Designed by Vodafone

CMP-102U. Quick Installation Guide

SMART INSTALL CONTENTS. Questions and answers

UM1676 User manual. Getting started with.net Micro Framework on the STM32F429 Discovery kit. Introduction

DEPLOYING A VISUAL BASIC.NET APPLICATION

Quick Start Guide. Highly customizable automated trading Automate your trades according to rules and models you create.

WINDOWS 7 & HOMEGROUP

How to Install Applications (APK Files) on Your Android Phone

USB DRIVER INSTALLATION GUIDE

Installing jabra pc suite. V01_0905 Jabra is a registered trademark of GN Netcom A/S

How to Download Images Using Olympus Auto-Connect USB Cameras and Olympus Master

Now with. Quick Start. User Guide Vodafone Mobile Broadband USB Stick K3773. Designed by Vodafone

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

OMEGA STUDIO SOFTWARE INSTALLATION GUIDE

Guide to Installing BBL Crystal MIND on Windows 7

Quickstart Guide Vodafone Mobile Broadband K4607-Z USB Stick. Designed by Vodafone

Nexio Connectus with Nexio G-Scribe

Resolving USB Driver Problems

Getting Microsoft Outlook and Salesforce in Sync

Contents. Business Everywhere user guide. 1. Introduction. 2. How to Install/Uninstall Business Everywhere. 3. The Business Everywhere interface

Installing the Gerber P2C Plotter USB Driver

PL2303HXA/XA Windows 8 Update Driver Installation. How to Update Driver to Support PL2303HXA/XA in Windows 8 Operating Systems

Software Installation Requirements

USB Driver Installation for Windows XP

COPYRIGHT TOP NOTCH TABLETS LLC HOW TO: Install the Drivers to your PC so you can Flash Firmware to your RK3066 Powered Tablet.

Business Plus Accounting Hardware Setup Guide For Windows XP

Hi-Speed USB Flash Disk User s Manual Guide

User Guide Vodafone Pocket WiFi Pro. Designed by Vodafone

Verbatim Secure Data USB Drive. User Guide. User Guide Version 2.0 All rights reserved

XConsole GUI setup communication manual September 2010.

1-Step Appraisals Jewelry Appraisal Software

Accessing Windows 7 in the Student Labs

Instructions for Installing and Using the FOCUS DL-15 Data Transfer Software

Using Microsoft Visual Studio API Reference

ScanWin Installation and Windows 7-64 bit operating system

LabelWriter. Print Server. User Guide

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Using Microsoft Office to Manage Projects

C6 Easy Imaging Total Computer Backup. Frequently Asked Questions

Windows 7 Printer Driver Installation procedure

Virtual Office Remote Installation Guide

User Guide Vodafone Mobile Wi-Fi R210. Designed by Vodafone

BMV-602 Data Link Manual

Audio-Technica AT-LP60-USB, AT-LP120-USB, AT-LP240-USB & AT-LP1240-USB Turntables. Software Guide

How to use the VMware Workstation / Player to create an ISaGRAF (Ver. 3.55) development environment?

Using the Communication Ports on the DG-700 and DG-500 Digital Pressure Gauges

Getting Started with the LabVIEW Mobile Module

CODESOFT Installation Scenarios

Contents. Getting Started...1. Managing Your Drives Backing Up & Restoring Folders Synchronizing Folders Managing Security...

Software Repair Assistant Manual for DuraXV

Lab 0 (Setting up your Development Environment) Week 1

User Guide Vodafone Mobile Broadband USB Modem K4203. Designed by Vodafone

BitLocker To Go User Guide

Maxtor OneTouch User's Guide

Getting Started with the OmniKey Card Reader

Quick Start Guide Vodafone Mobile Connect USB Stick. Designed for Vodafone

User Guide Vodafone Mobile Wi-Fi R206-Z. Designed by Vodafone

Boot Camp Installation & Setup Guide

PLEASE NOTE: The client data used in these manuals is purely fictional.

Guide for Remote Control PDA

quick reference guide

MASTER GUIDE (MAC) Gaming on the go is now possible.

RLM Server Guide. For Macintosh and Windows

Education Software Installer 2015

StrikeRisk v6.0 IEC/EN Risk Management Software Getting Started

Guest PC. for Mac OS X. User Guide. Version 1.6. Copyright Lismore Software Systems, Ltd. All rights reserved.

Lync 2010 June 2012 Document S700

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

THANK YOU FOR INSTALLING CARBONITE SERVER BACKUP!

Running Windows XP Mode with Windows Virtual PC A How-to Guide for Small Businesses

Introduction to BlueSoleil cphone Functions and Operations

Quick Start Guide Vodafone Mobile Broadband USB Stick. Designed for Vodafone

User Guide Vodafone Mobile Wi-Fi R206-Z. Designed by Vodafone

OfficeSuite Dialer Documentation

PART 1. Using USB Mixer with a Computer

Microsoft Office Access 2007 which I refer to as Access throughout this book

EPSON Stylus COLOR 740. USB Software Installation Guide (Windows 98/iMac ) USB Setup Guide (imac)

DigitalPersona Pro Server for Active Directory v4.x Quick Start Installation Guide

PP8X Printer Driver Installation Instruction

With a single download, the ADT Bundle includes everything you need to begin developing apps:

Lepide Event Log Manager: Installation Guide. Installation Guide. Lepide Event Log Manager. Lepide Software Private Limited

SAS 9.3 Foundation for Microsoft Windows

INSTALL AND CONFIGURATION GUIDE. Atlas 5.1 for Microsoft Dynamics AX

Hi! Let s get started. Streaming Stick

MixMeister EZ Converter Setup & Troubleshooting Contents:

CSA Software Listing Table of Contents. Both Windows and Mac platforms are supported.

User Guide Vodafone Mobile Wi-Fi R212. Designed by Vodafone

Transcription:

netduino Getting Started 1 August 2010 Secret Labs LLC www.netduino.com

welcome Netduino is an open-source electronics platform using the.net Micro Framework. With Netduino, the world of microcontroller programming is at your fingertips. Netduino is designed to enable both personal projects and sophisticated commercial endeavors. In this Getting Started guide, we ll set up the Netduino development environment on your computer and build your first Netduino App. After reading this guide, please join our online community. Browse the online projects. Design your own. With Netduino and your imagination, you can create great electronic projects. install To write Netduino Apps, you ll need some free tools. Download the following three installers and then install them in the specified order. You can also find links to these in the Downloads section of our website. 1. Microsoft Visual C# Express 2010 http://www.microsoft.com/express/downloads/ 2. Microsoft.NET Micro Framework v4.1 SDK http://www.netduino.com/downloads/microframeworksdk.msi 3. Netduino SDK v4.1 http://www.netduino.com/downloads/netduinosdk_32bit.exe (for 32-bit Windows) http://www.netduino.com/downloads/netduinosdk_64bit.exe (for 64-bit Windows) Once these free tools are installed, you re ready to create your first Netduino App. NOTE: The Netduino development tools require Windows XP, Vista, or Windows 7. There is also an open source project designed to provide support for Mac and Linux using Mono. It is currently experimental and incomplete (as of August 2010). A link to the project can be found at the Downloads section of our website.

unbox Before starting Visual C# Express 2010 for the first time, unpack your Netduino. Attach its sticky feet. Grab a Micro USB cable and plug the Netduino into your computer. The Netduino drivers should have been installed automatically with the Netduino SDK. If you experience any troubles, they are also available for download from our website. Many modern cell phones use Micro USB cables for charging. If you did not get a Micro USB cable with your Netduino, you may be able to borrow one from your cell phone. create Start Visual C# Express 2010. Or if you own a copy of the commercial Visual Studio 2010 tools, start Visual Studio 2010. The installer should have created a folder and shortcut for this program in your Start menu (Programs). The Visual Studio programming environment should launch. Let s create our first project. Click on the New Project link. If no link is visible, go to the File menu and select New > Project The New Project window should pop up. Visual Studio displays a set of installed templates. We want to pick Visual C# > Micro Framework from the list on the left. Then pick Netduino Application from the list on the right. Name your project, and press OK. code Now, we ll write our Netduino App s code. For a first project, we ll blink the Netduino s programmable (blue) LED. On the right side of the screen, the Solution Explorer shows your project files. Program.cs holds the startup code for your project. We re going to open it and write a half dozen or so lines of code. Double-click on Program.cs (or right-click and select Open). In the main section of the window, we are now editing Program.cs. Click on the line underneath the text // write your code here. This is where we ll write our code.

Now, type the following: OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); This first line of code creates an OutputPort. An OutputPort lets us control the voltage level of the pins on the Netduino (or in this case the voltage to the blue LED). Pins.ONBOARD_LED is shorthand which tells the Netduino which pin of the microcontroller we want to control and the second parameter (false) puts the LED in an initial state of OFF (false). Now, we re going to blink the LED on and off repeatedly. A straightforward way to create an action which repeats forever is to put it inside a loop which never ends. Add the following code to your project. while (true) { } The keyword while tells the microcontroller to do something in a loop while a certain condition is met. This condition is placed in parenthesis. In our case, we use a condition of true. Since conditions are met when they are true, passing it true means that the loop will repeat forever. Now, we ll create the blinking LED code. Between the two sets of curly braces, insert the following four lines of code: led.write(true); // turn on the LED led.write(false); // turn off the LED Your final program should look like this: public static void Main() { // write your code here OutputPort led = new OutputPort(Pins.ONBOARD_LED, false); } while (true) { led.write(true); // turn on the LED led.write(false); // turn off the LED }

run Now, we ll deploy your Netduino App to the Netduino and watch it run. By default, Visual Studio runs projects in an emulator. This allows software developers to create and test programming logic for a new hardware product before the actual hardware is built. We won t use the emulator for our purposes, so we ll let Visual Studio know that we have physical hardware it should use instead. Click on the Project menu and select your project s properties (generally, the last item in the Projects menu). When the project properties appear, click on the.net Micro Framework category on the left side. Now we will change our deployment target from the Emulator to the Netduino. Change the Transport from Emulator to USB and then make sure that the Device selection box shows your Netduino. If it doesn t, unplug and re-attach your Netduino. Now, we ll run the project. When we run the project, your code is deployed to the Netduino and then automatically started. We ll just watch the program run for now, but when you start building sophisticated Netduino Apps you may want to explore the advanced features: while running Netduino Apps you can debug, set breakpoints, step through code, analyze the value of variables, etc. To run your project, press the Start Debugging button in the toolbar at the top of the screen. It looks like the Play button on a music player. You can also press F5 instead. Visual Studio will now deploy your first Netduino App to the Netduino hardware. In a few seconds, you ll see the blue LED blinking on and off every half second. celebrate You ve now created, deployed, and run your first Netduino project. You can unplug the Netduino for your computer and demonstrate your success to others. When you ran the program, it was written into the Netduino s microcontroller chip so all you have to do to run the program again is plug it in via a MicroUSB cable or with a power adapter (using the power barrel jack). You can rewrite over your Netduino App. Visual Studio will automatically stop your current Netduino App whenever deploying a new one.

next steps The world of electronics is now yours to build. Build some projects from our website or elsewhere on the web. Come up with new ideas for the world s next great electronic gadget, Halloween costume, robot, etc. And please, participate in our online community and share your experiences with other community members. community Support for Netduino is available through peer support forums at http://forums.netduino.com legal Copyright 2010 Secret Labs LLC. This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License Netduino and Secret Labs are trademarks of Secret Labs LLC. Microsoft, Windows, Visual C#, and Visual Studio are registered trademarks of Microsoft Corporation. Mono is a registered trademark of Novell.