I am new in this arduino forum.. I want to make my new robot with arduino uno r3 board. I connect the arduino motor shield, connect 4 dc bo motors, Also connect 2 servos, via arduino software. But only motor 2 can runing and one servos moving , I want to run 4 dc motor at a time with servos. The following function i want to works the robot
How it works:
I wanted a simple robot to drive around avoiding obstacles using the ping sensor.
Ping to see if there is any obstacles in front.
If not, drive forward, while pinging.
If there is an obstacle, stop, and take a distance reading to the left and right of the robot.
Turn for a fixed period of time in the further direction.
Ping again: If still blocked, keep turning that direction. If not blocked, go back to drive mode.
There are basically three modes the robot can live in: Drive forward (mode 1), stop and scan (mode 2), and turn (mode 3). When driving, it can do three things: Drive straight, turn left, turn right.
I already have the hardware is configured like so:
The Adafruit Motorshield from bhashatech.com
The Arduino is powered off of 9 volt batteries .
The Motorshiled is powered off a separate 4xC battery pack (6v) on top of the robot.
The 4 DC Bo motors & servo are powered off the Motorshield.
The Ping))) sensor draws power form the Arduino.
so any body know this code then pm me or mail me firstname.lastname@example.org