1. WHAT S ON THE BOARD?... 3 2. TESTING THE BOARD... 4 3. TESTING THE COMMUNICATION WITH THE PC... 6



Similar documents
Installation Instructions

Tutorial: Configuring GOOSE in MiCOM S1 Studio 1. Requirements

Software Manual LSeries Manager V1.2 Software Manual June 18, LSeries Manager 1.2. Software Manual

Lab Experiment 1: The LPC 2148 Education Board

K8025 VIDEO PATTERN GENERATOR. Check the picture quality of your monitor or TV, ideal for adjustment or troubleshooting.

Doc. no.lec-om PRODUCT NAME Controller setting kit install manual (bundled with CD-ROM) MODEL/ Series LEC-W2

Leaf River Outdoor Products Vibrashine, Inc. P.O. Box 557 Taylorsville, MS (601) FAX (601)

TAB G XENTA 8c 8 3G TABLET FIRMWARE UPGRADE INSTRUCTIONS

MAINS VOLTAGE DETECTOR K7101

Step-by-Step Setup Guide Wireless File Transmitter

SoundLAB Software Download Software from the Bogen website:

Work with Arduino Hardware

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

IGSS. Interactive Graphical SCADA System. Quick Start Guide

AVR Butterfly Training. Atmel Norway, AVR Applications Group

Colorfly Tablet Upgrade Guide

CROWNPEAK C# API SYSTEM CONFIGURATION GUIDE VERSION 3.0.1

Monitoring Network DMN

TekBots TM Oregon State University. usb_cam User Guide. Version 1.0 By Adriaan Smit OSU EE Graduate Student

SubCue Analyzer Software - Introduction

Yamaha 01V96 Version2 Upgrade Guide

How-To Set Custom Scale Format for FedEx Ship Manager

Service & Support. How can you establish a connection between an S PLC and SIMATIC NET OPC? S PLC, SIMATIC NET OPC.

Health Monitoring Demo for ice40 Ultra Wearable Development Platform User Guide. UG103 Version 1.0, September 2015

PN-L702B LCD MONITOR TOUCH PANEL DRIVER OPERATION MANUAL. Version 2.1

IX Support Tool Setting Manual

Workshop 7 PC Software - Tracker

Firmware Update Instruction Manual

OpenScape Office HowTo

LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Windows XP.. ELITE Firmware Update procedures.. v1.41

Quick Start Guide RIVA/Athena Sea-Doo ECU

mybullard Personal Control Panel User Guide

5. Tutorial. Starting FlashCut CNC

Database Studio is the new tool to administrate SAP MaxDB database instances as of version 7.5.

Lab Creating a Logical Network Diagram

showtime user guide let people see what you re talking about why showtime? using showtime getting started

How To Upgrade A Yarvik Gotab Tablet To Android 4.0 (For Android) (For Ipad) 4Th Generation (For Microsoft) 4S) 4G (For Zemmer) 4

Windows XP Home Edition / Windows XP Professional

Use your mobile phone as Modem loading Videos

Tutorial for MPLAB Starter Kit for PIC18F

Migrate from Outlook Express to Windows Live Mail

Installing and Using No Machine to connect to the Redhawk Cluster. Mac version

To download and install directly to your phone

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

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Microcontroller Display Interfacing Techniques

RTI Integration Release Notes

VMware Horizon FLEX User Guide

POCKET AUDIO GENERATOR K8065

Download and Installation Instructions. Java JDK Software for Windows

IDDERO HOME SERVER. Quick start guide

Dr Robot C# Advance Sputnik Demo Program

EMBEDDED C USING CODEWARRIOR Getting Started Manual

DRIVER INSTALLATION PROCEDURE WINDOWS 7 (32 or 64 BIT) N-Com Wizard 2.0 (and higher)

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

Xbox360 Controller Plugin By Lee Davis

Fiery Clone Tool For Embedded Servers User Guide

RemoteWare Software Manager

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977) 4 rows x 20 characters Backlit (#27979)

DS2438EVKIT+ Smart Battery Monitor Evaluation Kit

Network/Floating License Installation Instructions

Chapter 3 Create an EasyBuilder Project... 2

Pulse Redundancy. User Guide

STIM202 Evaluation Kit

User Manual. 2 Bay Docking Station

EDIUS 5 Update Instruction in Windows 7

Downloading ebooks to a PC & Transferring the ebook to a Sony Reader or Nook

Connecticut Hazardous Waste Manifests Database

RGK60 RGK50 RGAM10 RGAM20 RGAM4 Generator set control units

Elektro GmbH & Co. KG 126xxx 450 FU-HS 128 (Rev01_120529)

Plena Voice Alarm System Firmware update

Arduino Lesson 0. Getting Started

Practice Fusion API Client Installation Guide for Windows

Installation Guide for RadioLabs USB Wifi Antennas/Adapters

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

K6002 TEMPERATURE CONTROLLER. Specifications

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

ABB i-bus EIB Universal Interfaces US/U 4.2 US/U 2.2

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design

3. USB DRIVER Installation of USB driver Driver for Infinity SD Data Logger. INFINITY Series Acquisition Tools Manual

2 Installation Explanation

DTAP3000 DTSX3000 Control Visualization Software LAS2.0 Data Conversion Guide

USB Flash Memory TransMemory-EX II TM

The VB development environment

PRODUCT MANUAL LUMENTO X4 LED. LED Controller ZN1DI-RGBX4. Program version: 1.0 Manual edition: a

Control Performance Analyser 3.0. Installation Instruction

Flip Video Digital Camcorder Startup Guide and Making Movies Tutorial Trevor Oakley, Teen Services Librarian, Saratoga Springs Public Library

How To Program An Nxt Mindstorms On A Computer Or Tablet Computer

Model DFG-RSA Configurable Load Cell Adapter

Music Data Management Software Data Manager 6.1 User s Guide

S7 for Windows S7-300/400

The FlexiSchools Online Order Management System Installation Guide

Introduction to the use of the environment of Microsoft Visual Studio 2008

Multi-Touch Ring Encoder Software Development Kit User s Guide

ICS Technology. PADS Viewer Manual. ICS Technology Inc PO Box 4063 Middletown, NJ

Getting TechWizard Version 4 Started Using Excel 2007 or Higher

Figure 1 TOE2-IP FTP Server Demo Environment Setup on KC705

Quick Guide: Troubleshooting Info from SNAP PAC Systems

Transcription:

Test Procedure How-to Manual

CONTENTS General information 1. WHAT S ON THE BOARD?... 3 2. TESTING THE BOARD... 4 3. TESTING THE COMMUNICATION WITH THE PC... 6 Test & examples software 1. DOWNLOAD THE TEST PROGRAMS... 7 2. INSTALL THE TEST PROGRAMS... 7 3. TESTING THE TEST PROGRAMS... 8 3.1 TESTING WITH THE GRAPHICAL DEMO... 8 Showing the binary value of the pressed button... 9 3.2 TESTING WITH THE TEST & DIAGNOSE DEMO... 10 What we see?... 10 Adding / clearing text on the LCD-display... 10 Disable / Enable the Startup-demo... 11 HOW TO : Programming in Visual Basic 2010 Express edition HOW TO : PROGRAMMING IN VISUAL BASIC 2010 EXPRESS EDITION... 11 2

GENERAL INFORMATION This manual teaches you how to master the USB connection with the PC. Search for reference code on YouTube. 1. What s on the board? All the inputs and outputs are on the board. 3

2. Testing the board Make a connection between the board and PC using the included USB cable. The LCD will display the message Press button SW3... SW7 to show analog input values SW8 to exit. In the meantime the LEDs will light up in sequence. LD1 and LD2 are digital inputs. Press each button and check the LCD readout to check if the board functions correctly. Press button 1... 7 one after the other. When you press a button, the corresponding LED lights up, and the LCD displays the corresponding value Press button 1 Press button 2 Press button 3 Press this button to read the value of potentiometer 1. When you adjust the potentiometer, the value on the display changes. Potentiometer 1 4

Press button 4 Press this button to read the value of potentiometer 2. When you adjust the potentiometer, the value on the display changes. Potentiometer 2 Press button 5 Press this button to read the temperature in the room from the temperature sensor. Press button 6 This shows you the value of the temperature dependent resistor (NTC). The resistance of this type of resistor varies with the temperature. When the temperature goes up, the value of the resistor goes down. Press button 7 This shows you the value of the light dependent resistor (LDR). If you cover the resistor the value will change. More light will decrease the value of the resistor. This test shows us that the board is functional. The next test will show you how to communicate with the PC. 5

3. Testing the communication with the PC Press button 8 to start the communication with the PC. The LCD shows the message CONNECTING. When the connection has succeeded, the display indicates USB CONNECTED. YOU MUST PRESS BUTTON 8 TO BE ABLE TO COMMUNICATE WITH THE PC! 6

TEST & EXAMPLES SOFTWARE We have 2 types of programs: a graphical demo and a Test & Diagnosis program. 1. Downloading the test programs Download the software package from the EDU05 product page (www..) Graphical demo Test & Diagnosis 2. Installing the test programs Extract the files in a folder on your drive. The folder EDU05 and several subfolders will be created: C:\EDU05\ subfolder: \DLL\ contains the dynamic link library file EDU05.DLL. This file is required for every program, this file must always be included. In your current projects folder, it can be handy to copy this file to your \windows\system32 folder. \GraphicalDemo\ Contains the graphical demonstration and test program. See chapter 4. \TestDiagnosis\ \EDU05_VB2010_tutorial\ Contains the test & diagnosis (numerical version) demonstration and test program. Step-by-step manual: how to make your first program in Visual Basic \Examples\EDU05DemoVB_2008\ Example 1 in Visual Basic 2008 \Examples\EDU05DemoVC#_2008\ Example 1 in C# \Examples\EDU05DemoVC_2008\ Example 1 in Visual C 2008 \Examples\EDU05Demo2VB_2008\ Example 2 in Visual Basic 2008 \Examples\EDU05Demo2VC#_2008\ Example 2 in C# \Examples\EDU05Demo2VC_2008\ Example 2 in Visual C 2008 7

3. Testing the test programs 3.1 Testing with the Graphical Demo The graphical demo reproduces an image of the board on your screen. First click the Connect button to connect the board with the software. Next, perform the same test as described in chapter 2 Testing the board. Because the board and the PC communicate, you can see the exact same on your screen as while testing the board itself. Button 1 pressed Button 2 pressed Button 3 pressed Button 4 pressed 8

Button 5 pressed Button 6 pressed Button 7 pressed Button 8 pressed You can click the buttons on the screen and see the result on the board. Remark: You need to press and hold the buttons on the board to see the result. The buttons on the screen have a toggle function: click once to switch on, click again to switch off. Showing the binary value of the pressed button When you switch on the Show binary value of button pressed option, the PC screen and board will indicate the binary value of the clicked button. In the example above button 5 was clicked. If all tests were successful, you can disconnect the board by clicking the Disconnect button. Then continue with the next test. (testing with the test & diagnosis demo). 9

3.2 Testing with the test & diagnosis demo Start the Test & diagnosis software and click the Connect button to connect the board with the software. What is on the screen? 1 Connect and Disconnect buttons to connect/disconnect the board with the PC via the USB cable 2 Digital in/output selection Input selected: each time you push a button on the board, it is shown on the screen Output selected: each action you make in the software screen is shown on the board 3 Analog In The bars indicate changes in the values of the potentiometers, LDR, NTC and temperature sensor on the board. 4 PWM Out This acts like a regulation of an output value. (1) changes the LCD contrast, and (2) changes the LCD brightness. 5 Set All Digital / Clear All Digital The digital is represented by the LEDs on the board. 6 Disable the Start-up demo of the board 7 Adding or erasing text on the LCD-display Adding / erasing text on the LCD-display Clear the text on the display Type your text here Set the position of the text Show the text on the display 10

Disabling / Enabling the Start-up demo Disable the demo: Switch on Disable Startup Demo Disconnect the software Disconnect the USB cable of the board. When you re-connect the USB cable you ll see that demo has been disabled. Enable the demo: Connect the USB cable with the board & PC * Run the Test & diagnosis software Connect the software Switch off Disable Startup Demo * Because the start-up demo is disabled, you don t need to press button 8 on the board to start the communication with the PC. 11

HOW TO: PROGRAMMING IN VISUAL BASIC 2010 EXPRESS EDITION STEP 1 Download and install Visual Basic 2010 Express edition. You can download the software from here: http://www.microsoft.com/visualstudio/en-us/products/2010- editions/visual-basic-express STEP2 If you are not experienced in Visual Basic programming, please check these links: Visual Basic Language Reference: http://msdn.microsoft.com/en-us/library/sh9ywfdk.aspx Getting Started Tutorials: http://msdn.microsoft.com/en-us/library/dd492171.aspx Visual Basic: http://msdn.microsoft.com/en-us/library/2x7h1hfk.aspx Book "Microsoft Visual Basic 2008 Express Edition: Build a Program Now!": http://www.microsoft.com/learning/en/us/book.aspx?id=12282& STEP3 Download and extract the EDU05 software package from: http://www.velleman.eu/support/downloads/?code=edu05 STEP4 Connect the EDU05 card and press button SW8 to select USB communication. STEP5 Start Visual Basic 2010 Express edition. STEP6 Click "Open Project". 12

STEP7 Locate and select "Read_Button.sln" and click Open. STEP8 In the Solution Explorer double-click Form1.vb to show the form editor (if not visible). 13

STEP9 In the Solution Explorer click the View Code button to show the code editor. STEP10 Click the Debug button to run the code. 14

To read the status of the buttons you can use the function ReadAllDigital(). This function returns a 32 bit integer. The eight lowest bits of this return value represent the status of the eight buttons. If you press a button, the corresponding bit is set to "1". You can use Visual Basic's And operator to mask the other bits and check the value of an individual bit. Example: If buttons SW1, SW2 and SW8 are pressed, the eight last bits of the value are 10000011. In this code example the button status value is read to integer i. Every bit is checked if it is "1" or "0". If the bit is "1", it means the corresponding switch is pressed. The text "DOWN" is displayed for this button. Dim i As Integer i = ReadAllDigital() ' check the individual bits of i to detect the pressed buttons If (i And 1) > 0 Then Label3.Text = "SW1 = Pressed" Else Label3.Text = "SW1 = Released" If (i And 2) > 0 Then Label4.Text = "SW2 = Pressed" Else Label4.Text = "SW2 = Released" If (i And 4) > 0 Then Label5.Text = "SW3 = Pressed" Else Label5.Text = "SW3 = Released" If (i And 8) > 0 Then Label6.Text = "SW4 = Pressed" Else Label6.Text = "SW4 = Released" If (i And 16) > 0 Then Label7.Text = "SW5 = Pressed" Else Label7.Text = "SW5 = Released" If (i And 32) > 0 Then Label8.Text = "SW6 = Pressed" Else Label8.Text = "SW6 = Released" If (i And 64) > 0 Then Label9.Text = "SW7 = Pressed" Else Label9.Text = "SW7 = Released" If (i And 128) > 0 Then Label10.Text = "SW8 = Pressed" Else Label10.Text = "SW8 = Released" STEP11 When you are finished evaluating this project, you can close it. Next, open the project Set_LED to study how to turn LEDs on and off on the EDU05 board. Velleman NV Legen Heirweg 33 9890 Gavere, Belgium www.velleman.eu 15