Author Topic: Programming an avoiding obstacle Tamiya Tank  (Read 1053 times)

0 Members and 1 Guest are viewing this topic.

Offline KevinPearsonTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Programming an avoiding obstacle Tamiya Tank
« on: November 03, 2011, 11:24:27 PM »
Hello I'm a beginner & new to the code programming. If sum1 could help, I have a Tamiya Tank with a ping ultrasonic sensor, a servo, and two dc motors running independently. Also an arduino uno with 0022 software and a adafruit motor shield. I'm using M2and M3 port for my two dc motors.  My problem is finding code with all three tied in on one code instead of some of this and that. I for some reason can't get my ping(((( to relate to my servo then to my motors. If som1 have any code I could use I would be very appreciative. THANKS, som1 PLEASE HELP ME!!!! :'(

Offline wecool44

  • Jr. Member
  • **
  • Posts: 9
  • Helpful? 0
Re: Programming an avoiding obstacle Tamiya Tank
« Reply #1 on: December 05, 2011, 06:45:13 PM »
I cannot give you any code, but all you have to do is check if there is something x units away, and if there is, then do this. Replace this with what you want the code to be.

 


Get Your Ad Here