Programming for USB Hardware Interfacing

USBIO, USB I/O, USB

Introduction:

Hardware interfacing exists in computing systems between many of the components such as the various buses, storage devices, other I/O devices, etc. A hardware interface is described by the mechanical, electrical and logical signals at the interface and the protocol for sequencing them.

By understanding the programming for USB hardware interfacing you can build data-loggers, robotics interfaces, custom interface hardware, etc. There is a niche segment in the engineering industry that requires engineers or programmers to know the programming methods and techniques in interfacing to various kinds of hardware. IT background programmers may not have knowledge in hardware, while engineering background engineers may not have good command in programming. This short course is aimed to fill the missing skill set to allow engineers and programmers to write software programs that involve hardware interfacing.

Microsoft Visual Basic is the most popular programming languages used in windows programming in Microsoft Windows platform. This course will provide a solid foundation in Visual Basic programming techniques in general. USB hardware interface is described for attendees to understand the working principal, and access methods of these interfaces. Hands-on sessions are followed to learn and practice writing codes for communicating through this interface.



Course Highlights:

This is a 2 days comprehensive hands-on experience in code development and compilation to introduce user on the essential knowledge to understand hardware interfacing for Windows based PC. Some examples of real hardware will be demonstrated to the class as well.



Who Should Attend:

This hands-on course is designed for beginner users who are involved in software programming that requires hardware interfacing. It is especially useful for those who wish to understand and gain essential knowledge on the fundamental of hardware interfacing such as students, lecturers, software engineers, programmers, IT managers, researchers, and scientists. Courses begin with zero-background assumption.



Course Benefit:

Upon the completion of the course, the participants will gain a comprehensive understanding of:

  • Visual Basic programming basics
  • USB communication programming



Course Outcome:

  • Able to use Visual Basic programming language.
  • Able to control hardware from Visual Basic.
  • Able to interface USB with hardware.



Course Methodology:

The participants are taught VB programming techniques in classroom setting, followed by hands-on programming for each module taught. Microsoft Visual Basic 2010 Express Edition will be used for the entire module. Theories and practical exercises are equally emphasized.

Course Duration: 2 days, 9am – 5pm



Course Outline:

Module 1: Getting Started with Visual Basic 2010 (1 Days)

Morning Session

  • Visual Basic 2010 Express Edition Installation
  • Hello World example
  • Working with controls
  • Writing the code
  • Mathematical operations
  • Practical 1 – Design a simple calculator

Evening Session

  • Controlling program flow
  • Looping
  • Basic functions
  • Practical 2 – Design a simple system based on user input



Module 2: Hardware Interfacing using USBIO (1 Day)

Morning Session

  • Getting started with USBIO V1.1
  • Controlling LEDs
  • Reading switches state
  • ON/OFF switching relay circuit
  • Programming 7-segment display
  • Practical 3 – Display count from 0 to 9 at 7 Segment.

Evening Session

  • Practical 4 – Blinking LEDs
  • Practical 5 – Running Light
  • Practical 6 – LEDs patent depends on input switch



Cost of Training:

RM300/pax (conducted in UiTM Pulau Pinang: minimum of 6).

>Training kit is borrowed from us.

> CD/DVD consist of training material is given.

RM1600 in Honorarium (based on RM100/hours x 8 hours x 2 days) + 2 Night of Accommodation & Travel.

>Training kit is borrowed from us (10 units only).



Cost of USBIO Kit (DIY):

> RM100 per unit.



How to Attend, Where and When:

Contact us via:

  • E-mail: samsuls@ppinang.uitm.edu.my
  • Phone: 04-3823359
  • Fax: 04-3822819



Instructors:

SAMSUL SETUMIN (M.Eng, Lecturer)

Faculty of Electrical Engineering,

Universiti Teknologi MARA (UiTM) Cawangan Pulau Pinang,



Instructor’s Biodata:

Click Here !!

He obtained B. Eng (Hons) in Electronic Engineering from University of Surrey in 2006. He continued his MEng study in Electrical - (Electronic & Telecommunication) at Universiti Teknologi Malaysia and graduated in 2009. His research interests are in computer interfacing, GSM communication and embedded system based on microchip's microcontroller for communication and smart system. He has few years teaching experience from three difference university that are UTeM, UTHM and UiTM. He was a test engineer at Agilent Technologies, Penang. He has more than 7 years of experience using parallel port interfacing circuit for research, and project and now exploring USB interfacing technique.

[Research Interest: Video/Audio/Image Processing, Hardware Interfacing, Embedded System].

READ MORE - Programming for USB Hardware Interfacing

Getting started with VBA in Excel 2007

 

  • Go to Start Menu –> Programs –> Microsoft Office –> Microsoft Office Excel 2007.
  • Once the windows for excel application is opened. Click image  and click button Excel Options as below.

image

  • Under Popular menu, tick “Show Developer tab in the Ribbon” as shown below to enable developer tab and then click OK.

image

  • Developer tab is shown as below.

image

  • Click the “Developer tab” to see the sub menu and then click Visual Basic. This is the VBA.

image

  • Once you click the visual basic icon above, another windows named “Microsoft Visual Basic – Book1” will be prompted out as shown below to start programming with VBA. You can also see VBAProject(Book1) under “Project” property windows.

image

  • To create a form, go to menu Insert and click “UserForm”.

image

  • You can see the UserForm1 and Toolbox windows as shown below.

image

  • Look at toolbox under controls icons, click CommandBotton icon and click anywhere at UserForm1 and drag right-down to create a command button as shown below.

image

  • Double click CommandButton1 and type the code in bold below.

Private Sub CommandButton1_Click()
    MsgBox ("Hello World")
End Sub

  • Click run to prompt out your first user form windows.

image

  • From the UserForm1 windows, click on CommandButton1 you have created earlier and you will see a message box displaying “Hello World”. Congratulation !!!

image

READ MORE - Getting started with VBA in Excel 2007

Convert integer to binary, integer to hex and vice versa

 

Dim i As Integer = 128
Dim binary As String
Dim hex As String
Dim binaryToInt As Integer
Dim hexToInt As Integer


binary = Convert.ToString(i, 2)
hex = Convert.ToString(i, 16)
binaryToInt = Convert.ToInt32(binary, 2)
hexToInt = Convert.ToInt32(hex, 16)

READ MORE - Convert integer to binary, integer to hex and vice versa

Lab Schedule ELE350 Nov–Mac 2012

 

View the schedule HERE

READ MORE - Lab Schedule ELE350 Nov–Mac 2012

Related Posts Plugin for WordPress, Blogger...
 
 
 

Total Pageviews

Advertisements

Cool Text: Logo and Graphics Generator
Home