November 13, 2007
Using SRF02 ultrasound ranger in VB

Lately I have been working with ultrasound rang finders. I’m using the very inexpensive Devantech SRF02 (approx 14 €). This ranger has an I2C interface ideal for microprocessors such as the Arduino or the BASIC Stamp. If you want to connect it directly to a PC you will need some sort of interface available on a standard computer. I´m using the Devantech USB-to-I2C board. This board is tiny, priced at approx. 27 € and can interface up to 16 ultrasound rangers. I’m working in VB.net (VS2005) and had to do some code-twisting to get it to work. You can download my srf02.vb module as a ZIP-file. Just add this module to your VS2005 project and call the function like this:
sonarping(comport As String, sf02_address As Byte)
The function returns the distance in centimeters as an integer. The default address of the SRF02 is &HE0.
Download the SRF02.vb module
Labels: devantech, download, freeware, programming, software, sonic ranger, srf02, VB, VS2005
March 12, 2007
LPT Freeware

Last week I was doing a workshop at the Art Academy of Jutland. We need a simple way of controlling motors and toys from a remote webbrowser. We ran a server on an old inexpensive PC with a printerport, and I wrote a small commandline tool for switching pins on the port on and off. You can download this extremely simple program. The program is freeware and a small text file with instructions is included – but I don’t offer any support .
Labels: download, freeware, hardware, physical computing, software
![]() |
