Community Resources

A lot of people are using Open-USB-IO and many are happy to share their work,  thank you to all these people.  This page lists these resources mainly as links to web sites.

Why do people bother to make things Open Source? There are good reasons!

  • If it wont make you rich go for fame.  If you have a good idea and it will make money then go for it.  If it wont make money,  or if you have done nothing with it for 3 months,  then give it away and at least gain a  public profile.
  • You learn a  lot from getting your idea into a  form that is fit for use by other people.  This is very different to completing a university assignment where you just have to fool the marker at the point of marking.
  • You have benefited from Open Source software,  Open-USB-IO is only possible because of Open Source.  It would be nice to contribute back to community if you can.
  • A lot of other people will really appreciate what you have done.

Steve A has kindly done some work on using Visual Basic to interface with Open-USB-IO.

Before starting make sure that the ousb .exe file is installed and running correctly .from the Command line ( see https://pjradcliffe.wordpress.com).  These instructions were made in VB6 and Windows XP.
To a new form add a button and a textbox, in button 1 between private sub and End sub type in the following very carefully.

Dim A$: Dim B$
A$ = Text1.Text
B$ = "C:\Documents and Settings\ousb io portb " & A$
Shell B$

You may have to alter the path for your computer ie. “C:\documents and
files\Microsoft visual studio\VB98 etc.

Any entry between 1 and 255 in the textbox will light the leds on the board,  A 0 will switch the leds off.

That’s the easy bit . Reading the ousb instructions and putting the returned values to some good use in Visual Basic is a little trickier.
First off we have to create a .bat file .Right click anywhere and select new  > Text document. Open it up and type in the following:-

ousb io pinc>"ousbpinc.txt"

Save as ousbpinc.bat.  Now move this .bat file to the Windows \ System32 folder. When the file is run it will create a text document called ousbpinc , it will probably be in “my documents ” but you will need to find out where it is. Next on a new form add two buttons and two Labels

Right at the top of the form Type :-

Option Explicit
Dim filelength
Dim fileread

In button 1 click event , (you can call this button “send “) between private
sub and end sub type :-

Shell ("C:\Windows\System32\ousbpinc.bat")
In button 2 ( you can call this button "READ) Click event type :-
Dim A$: Dim B$
Open "ousbpinc.txt" for input as #1
filelength = LOF(1)
fileread = input(filelength, #1)
Label1.caption = fileread
A$ = fileread
B$ = Mid(A$, 7)
Label2.caption = B$
Close #1

Pressing button 1 “SEND” implements the .bat file .Pressing button 2 “READ”
reads the text file and displays the result !

Troy Boswell has an interesting site at   http://sites.google.com/site/troyboswellengineering/home it include tutorials for AVR Studio, programnming the osub board and more.  It has an interesting project turning the ousb board into a UART for PCs that only have USB.

For a comprehensive Open-USB-IO learning guide see https://sites.google.com/site/openusbboard/

Antoaneta Barbulescu : Here is an excellent tutorial about how to work with Open-USB-IO under Windows.  Contributed by Antoaneta Barbulescu from TAFE SA Regency Campus (thank you Antoaneta for releasing this).

Download tafe_sa_instructions here.
Download the .rom file here, a code vision version of the firmware.   You will need to remove the .gif extension after downloading this file.  See the main resources page for details.

Mac Version by Vince Frandina. The Mac version of the command line tool should be easy to compile from the source code,  but until now no one had got around to it.  Very sorry for the delays.  Thank you Vince for compiling the code and packaging it up so neatly.  As usual users will have to remove the .gif extension to use the file.  The dmg package can be downloaded from here.

Christopher Keen has kindly made a PCB for the STK-200 cable.  Even with the USB boot loader the STK-200 programming cable can be useful for programming blank chips and programming the ATMEGA32 with just your code and no USB code.  You can find the Protel file for the PCB here, see the resources section about how to download the file and remove the *.gif extension.

%d bloggers like this: