Thursday, October 20, 2016

Filled Under: , , , , , , , ,

Basic Arduino Autonomous Sumo Robot Tutorial

Arduino Arduino UNO R3 Asumo Auto Sumo Autonomous Sumo IR Sensor Singapore Robotics Games SRG Ultrasonic Range Finder


Basic Low Cost (<RM300) Arduino Autonomous Sumo Robot

This autonomous is suitable for standard autonomous sumo robot competition which use black color game field with white color boundary.

Components Required:
1. Arduino (UNO / Nano) x 1, Don't use Arduino Leonardo
2. Ultrasonic Sensor x 2
3. Line Following Sensor x 2
4. Motor x 2
5. Motor Driver x 1
6. Battery x 1
7. Jumper Wire (Female to Male) x 1
8. AWG 16 Wire (Red & Black) x 1m each
9. Dean Connector x 1
Total component cost: RM 279.10

Extra Component:
1. Charger x 1

Arduino Library Required:
1. New Ping Library (library for ultrasonic)

Wiring:
1. Solder dean connector to AWG 16 red & black wire (20cm)
2. Solder wire (red & black) to both motor.

Arduino Pin #
Connect to
VIN
BATTERY POSITIVE (+)
5V
5V / VCC from sensor
GND
BATTERY NEGATIVE (-), 
GND from sensor
A2
Left Ultrasonic (TRIG)
A3
Left Ultrasonic (ECHO)
A4
Left IR SENSOR (Yellow)
A5
Right IR SENSOR (Yellow)
2
Right Ultrasonic (TRIG)
3
Right Ultrasonic (ECHO)
5
MOTOR DRIVER (IN1)
6
MOTOR DRIVER (IN2)
9
MOTOR DRIVER (IN3)
10
MOTOR DRIVER (IN4)


Motor Driver Pin
Connect to
12V
BATTERY POSITIVE (+)
GND
BATTERY NEGATIVE (-)
OUT1
Left Motor (any side)
OUT2
Left Motor (another side)
OUT3
Right Motor (any side)
OUT4
Right Motor (another side)


IR Sensor Pin
Connect to
RED WIRE
5V from Arduino
GREEN WIRE
GND from Arduino / battery
YELLOW WIRE
A4 & A5 from Arduino



Programming:
Troubleshooting:
1. Check IR sensor for color detection. black (LED off) & white (LED on) by changing the sensitivity using potentiometer from IR sensor.
2. If ultrasonic cannot detect object, then increase the value of "MAX_DISTANCE" from Arduino line 3 & 4.
3. If motor run different direction, exchange connection from IN1 & IN2 (IN3 & IN4) jumper cable pin.

Note:
1. Don't overuse your LiPo battery until less than 11.1V.

National Level Competition:
1. myMaker Robotics Challenge organized by Malaysia Robotics Engineering Association
2. ASUMO  organized by Mr. Fauzi
3. Penang International Science Fair organized by Penang Science Cluster

International Level Competition:
1. Singapore Robotics Games

If you have any question regarding this tutorial, please let me know by WhatsApp (012-9050357) or E-mail to admin@roboteducation.com.my

My Robot Education Sbn. Bhd.

Author & Editor

My Robot Education Sdn. Bhd. (Robotedu.my) was founded in 2015 as the first robotics education centre in Malaysia to provide Arduino-based robotics courses for youths. Our vision is to be able to provide robotics education to every youth in Malaysia.

23 comments:

  1. the purpose of the line follower sensor is E18-D50NK ir sensor or sensor light, rich in line follower

    ReplyDelete
  2. I get an error compiling "compiling error for arduino nano card", which I can do

    ReplyDelete
    Replies
    1. chech error of your code.. maybd you've missing few of code ex;"// or etc

      Delete
  3. does it actually work.. code uploaded.. yet to try it out

    ReplyDelete
  4. hey i wanna know what do you mean by ir sensor(yellow) can you reply me asap

    ReplyDelete
  5. Is there a video of how the robot was created? Like how the robot was form to make it work

    ReplyDelete
  6. Hey dear ! I have sent u an email and askes for help...would be very glad if u help me !

    ReplyDelete
  7. may I ask, why did you use two ultrasonic sensor?

    ReplyDelete
  8. Very informative and It was an awesome post...... SUMo Pro Series

    ReplyDelete
  9. Very informative and It was an awesome post...... SUMo Pro Series

    ReplyDelete
  10. I get an error message NewPing.h: no such file of directory why do I get this?

    ReplyDelete
  11. I get an error message NewPing.h: no such file of directory why do I get this?

    ReplyDelete
  12. Cool stuff you have got and you keep update all of us. artificial intelligence transportation

    ReplyDelete
  13. Its very intersting and very useful blog .Directly I am found which I truly need. please visit our website for more information about  Machine Learning development services Company

    ReplyDelete
  14. Really amazing content especially for me. i found it really great and informative and keep sharing.
    Arduino Training in Lahore

    ReplyDelete
  15. I get some erro like, use of undeclared identifier "robot stop"

    ReplyDelete
  16. Dieser Artikel über den „schlüsselnotdienst münchen“ in München hat mir die Augen geöffnet. Mir war bisher nie klar, wie wichtig es ist, Zugang zu Notfall-Schlosserdiensten zu haben. Es wäre großartig, wenn der Artikel auf einige reale Szenarien eingehen könnte, in denen diese Dienste das Leben der Menschen erheblich verändert haben.

    ReplyDelete

 

  • Copyright © Arduino Tutorial ™ is a registered trademark.
    Designed by Templateism. Hosted on Blogger Templates.