Pages: [1]   Go Down
Author Topic: SumoBot help  (Read 387 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.  smileyThanks  smiley-lol
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4255
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Post an example of your code and the errors so that we can see what is wrong.
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Jr. Member
**
Karma: 2
Posts: 69
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: