Neumann János Informatikai Kar

Slides:



Advertisements
Similar presentations
Nios Multi Processor Ethernet Embedded Platform Final Presentation
Advertisements

Device Drivers.
1. 2 FRC 2010 Driver Station Doug Norman & Stephanie Brierty National Instruments January 8, 2010 Thanks to Joe Ross – Team 330.
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,
Lesson 15 – INSTALL AND SET UP NETWARE 5.1. Understanding NetWare 5.1 Preparing for installation Installing NetWare 5.1 Configuring NetWare 5.1 client.
Using PDG with e2studio: Example
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Asst. Prof. Dr. Alper ŞİŞMAN
Khaled A. Al-Utaibi  What is Arduino?  Arduino Boards  Arduino Shields  Arduino Uno Hardware.
Intel Do-It-Yourself Challenge Hello World with the Arduino IDE Nicolas Vailliet Intel.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Camera Interfacing using ARM7
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Silicon Labs ToolStick Development Platform
Drivers Station 2010 Joe Ross Team /12/2009.
Driver Station MVRT 2009 – 2010 Season. Add information Breadboard Classmate PC USB Hub Joysticks Stop Button.
Getting started with Microsoft.NET Gadgeteer Comberton Village College Gadgeteer Club.
 Chasis / System cabinet  A plastic enclosure that contains most of the components of a computer (usually excluding the display, keyboard and mouse)
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
1 Developing Apps For The Pocket PC Platform Anup Mistry Technology Manager D-2 (22 nd May ’03)
RC CAR CONTROLLER BASED ON INTEL GALILEO SOC PLATFORM Nadav Shiloach Sagi Sabag Supervisor: Idan Shmuel Spring 2014 One Semester Project PROJECT’S ENDING.
The IT700 PIM only supports up to network layer, all other above layers must be executed by other processor. Therefore in the PLC control network two types.
FIRST GADGETEER PROJECT. Where are you? Making a VS project Parts of a C# program Basics of C# syntax Debugging in VS Questions? 2.
Getting to Know Your Computer Your File System Applications What’s running on your machine Its own devices Networking.
1 THE COMPUTER. 2 Input Processing Output Storage 4 basic functions.
CSC190 Introduction to Computing Operating Systems and Utility Programs.
ChibiOS/RT Demo A free embedded RTOS
Digital Literacy: Computer Basics
Develop VB in WinCE Maker : Axel Chou. Introduction to WinCE 3.0 One of the Microsoft Embedded System –WinCE 3.0 –Embedded NT 4.0 Customize : Minimize.
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.
Arduino.
Lets Learn fundamentals !!
By Ganesan Alagu Ganesh Feb 26, 2008
Mobile Device Development
Dive Into® Visual Basic 2010 Express
Introduction to Computers Mrs. Gambucci
Android Mobile Application Development
Programming and Debugging with the Dragon and JTAG
Lab 1: Using NIOS II processor for code execution on FPGA
Computer System Laboratory
Clocks, I/O devices, Thin Clients, and Power Management
Neumann János Informatikai Kar
Introduction to Visual Basic 2008 Programming
Implementing VHDL Modules onto Atlys Demo Board
PC Mouse operated Electrical Load Control Using VB Application
Arduino Development for Beginners
Arduino Part 1 Topics: Microcontrollers Programming Basics
Computer Hardware Flash Card Review
Visual programming Chapter 1: Introduction
Drill Translate the following message:
Lecture 4 : Windows 7 By MSc. Manar Joundy Hazar 2017
Connecting hardware and Booting the computer
Arduino and Design of Embedded Applications
Invent the future of small intelligent devices here.
Module 1: Getting Started
Programmable Logic Controllers (PLCs) An Overview.
Future Designs, Inc. Your Development Partner
Introduction to V+.
Social Media And Global Computing Introduction to Visual Studio
CIS16 Application Development – Programming with Visual Basic
Five Key Computer Components
Invent the future of small intelligent devices here.
Introduction to Single Board Computer
Arduino Leonardo Setup
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Overview of System Development for Windows CE.NET
Windows Operating System
Presentation transcript:

Neumann János Informatikai Kar Óbudai Egyetem Neumann János Informatikai Kar .NET Gadgeteer - Introduction

Overview What is .NET Gadgeteer? FEZ Spider Starter Kit Usage of the Starter Kit / Main board Simple Gadgeteer application Review questions

1. What is .NET Gadgeteer? Microsoft .NET Gadgeteer is a rapid prototyping platform for small electronic gadgets and embedded hardware devices. It combines the advantages of object-oriented programming, solderless assembly of electronics using a kit of hardware modules, and quick physical enclosure fabrication using computer-aided design. The platform is built on the .NET Micro Framework, which allows small devices to be programmed in the C# language and make use of Visual Studio’s programming and debugging tools.

1. What is .NET Gadgeteer? What type of tools necessary to do .NET Gadgeteer application? Hardware components: Main board (pl.: Fez Spider, Fez Hydra, Sytech NANO) USB Client DP module (“Red module”) >> Power supply and debug interface Miscellaneous modules for testing (eg.: sensors, displays, LEDs, input devices, connectivity etc.) The FEZ Spider Starter Kit includes all of these. Software components: Microsoft Visual Studio 2012 (free version: Visual C# 2012 Express) .NET Micro Framework SDK Manufacturer dependent drivers

2. FEZ Spider Starter Kit The FEZ Spider Starter Kit includes FEZ Spider Main board Display TE35 Module (3.5’’ touchscreen) USB Client DP module („Red module”) Camera module 2x Multicolor LED module 2x Button module Ethernet J11D module SD card module USB Host module Extender module Josytick module Ribbon cable

2. FEZ Spider Starter Kit FEZ Spider Mainboard EMX module: 14 types of .NET Gadgeteer compatible sockets that include: X, Y, A, C, D, E, F, H, I, K, O, P, S, T, U, R, G, B, Z Configurable on-board LED Configurable modules EMX module:

2. FEZ Spider Starter Kit Az EMX modul Az EMX is a System on Module (SoM), what contains the following hardware: ARM processor Flash memory RAM Ethernet etc. The EMX module runs the .NET Micro Framework and the GHI Electronics extension libraries.

2. FEZ Spider Starter Kit EMX module specification 72MHz 32-bit ARM7 processor 10-bit Analog output (capable of WAV audio playback) 4.5 MB Flash memory 4-bit SD/MMC memory card interface 16 MB RAM 6 PWM LCD controller OneWire interface (available on any IO) TCP/IP Stack SSL, HTTP, TCP, UDP, DHCP support Built-in Real Time Clock (RTC) with the suitable crystal Ethernet, WiFi driver and PPP (GPRS/ 3G modem), and DPWS Processor register access USB host OutputCompare for generating waveforms with high accuracy USB Device with specialized libraries to emulate devices like thumb-drive, virtual COM (CDC), mouse, keyboard RLP allowing users to load native code (C/Assembly) for real-time requirements 76 GPIO Pin Extended double-precision math class 2 SPI (8/16bit) FAT File System I2C Cryptography (AES és XTEA) 4 UART Low power and hibernate support 2 CAN channels In-field update (from SD, network or other) 7 10-bit analog input

3. Usage of the mainboard The main board A FEZ Spider main board contains14 slot for connecting the modules (socket). Reset button to reboot the system. USB Client Dual Power module gives the necessary power from USB or DC power supply

3. Usage of the mainboard The „Red Module” This module provides the power supply to the FEZ Spider Mainboard and its connected devices. It also enables to debug the program. Connect the red USB Device module to socket number 1 on the FEZ Spider Mainboard, which is the only socket that has the letter D – that is the only socket we can connect! When plugging or unplugging any module into a FEZ Spider socket, always make sure that power is not connected, by unplugging either end of the mini USB cable.

3. Usage of the mainboard Slot marks on the panels and the sensors (1) On the FEZ Spider Mainboard and on the back of each modules we can see marks that indicate how to connect them. There are the: slot number letter(s) to identify the compatibility of electrical and the communication connection.

3. Usage of the mainboard Slot marks on the panels and the sensors(2) On the left example module there are X and Y label we can connect to any socket that has X or Y label on it (one character should match). Make sure you only the same letter slots!!!!

4. Simple Gadgeteer application Task 1 Let’s make a Gadgeteer app which is blinking a led after a given button pressed.

4. Simple Gadgeteer application Solution for Task 1 Connect the “Red module” to the FEZ Spider Mainboard socket number 1 (that is the only socket labelled with ‘D’, do not use other). Now we can connect the further test modules (always check the labelling!). Warning!!!! When plugging or unplugging any module into a FEZ Spider socket, always make sure that power is not connected, by unplugging either end of the mini USB cable!

4. Simple Gadgeteer application Connecting the components (1) We need the following modules for the application: Multicolor LED Button

4. Simple Gadgeteer application Connecting the components (2) Connect the modules as shown below:

4. Simple Gadgeteer application Connecting the Starter Kit with PC Connect the red module to the USB cable then to the USB to the computer. On power the main board boots up, than starts the (previous) program on it. Via Visual Studio the new program can be deployed and it is possible to debug you program, as well.

4. Simple Gadgeteer application Creating new project (1) In Visual Studio 2012: File  New  Project…

4. Simple Gadgeteer application Creating new project (2) On the pop up window choose: „Visual C#/Gadgeteer/.NET Gadgeteer Application”. Give the project name in the „Name” textbox. Declare the location in the “Location” textbox.

4. Simple Gadgeteer application Creating new project (3) Choose the right Mainboard and the .NET Micro Framework version. (Mainboard: FEZ Spider, Framework version: 4.3).

4. Simple Gadgeteer application Creating new project (4) The new project file contains the choosen main board by default. From the Toolbox we can search and pick the desired components.

4. Simple Gadgeteer application Graphical designer (1) The deployment of the modules in the designer must meet with the real life realization. Drag and drop a Button and a MulticolorLED component from the Toolbox to the graphical designer.

4. Simple Gadgeteer application Graphical designer (2) First select the socket on the Button (yellowish rectangle). We can see the suggested (compatible) slots – green filled rectangles (we used slot no.5 in for the hardware, we do it in the designer so). Same way we connect the MulticolorLED to slot no. 6. Completed connection represented as a blue line. Now, the Visual Studio knows how our hardware looks like, it can help to make the coding part.

4. Simple Gadgeteer application Coding (1) In the Solution Explorer double click on the Program.cs source file.

4. Simple Gadgeteer application Coding (2) Opening the Program.cs source file the Program class is shown. It contains a Program Class and a ProgramStarted() method. It runs first after deployment (Start Debugging).

4. Simple Gadgeteer application Coding (3) The ProgramStarted() method contains the Debug.Print() call: We can also start the application pressing F5: The compiler translates our code to an executable code for the device. Then it uploads the program to the device. The device restarts and boots with our application. It calls the ProgramStarted() method. The Debug.Print() method call displays the “Program Started” message on the Output Window.

4. Simple Gadgeteer application Coding (4) Our designed configuration can be reached as objects in the program code. The objects are instantiated as they were placed in the graphical designer. Every component is representing one object (instance), and contains fields, methods, etc.

4. Simple Gadgeteer application Coding (5) Lets extend the ProgramStarted() method as below: To handle the button click (button component) the object need to subscribe to the ButtonPressed event. We add a button_ButtonPressed method as a parameter (+=, Press TAB twice). Pressing the button this method will be called. We can see the implementation on the next slide.

4. Simple Gadgeteer application Coding (6) Implementation of the button_ButtonPressed() method: As soon as the user presses the button module, this method will be executed, the sender parameter contains the references for the button and state holds the actual state of the button. By pressing the button the LED will continuously blink. Its color is given as GT.Color.Red.

5. Review questions What type of tools are necessary to create a .NET Gadgeteer application? What are the roles of the labels on Mainboard and on test modules? What are the steps to create new Gadgeteer project? What is the role ProgramStarted() method? How do you subscribe and implement the event for button press?