RoamingWithPING
lobo
Posts: 100
I'am using two motor instead of servos,two ir pairs·for this project along with the parallax PING)))™ Ultrasonic Sensor.
can someone tell me or show me how to modify this program accordingly to use the motors?
right motor is connected to pin 3 and 4
left motor is connected to pin 0 and 1
the ultrasonic sensor is connected to pin 11
and the irs are connected to the following pins:
15 detecter
14 transmiter
10 detecter
9 transmiter
This is probably more info than necessary but here it is anyway.
Thank ya for yas help!
can someone tell me or show me how to modify this program accordingly to use the motors?
right motor is connected to pin 3 and 4
left motor is connected to pin 0 and 1
the ultrasonic sensor is connected to pin 11
and the irs are connected to the following pins:
15 detecter
14 transmiter
10 detecter
9 transmiter
This is probably more info than necessary but here it is anyway.
Thank ya for yas help!
Comments
Try to break your problem (wandering robot) into functional units (ultrasonic, IR, motor movement). Most of it has already been done with the demonstration programs for each of the sensors, and many examples on these fora for running motors). Tackle each problem individually to design a "function" for each item. Then you can mix and match them in a program so that you can concentrate on the "logic" necessary to call the "functions". Check out "The Elements of PBASIC Style" to get an idea of how programs should "look" to make them easy to understand and change.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·
·