program for my robot
Ηι, I do not have knowledge of planning and would want a program for my robot
'P0· right IR LED output
'P1· right IR sensor input
'P2· Sonar SRF05
'P3
'P4· right Sensor of contact
'P5
'P6· left Sensor of contact
'P7· left IR LED output
'P8· left IR sensor input
'P9
'P10·
'P11·
'P12· left servo motor
'P13· right servo motor
'P14· camera servo left right
'P15· camera servo up down
http://www.youtube.com/watch?v=SqHX2TADN98
http://www.youtube.com/watch?v=847jsbf9e0k
Post Edited (dikos) : 10/1/2007 10:07:05 AM GMT
'P0· right IR LED output
'P1· right IR sensor input
'P2· Sonar SRF05
'P3
'P4· right Sensor of contact
'P5
'P6· left Sensor of contact
'P7· left IR LED output
'P8· left IR sensor input
'P9
'P10·
'P11·
'P12· left servo motor
'P13· right servo motor
'P14· camera servo left right
'P15· camera servo up down
http://www.youtube.com/watch?v=SqHX2TADN98
http://www.youtube.com/watch?v=847jsbf9e0k
Post Edited (dikos) : 10/1/2007 10:07:05 AM GMT
Comments
The main concept you will need is that of a control cycle determined by the servos' need for a control pulse about every 20ms. Reading the various sensors is done in the extra time left in these 20ms cycles and the decision making (what to do next) is also done during this "extra" time. Consider adding a servo motor controller like the Parallax Servo Controller (www.parallax.com/detail.asp?product_id=28023) or the PWMPAL (www.parallax.com/detail.asp?product_id=28020) to take some of this timing constraint off the Stamp. You'll still need a "control cycle", but the rigidity of the 20ms timing won't be necessary.
Post Edited (Mike Green) : 10/1/2007 2:54:06 PM GMT
I would want a complete program.
please.
This forum is for helping people to help themselves. We generally do not provide people with complete programs but we do help people with programs they have written. Your best course of action now would be to read up on some of the excellent documentation out there and try to write the program to control the various parts of your robot. Many of the documents come in various languages, in case your native tongue is not English. (More than) half the fun of robotics is the learning process.
Gr,
Mightor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
| To know recursion, you must first know recursion.
| I reject your reality and substitute my own!
| - Adam Savage
Don't ready programs exist?
Translated[noparse]:http:[/noparse]//babelfish.altavista.com/
Besides, you haven't told us what you want to do with the BS2.
But the documentation at www.parallax.com is very good.