Loading...
Pages: [1]   Go Down
Author Topic: SumoBot help  (Read 127 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
Edison Member
*
Karma: 49
Posts: 1436
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

Offline Offline
Jr. Member
**
Karma: 0
Posts: 57
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
Print
 
Jump to: