Society of Robots - Robot Forum

Mechanics and Construction => Mechanics and Construction => Topic started by: ksryan2 on March 22, 2010, 09:03:29 AM

Title: Using my Axon MicroController
Post by: ksryan2 on March 22, 2010, 09:03:29 AM
Hey, I am new to using micro-controllers and I have some programming experience, but I am having trouble with connecting ultrasonic sensors(SRF-05) to my Axon MCU. I am not sure what ports to use, nor am I sure as what type of wiring I should use to connect my sensors to the MCU. Can anyone give me ideas?

Thanks
Title: Re: Using my Axon MicroController
Post by: dellagd on March 22, 2010, 04:22:57 PM
is this the one you are talking about?
http://www.robot-electronics.co.uk/htm/srf05tech.htm (http://www.robot-electronics.co.uk/htm/srf05tech.htm)
 in that case, you could just use WebbotLib: http://www.societyofrobots.com/robotforum/index.php?topic=7787.0 (http://www.societyofrobots.com/robotforum/index.php?topic=7787.0)

PS that webbot lib link is just to a topic that says stuff on WebbotLib (keep in mind that info on the first page will have stuff about the first verson of WebbotLib) Here is the link to the download of WebbotLib, which includes documentation:
http://sourceforge.net/projects/webbotavrclib/files/ (http://sourceforge.net/projects/webbotavrclib/files/)
Title: Re: Using my Axon MicroController
Post by: RobotBits on March 22, 2010, 05:10:01 PM
If you haven't seen it already, the technical data for the SRF05 on the Robot Electronics website is quite useful.

The link is: http://www.robot-electronics.co.uk/htm/srf05tech.htm (http://www.robot-electronics.co.uk/htm/srf05tech.htm)

You don't need to use any ports as there is no serial interface on the SRF05. All you need to do is measure the length of a pulse output on the "echo" pin. The length of the pulse is proportional to the distance of the object.

A typical sequence might be:
1. send out a trigger pules to the SRF05,
2. wait for the rising edge on the echo pin,
3. start a counter running,
4. wait for a falling edge - stop the counter,
5. read the counters value and calculate the distance
Title: Re: Using my Axon MicroController
Post by: RobotBits on March 22, 2010, 05:37:23 PM
Just spotted this on the forum - should help loads! :)

    http://www.societyofrobots.com/robotforum/index.php?topic=5943.0 (http://www.societyofrobots.com/robotforum/index.php?topic=5943.0)
Title: Re: Using my Axon MicroController
Post by: Webbot on March 23, 2010, 12:19:56 AM
Yep, its supported by WebbotLib and Project Designer shows you what pins you need to connect.
Title: Re: Using my Axon MicroController
Post by: ksryan2 on March 23, 2010, 12:32:12 PM
Thanks to everyone who replied. I have it figured out i looked at all the links and each one helped, so thanks again. :)