Can I broadcast to SRF 02?

General & specific discussions on our Ultrasonic Rangers

Moderator: chris

Can I broadcast to SRF 02?

Postby freyr » Tue Nov 09, 2010 2:28 am

Can I broadcast to SRF 02 using i2c?

What I'm thinking of is an array of them with one ranging normally and the others 'fake' ranging (syncronized via broadcast).
freyr
 
Posts: 3
Joined: Tue Nov 09, 2010 2:08 am

Re: Can I broadcast to SRF 02?

Postby chris » Tue Nov 09, 2010 10:45 am

Yes that's possible, check out the documentation page section commands http://www.robot-electronics.co.uk/htm/srf02techI2C.htm

You need to set the primary SRF02 to a real ranging mode and then command the others to do a fake range.
User avatar
chris
 
Posts: 172
Joined: Wed Nov 08, 2006 3:13 pm
Location: Norfolk, England

Re: Can I broadcast to SRF 02?

Postby freyr » Tue Nov 09, 2010 6:24 pm

wonderful, it just that the docs never actually mention broadcasting so I was not sure.

Thanks
freyr
 
Posts: 3
Joined: Tue Nov 09, 2010 2:08 am

Re: Can I broadcast to SRF 02?

Postby Gerry » Wed Nov 10, 2010 2:12 pm

When you say "broadcast" are you referring to the I2C general call?
If so, I have to disappoint you. The SRF02 uses the PIC16F687 chip which does not support the general call. All SRF02's on the I2C bus have to be individually controlled.
User avatar
Gerry
Site Admin
 
Posts: 245
Joined: Wed Nov 08, 2006 12:28 pm

Re: Can I broadcast to SRF 02?

Postby freyr » Sat Nov 13, 2010 12:01 am

Thats a bit disappointing.

I guess you can loop through a set of these quite and work out the timing differences with reasonable accuracy so may this is a none issue.

IIRC you should be able to write to 10 of these with in 1 msec on a fast i2c bus of 400KHz+

but does the sensor support such fast communications? Can it use a 1MHz bus?
freyr
 
Posts: 3
Joined: Tue Nov 09, 2010 2:08 am


Return to Ultrasonic Sensors

Who is online

Users browsing this forum: No registered users and 1 guest

cron