View Full Version : SRF235 code

02-06-2005, 01:52 AM
I have just received my SRF235 Ultrasonic range finder from Devantech Ltd (http://www.robot-electronics.co.uk)
Does anyone know·where to find·sample code for it?
Devantech ltd has not published·any examples yet.


Jim McCorison
02-06-2005, 04:45 AM

Parallax sells the Devantech SRF04. Don't know how similar it would be to deal with codewise, but there is sample code at www.parallax.com/detail.asp?product_id=28015 (http://www.parallax.com/detail.asp?product_id=28015)


Jon Williams
02-06-2005, 06:12 AM
The SRF235 is an I2C device.· I don't have one, but I have used the SRF-08 (also I2C); the attached program should get you started -- if you're using a BS2 (or BS2e or BS2sx).· If you have one of the BS2p-family modules, use I2COUT and I2CIN.

Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA