element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino + object avoidance robot.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 14 replies
  • Subscribers 393 subscribers
  • Views 1425 views
  • Users 0 members are here
  • robotics
  • arduino
Related

Arduino + object avoidance robot.

dtsartsanis
dtsartsanis over 10 years ago

Hi everybody.

 

Few days now i started building a small robot (my first one) using an arduino as a controller.

This post is a small presentation of this project

 

The kit of the robot is from Actobitty and it is a simple 2 motor with an aluminum chassis.

The front "wheel" was a simple plastic one and i noticed that it was difficult to overcame small objects and also difficult in turning. So i took pieces from an old Lego Technic and i made a front fork.

 

this was the front wheel and these are the holders of the battery below the chassis. I also removed them and manage to transfer the battery up.

image

 

this is the Lego fork

image

 

 

this is how the robot looked when i assembled it.

image

 

and this is how it looks now.

image

 

The original kit includes two holders for your Arduino or Raspberry. I manage to put the breadboard with the holders.

Also the battery pack moved in front of the micro controllers.Now there is a small space at the end of the breadboard for connecting leds etc.

 

Now the robot uses the following parts:

1.Actobitty 2 wheels robot aluminum chassis

2.2x Micro Gearmotor - 90 RPM

3.Arduino Uno

4.Arduino Motor shield rev.3

5.Ultrasonic sensor HC-SR04 with bracket

6.Breadboard for prototyping and additional sensors.

7.Additional 9V battery.

8.Cell AA Battery Pack with 4 rechargeable batteries

 

This is a the how u can attach the second battery.

image

 

At the present the robot can avoid objects and i found a very good tutorial here James Robot Tutorial - Duino-Robotics .

The code from the tutorial is for a robot with a servo ultrasonic sensor and servo motors. I use an Arduino motor shield so i had to make modifications.

 

In the next days ill try to load a video with the robot in action.

 

*the attachment code is working for me but still needs improvement

Attachments:
sample_code_for_robot.ino.zip
  • Sign in to reply
  • Cancel

Top Replies

  • neilk
    neilk over 10 years ago +3
    dtsartsanis Hi Dimitrios - a very nice piece of work! Well done. The code looks very useful for my own Cybot project. Are you going to include a way of sending commands to your robot? I am working on using…
  • mcb1
    mcb1 over 10 years ago +3
    Dimitrios Nice project. The ping sensor may not be seeing the echo from the door, and as I understand not all ping sensors are equal. To overcome the front wheel issues, I've tended to build tail draggers…
  • dtsartsanis
    dtsartsanis over 10 years ago +2
    A small modification to the 9V battery. It stays at the back of the chassis with tie zips. The good about the Actobity chassis is that it has a lot of holes and you can attach either sensors or whatever…
  • lokkytron
    lokkytron over 10 years ago

    Great presentation DIMITRIOS... I will be tuned for updates

     

    I would wish to have enough time to make a little robot like this one.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • neilk
    neilk over 10 years ago

    dtsartsanis Hi Dimitrios - a very nice piece of work! Well done. The code looks very useful for my own Cybot project. image

     

    Are you going to include a way of sending commands to your robot? I am working on using Bluetooth for mine and hope to post something soon.

     

    Best wishes

     

    Neil

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Cancel
  • dtsartsanis
    dtsartsanis over 10 years ago

    This is a small demo with the robot in action.

    2 thoughts. i have to fix the scan time because it has some problems. when it crashes to the wardrobe, now the scan time is 200 milliseconds maybe below that will fix the problem.The second thought is to lower the ultrasonic sensor but will be difficult with this kit. For now i think it is working fine.

    More to come : add some leds for direction indication. Also i have to fix somehow the turn direction. Now when it finds an object turns left i have to find a solution to turn either right or left. Also i want to add an LDR sensor for light tracking.

    As u can see i added the 9V battery because it draws a lot power. if u try this only with the 9V or the pack of 4 AA batteries you will see that it moves slower and not correct.

    Thats all for now hope u like it.image

     

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • dtsartsanis
    dtsartsanis over 10 years ago in reply to neilk

    Neil sorry for my late answer. For the moment i dont have thoughts for wifi or bluetooth but if u achieve that to your robot i am very interested to it.image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • dtsartsanis
    dtsartsanis over 10 years ago

    A small modification to the 9V battery. It stays at the back of the chassis with tie zips. The good about the Actobity chassis is that it has a lot of holes and you can attach either sensors or whatever u can .

     

    image

     

    image

     

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • lokkytron
    lokkytron over 10 years ago

    DIMITRIOS TSARTSANIS , It was great... good video.

    I like how it is going. I stay waiting for the updates you are thinking to do.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • neilk
    neilk over 10 years ago in reply to dtsartsanis

    dtsartsanis Hi Dimitrios - your project is looking really good image

     

    My Bluetooth is coming along nicely

     

    Neil

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
  • dtsartsanis
    dtsartsanis over 10 years ago

    Today i tested various different times of scaning with the ultrasonic sensor.

    The main set up is :

    1. maxdistance 100 (10cm) this is the scanning distance

    2.delay of the scan with the sensor 300 in milliseconds

    3.frontdistance >20 which means if the scan gives 20 and above go forward

     

    Also managed to find how to turn right and left with the code if the distance of the object is below 5 turn right or below 5 turn left.

    I dont know why but when the sensor points the door which is wooden and shiny the robot have some problems. if the robot is in an angle with the door usually it hits the door.

     

    If i could lower the sensor the movement would be better but for now i am very happy with the whole progress.

    The blue led is blinking when the robot go backward and a good idea is to add a piezo buzzer to make a sound also when it goes backward like the trucks.

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    Attachments:
    2678.sample_code_for_robot.ino.zip
    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • lokkytron
    lokkytron over 10 years ago

    It looks gorgeous.

     

    And I am only chatting: Could it be that the door's material has a high absortion for the ultrasonic signal?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • dtsartsanis
    dtsartsanis over 10 years ago in reply to lokkytron

    Yes Lokky i thing it is the material, because when i put my finger in front or it hits a fabric, like my trousers there is no problem.

    My little niece love it and we played a couple of minutes today. I thing this kind of projects are very good for introduction to robotics and micro controllers.image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube