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.
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. EDU05 Test procedure & programming in Visual Basic 2010 ( Version 1.0)
2. Testing the board Make a connection between the board and PC using the included USB cable. The LCD will display the message n the meantime the LEDs will light up in sequence. “Press button SW3 ... SW7 to show analog input values SW8 to exit”. I LD1 and LD2 are digital inputs.
Page 5
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. This shows you the value of the Press button 6 temperature dependent resistor (NTC).
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! EDU05 Test procedure &...
& & 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.
3. Testing the test programs 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 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.
& & Start the “Test & diagnosis” software and click the “Connect” button to connect the board with the software. 1 Connect and Disconnect buttons to connect/disconnect the board with the PC via the USB cable 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...
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 * •...
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:...
Page 13
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). EDU05 Test procedure & programming in Visual Basic 2010 ( Version 1.0)
Page 14
STEP9 In the Solution Explorer click the “View Code” button to show the code editor. STEP10 Click the “Debug” button to run the code. EDU05 Test procedure & programming in Visual Basic 2010 ( Version 1.0)
Page 15
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".