CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

I need help No.2 on srf08 sensors

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
znses



Joined: 15 Apr 2011
Posts: 9

View user's profile Send private message

I need help No.2 on srf08 sensors
PostPosted: Sun Apr 24, 2011 9:24 am     Reply with quote

I have 3 srf08 sensors and I will place them: one pointing forward.

One on the right and one on the left.

The forward sensor will check if the range is between 1.5 and 2 meters.

Then It will give an audio command.

Then if the range is below 1.5, it will check the right and left sensors

And will give the command to the one that has the largest distance in order to avoid obstacle if any.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Sun Apr 24, 2011 10:51 am     Reply with quote

This sounds like some kind of mobile robot device. Are you looking for suggestions on how to do parts of it? Give us specific questions and we may be able to give specific answers.

If you know what PIC you are using, please tell us. Also is this a single hobby project, or are you designing 100,000 toys for sale at Christmas, or is it an emergency robot to pull firefighters out of burning buildings and if it fails people will die.
_________________
The search for better is endless. Instead simply find very good and get the job done.
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sun Apr 24, 2011 12:48 pm     Reply with quote

First problem you have, according to the mfr. is to reprogram 2 of them to new I2C addresses if on the same buss.

The rest is simple read the datasheet, cut code, try it, see what happens and repeat as requirde to get your program to do what you want.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group