Pages: [1]   Go Down
Author Topic: hi  (Read 306 times)
0 Members and 1 Guest are viewing this topic.
Wai
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Building the world from robot
View Profile
hi
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi friends
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 sj28550@gmail.com


* ArduinoUnoFront.jpgRs400shop.rabtron.co.za.jpg (47.12 KB, 600x448 - viewed 6 times.)

* freeduinomotorshield.jpg (64.25 KB, 300x300 - viewed 6 times.)

* dfrobot4wdpackagedetails.jpg (47.47 KB, 500x375 - viewed 6 times.)
Logged

raj

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
so any body know this code then pm me
That isn't how this forum works.
Logged

UK
Offline Offline
Shannon Member
****
Karma: 222
Posts: 12528
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Note that when you use the servo library it disables analog output on some pins. If those pins are needed to control a motor shield then the servo would stop that working. I suggest you look at the servo library documentation to understand which pins are affected, and compare that against the pins you're using for your motor control.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Atlanta, USA
Offline Offline
Edison Member
*
Karma: 53
Posts: 1774
AKA: Ray Burne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Congrats on getting your Arduino with so many accessories... sounds great.

Ping (ultrasonic) sensors are explained here:
http://www.seattlerobotics.org/encoder/may97/sonar2.html

My suggestion would be to google "Arduino" plus whatever term you want explained... for example, the above link came from "Arduino Ultrasonic Robot" ... lots of info out there.

For code, you may find bits and pieces that you can stitch together in Frankenstein fashion to develop what you want.  However, many large cities have Arduino robot clubs.  You can always join a virtual club, forum, and will probably have access to lots of software.

However you proceed, be patient and explore ONE sensor/device at a time until you fully understand that one... then expand your knowledge by adding the second, third, etc.  You will likely encounter 'conflicts' with some devices and it will take time to research and fix issues.

Good luck,

Ray
Logged

Pages: [1]   Go Up
Jump to: