Getting started with Microsoft.NET Gadgeteer Comberton Village College Gadgeteer Club.

Slides:



Advertisements
Similar presentations
Data Collection. Status LEDs 5 MP Camera Touch Screen GNSS Receiver Light Sensor SD Card Slot.
Advertisements

BTEC 149. Windows Desktop Click on the Start Button.
Computer Basics Hit List of Items to Talk About ● What and when to use left, right, middle, double and triple click? What and when to use left, right,
JED Microprocessors Pty Ltd Presenting the JED T430 low-cost Projector Controllers Nov 22nd, 2009.
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
This document guides you through using the common features of the InFocus™ Mondopad™ touchscreen display located in this room. Getting Started Power Display.
Riso Digital Education Center Appendix for SRC Training Basic Course 1.
Getting Started with Layout Compiled by Ryan Johnson May 1, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT  The.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
CA 121 Intro to Programming Tariq Aziz and Kevin Jones GUI Programming in Visual Studio.NET Chapter 1 Tariq Aziz and Kevin Jones.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
CHAPTER 1 XNA Game Studio 4.0. Your First Project A computer game is not just a program—it is also lots of other bits and pieces that make playing the.
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
11 Games and Content Session 4.1. Session Overview  Show how games are made up of program code and content  Find out about the content management system.
Lesson 3 How to Construct Your Own Personal Computer.
05/09/ Introducing Visual Basic Sequence Programming.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Using the Smart Board Jeanne Klein Instructor Computer Inservice Program Spring 2006.
Available Technology  MP3 Players – 25 – Oral Testing, Audio Texts / Books  Presenter Mice – 3 – Oral Presentations  Head Phone Extension Kits – 2 –
Chapter 1 P. 1 Writing Windows applications with Visual Basic Figure 1.1 The first program works as follows: (These operations can be performed in any.
Lexmark Wireless Printer Adaptor Instructions Step 1. For a Mac, go to network preferences/ select built-in-ethernet and click on TCP/IP tab and annotate.
| | Tel: | | Computer Training & Personal Development Outlook Express Complete.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
How to Create a Professional Video Using Windows Live Movie Maker.
Geo CE-XM ch 4 Edited 10/14/05 1 The XM is the newest of the rovers, and unlike other units, it comes with software installed on the unit as well as using.
11 A First Game Program Session Session Overview  Begin the creation of an arcade game  Learn software design techniques that apply to any form.
Introduction to Arrays. definitions and things to consider… This presentation is designed to give a simple demonstration of array and object visualizations.
A1 Visual C++.NET Intro Programming in C++ Computer Science Dept Va Tech August, 2002 © Barnette ND & McQuain WD 1 Quick Introduction The following.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
© Paradigm Publishing Inc. MICROSOFT WINDOWS XP MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Photo Story 3 Importing Pictures. When you create a new Photo Story, the first thing that you will do is import pictures. You can import pictures from.
FIRST GADGETEER PROJECT. Where are you? Making a VS project Parts of a C# program Basics of C# syntax Debugging in VS Questions? 2.
How to Make a Power Point Presentation What to Do First  Open the Microsoft PowerPoint program by double clicking on it.  Create a new presentation.
ACTIVINSPIRE TRAINING Tips and tools for creating Flipcharts on ActivInspire.
BIL528 – Bilgisayar Programlama II Introduction 1.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
IMovie 10 Overview. Importing Files from a Video Camera into iMovie 1.Plug the camera into a wall outlet using the power supply. (Some cameras will not.
Getting Started with Word & Saving Guided Lesson.
Common Computer Problems. Freezing Problem: My computer won't do anything. Solution: Make sure your computer is turned on, plugged in, and there is no.
Ethernet I/O Set-Up This presentation will step through a typical configuration of the DVT CON-IOE. Intellect 1.0 is used for the software portion.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
BBT 10 Visual Basic 03 Enrichment. Tip Before creating any files for your project, first create a new folder Save all of your files in the folder Pieces.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Digital Literacy: Computer Basics
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
screen shots Emma Jarman. Adding attachments What is an attachment? An attachment is an that has a file attached to it. The file could be.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Programming and Debugging with the Dragon and JTAG Many thanks to Dr. James Hawthorne for evaluating the Dragon system and providing the core content for.
Troubleshooting Dashhawk Issues. Here's what you have to do to have the DashHawk run properly Go to the ACTUAL PROGRAM file (not the short cut)
Digital Literacy Introduction to Computers Unit 1, Lesson 1.
Dive Into® Visual Basic 2010 Express
Neumann János Informatikai Kar
Programming and Debugging with the Dragon and JTAG
Chapter 1: An Introduction to Visual Basic 2015
Visual programming Chapter 1: Introduction
Connecting hardware and Booting the computer
Double click Microsoft Visual Studio 2010 on the Computer Desktop
Introduction to Visual Basic 2010
Presentation transcript:

Getting started with Microsoft.NET Gadgeteer Comberton Village College Gadgeteer Club

The.NET Gadgeteer Hardware At the heart of every Gadgeteer project is a mainboard. A mainboard is made up of a programmable processor, and a number of sockets that Gadgeteer modules can plug into.

Can you find the…… Touchscreen Display

Camera Can you find the……

Multicolor LED Can you find the……

Button Can you find the……

Potentiometer Can you find the……

USB Host Can you find the……

Ethernet Can you find the……

SD Card Can you find the……

USB Power Supply + Programming Interface Can you find the……

There are also… Some connector cables (same both ends) Some extender cards A black USB wire to power the power card

A Closer Look at the Mainboard Power LEDDebug LED Reset Button

Mainboard Socket Numbers

Mainboard Socket Types (Letters)

Socket Type Compatibility Labels “X or Y”

Match socket type letters when connecting modules to the mainboard

If a module is connected to the wrong socket type it won’t work (but it won’t damage anything, either) Red modules supply power to the mainboard. Only one red module should ever be connected to the mainboard at any time. (We only have one type of power card at the moment) When connecting modules, always make sure that the mainboard is not powered on, and that it is disconnected from the PC.

Constructing a Digital Camera What components will we need to make a camera like this one?

We need…. Main board Power board Screen Button Camera module We could also add an SD card….later….

Let’s connect it together like this…

Creating a New Gadgeteer Project Open Microsoft Visual C# 2010 Express, and select New Project… from the Start Page. (Alternatively, select File > New Project).

Select Gadgeteer from the list of Installed Templates, then select.NET Gadgeteer Application. You can give your project a name, then select OK.

Designer Tab (Program.gadgeteer) Solution Explorer (Project Files)

Code Tab (Program.cs)

Designer Tab (Program.gadgeteer) Toolbox

You can rename button. For example, rename it to myButton.

Click and drag to connect the button to a compatible socket. Click on the button’s socket. Compatible sockets on the mainboard are highlighted in green.

Add USBClientDP module from the toolbox, and connect it to socket 1. The USBClientDP module is both a power supply and a USB programming interface.

Now make the image in C# look like the Gadgeteer you have made… Make sure that you use the right sockets. The diagram in C# must be the same as your actual gadget.

Now we will write the code to make it work There are different parts to code in C# (and other languages). We will use terms like: Properties Events Methods Don’t worry about them too much at the moment….let’s just get something that works!

If it tells you text template may damage your computer….. Make sure that you click ‘OK’

When the button is pressed… Inside the ProgramStarted() method, type module name followed by a period, then select event using the arrow Enter keys. We want to say that once the program has started, if the button is pressed (an event), something happens (a method)

Type +=, followed by the Tab key twice.

Replace the line throw new NotImplementedException(); with your own code. Replace it with:

When the camera receives an image… We want to say that once the program is started, if the camera receives an image (the event), something happens (the method) Inside the ProgramStarted() method, type module name followed by a period, then select event using the arrow Enter keys (like we did for the button. You will have two lines inside the ProgramStarted() method now…..let’s finish off the camera method…

When the camera has captured a picture, use the display’s SimpleGraphics to display the image.

The DisplayImage method takes three parameters: a Picture object, an X coordinate and a Y coordinate. The PicturedCaptured event returns a Picture object, called picture, which can be directly passed to the DisplayImage method as the first parameter. The coordinate 0, 0 (passed as the second and third parameters) refers top-left corner of the display.

This is what the completed program should look like (comments and spare lines removed). void ProgramStarted() { camera.PictureCaptured += new Camera.PictureCapturedEventHandler(camera_PictureCaptured); myButton.ButtonPressed += new Button.ButtonEventHandler(button_ButtonPressed); Debug.Print("Program Started"); } void button_ButtonPressed(Button sender, Button.ButtonState state) { camera.TakePicture(); } void camera_PictureCaptured(Camera sender, GT.Picture picture) { display.SimpleGraphics.DisplayImage(picture, 0, 0); }

t Connect modules to mainboard, and connect to PC via USB. To PC

Now let’s run our program… Save your project and the program file to your own area. Press ‘run’ on the toolbar

What happens? Be patient…. In the output window you will see messages about debugging and rebooting. The program is being transferred to the main board, which will then reboot itself and run the program. You will know it has done this (and is ready) when it says “Program Started” in the window. ONLY THEN CAN YOU TEST YOUR CAMERA.

If you see the following message in the output window, stop debugging (Shift+F5) and try again (F5): Updating display configuration. DEVICE WILL NOW REBOOT. Visual Studio might lose connection, and debugging might need to be manually restarted. If the output window is stuck displaying the following message, press the reset button on the mainboard: Rebooting...

When the Program is running… 1.Press the button – an image should be displayed on the screen. 2.You may wish to hold the camera steady and re-focus a little at a time until the image improves

You can also use SimpleGraphics to perform basic drawing operations. For example, use it to overlay a rectangle on top of the picture.

Use the prompts and drop-down lists to discover and select the appropriate parameters.