SR005 ultrasonic range finder

Hi All,

I am new to robotics and I am getting stuck! I am trying to use a SR005 ultra sonic range finder and a PICAXE 28 X 1 chip and project board to make a hazard avoiding robot.

I am having trouble programming the PIC using logicator (the manual is less than helpful) and how to use the data produced by the SR005 in avoiding obstacles.

 

Any help would be really appreciated

First Robot Builder’s Lesson:

Google everything!

I just Googled “SRF005 Logicator” and found more than enough to get you going.

Doing actual programming with a flowchart

isn’t likely to be something that will get a great deal of traction around here. Many of the regular members write actual software. It will be a different form of logic to manage to help you with “writing” the program in a flowchart.

I believe my flowchart will cycle once and give you either -1 or a distance stored in the variable cm.

I used http://www.robot-electronics.co.uk/htm/srf05tech.htm to generate my flowchart to a point.

Where are you stuck?

There is sample code for srf005 in open samples under the file menu. Did you find that?

If you double click on go forward or stop a box pops up showing you which pins are connected to your motor driver and the speed.

Or are you having trouble uploading this code?

I only built one pic bot

But it uses a ping sensor.  you can fine it and its flochart code here.https://www.robotshop.com/letsmakerobots/node/34111