Go Down

Topic: SumoBot help (Read 1 time) previous topic - next topic


I am using a ping with an official arduino motor sheild. I have a sparkfun magicians chassis. I am new to programing with arduino in the regular IDE. Could someone write a program incuding these items. Everytime I try a program I get errors on everything. I am only good with using digital outputs not inputs. Help would be much appreciated.  :)Thanks  XD


Post an example of your code and the errors so that we can see what is wrong.
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.


I have no clue because you did not post code.   However if you want to get the Ping sensor to work there is an example code that comes along with the IDE for that.

In the Arduino IDE menu click File -> Examples -> 06.Sensors -> Ping.

This code assumes your Ping sensor is hooked up to digital pin 7.  If it isn't then scroll to the line that says:  const int pingPin = 7;

Change the 7 to be the digital pin you connect the Ping sensor to.

As for the code for the Arduino Motor controller look at this tutorial:  http://www.instructables.com/id/Arduino-Motor-Shield-Tutorial/?ALLSTEPS


Nevermind I found a code that will work but thanks for the help

Go Up