Visual Basic and SRF05

General & specific discussions on our Ultrasonic Rangers

Moderator: chris

Visual Basic and SRF05

Postby efrag » Wed May 21, 2008 10:51 am

Hi, I'm looking for an example or source code in VB to measure distance with two SRF05 and I2C-USB module.
Thanks
efrag
 
Posts: 5
Joined: Fri Sep 21, 2007 8:14 pm

Re: Visual Basic and SRF05

Postby Gerry » Wed May 21, 2008 12:11 pm

efrag wrote:Hi, I'm looking for an example or source code in VB to measure distance with two SRF05 and I2C-USB module.
Thanks

Have a look at the GPIO14
http://www.robot-electronics.co.uk/htm/gpio14tech.htm
This will interface the SRF05's which do not have I2C, to the USB-I2C module. There is an example on that page for visual C via an RF04/CM02 (same command set as USB-I2C), which will at least show you what commands to send. Our examples page:
http://www.robot-electronics.co.uk/acatalog/examples.html
contains a VB example for talking to a 24C02 EEPROM via the USB-I2C. You should be able to get it up and running by studying these.

Alternatively, you could chose an I2C sonar, such as the SRF02, SRF08 or SRF10.
User avatar
Gerry
Site Admin
 
Posts: 249
Joined: Wed Nov 08, 2006 12:28 pm

Postby efrag » Thu May 22, 2008 9:08 pm

Thanks Gerry BUT
:( I know nothing about C or Visual C :oops:
The whole concept is to measure distance using SRF05 and a VB application. I had one USB-I2C module that's why I try to solve the problem with that, but it seems more complicated now. What if I use a PIC m/c instead I2C, like 16F877 :?: :?: and max232 for serial communications? Has anyone done it?
efrag
 
Posts: 5
Joined: Fri Sep 21, 2007 8:14 pm


Return to Ultrasonic Sensors

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron