Shop OBEX P1 Docs P2 Docs Learn Events
How is smart???? — Parallax Forums

How is smart????

naifnaif Posts: 2
edited 2009-12-15 17:18 in Robotics
please please help me for my project ....

i work with Boe-Bot and the project is to use ultrasonic sensor"ping" to avoid obestacle

so please what is the code that will help me to do this???the program that i used is the Basic Stamp2??


please help me as soon as possible

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-15 15:08
    As with almost all Parallax products, there are links on the webstore product page to documentation and sample programs. Go to the Parallax webstore page for the PING and you will see links for a program called "Roaming with the PING)))" and others. Go to Parallax's main page and search for PING and you'll get a link to the product page.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-12-15 15:42
    You should also select a more appropriate and descriptive subject for your messages posted here. It will help others to determine how they may be able to help you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    Check out the new Savage Circuits TV!
    ·
  • naifnaif Posts: 2
    edited 2009-12-15 15:54
    Thank you for your help

    i download the code but theres some parts i didnt understand it??

    PingServo PIN 14 ' PING))) Servo
    what is the job of the ping servo did i need it since i connect the Ping directly to the board of education.

    the Dr. ask us also to put compass and 433 MHz RF Transmitter along with the ultrasonic"Ping"? i connect all these component using the datasheet for all of them.but the problem that i face is to write acode that combine all these devices??

    so if you can advice me please help.
  • Mike GreenMike Green Posts: 23,101
    edited 2009-12-15 17:18
    The PING servo is there to scan the PING back and forth without having to move the whole robot. If you don't have that, then you will have to modify the program to move the whole BoeBot back and forth to scan the environment.

    You will have to learn enough Basic to modify the various sample programs to do what you want with the compass and RF transmitter. There are no ready-made programs that use these. This is a project for a course and part of the purpose of the course is to learn how to program and to learn how to modify and combine pieces of other programs to do what you want. We cannot do that for you. I suggest starting with the various introductory tutorials on the Stamp, "What's a Microcontroller?", "Robotics with the BoeBot", and "BASIC Stamp Syntax and Reference Manual". You might also have a discussion with your professor about your confusion and see if your professor has any other suggestions.

    Part of the design process is to decide what you want the various parts to do and to document your plan thoroughly. It helps to write down a series of rules ... "If this is true, then do that." or "If the PING detects an object closer than 10cm, then turn the BoeBot to the right approximately 90 degrees using the compass and go back to the main loop." Then you have a guide for what sort of programming changes you need to make.
Sign In or Register to comment.