Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help needed for programming the SRF08 sonar sensor

Status
Not open for further replies.

gandalf_be

Junior Member level 1
Joined
Jun 12, 2003
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
193
Hello all,

I'm currently busy to build my first robot and i'm trying to program the SRF08 sonar sensor. This sensor communicates with the microcontroller through the I2C bus .
As development platform i'm using a C8051F120 kit from cygnal.
I also taking my first steps in C so i have a lot to learn .

Is there anybody that could provide me with some sample code in C for this sensor connected to an 8051 like processor.
My curent (self written) software is not working .
i can provide it if necessary.

Regards,

Gandalf
 

where do you find this component?
whats the manufacturer?
im looking for something similar....
 

Hi
I searched in yahoo found this:

**broken link removed**
 

Hi again

Below is the detailed sch and a c code for it.


hxxp://www.robot-electronics.co.uk/images/srf08schematic.gif

hxxp://www.robot-electronics.co.uk/files/srf08.c
 

Hello All,

Thank you for the reply's but i already had that information.
I little bit my fault i should mention it in my previous mail.
Al these examples are for another kind of ucontroller and most of them use bit banged routines to implement the I2C bus.
I bought these sonar module on the internet (can 't remeber where, have to ask my friend)

I was looking for an example in combination with a 80c51 microcontroller .
The kit from cygnal has an hardware I2C bus.

i will upload my self written code with comments (not working at the moment ).
I wrote these code based on the examples on those sites that you send me but it doesn't seems to work.

My stop condition is not working although the stop flag is set.

Feel free to look at code and send me some comments .
As i mentioned in my previous mail i'm new in C.

regards,

Gandalf
 

Hello Again ,

It looks like there was no attachment in my previous mail.Here it is
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top