element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs A Black Line Following Mobile Robot : For Makevember
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dubbie
  • Date Created: 17 Nov 2019 5:23 PM Date Created
  • Views 2532 views
  • Likes 11 likes
  • Comments 13 comments
  • makevember
  • black line following
  • mobile robot
Related
Recommended

A Black Line Following Mobile Robot : For Makevember

dubbie
dubbie
17 Nov 2019

I was asked at short notice to do an activity for a children's club I sometimes help at. It was supposed to be along a theme of knowing directions and compasses and stuff. I didn't think I could work out any compass stuff in time so decided to do what I knew something about, which was mobile robots. As it needed to have something to do with following directions I decided to use a black line following mobile robot. I initially decided to use a ready made black line following mobile robot but the ones I could obtain in time were rather puny and the better ones took too long to arrive, so I decided to make my own. I had just managed to get my 3D printer working again so it seem a good opportunity to make sure it was working properly.

 

I had some continuous rotation servo motors lying around waiting for a project, plus some LDRs left over from the LDR Camera Vision Thing Project14 activity, plus a Nano and some battery packs. What else do you need for a black line following mobile robot. All I did was to design a base plate for the 3D printer that held two servo motors and two battery packs, just push fit together. Unfortunately the battery packs wobbled about so nothing fitted tightly and I had to design a top plate to hold everything in place. I originally planned to redesign all the 3D printed parts to make amore coherent approach but time ran out. The Nano is plugged into a protoboard and then BlueTac-ed to the top. The sensor consists of a pair of white LEDs and associated LDR detectors. I spent a lot of time working out the correct height, spacing, brightness level and placement of the black line sensors and even on the evening before use I was still tweaking the hardware and software in order to get it to follow the black line reliably, see below.

 

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

 

It can still wander away from the black line on occasion, especially if there is a source of light shining in from the side and I wasn't able to make a compact and attractive design. But the idea was for the children to colour in a face for it and fold it into a box that just sits on top. Mostly they managed this and were quite excited when I got their parents to take a video of the mobile robot going round and round.

 

The code is fairly simple but getting the correct values for the motor speeds and delays took a lot of trial and error. I'm not a control engineer and I just didn't have the time to work out a mathematical solution to this so I tweaked values until I managed to arrive at a fairly stable and workable set of values.

 

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

 

 

So this is another contribution to the Makevember Idea.

 

Unfortunately due to redecorating the lounge (nearly finished!) and making this Black Line Following Mobile Robot I have rather neglected my LDR Camera and BeagleBone AI project. Still, there's still tomorrow, maybe it will all go together and work perfectly!

 

Dubbie

  • Sign in to reply

Top Comments

  • jw0752
    jw0752 over 5 years ago +5
    Hi Dubbie, When a person does a project like this you never know but that you might be the inspiration for a future electronics engineer. It was an excellent project and I bet it was well received. Jo…
  • 14rhb
    14rhb over 5 years ago +4
    Great project Dubbie, I'd never really looked at how this was done before, LDR-LED combination sounds like a good approach.
  • genebren
    genebren over 5 years ago +4
    Very cool project for a very cool cause (helping kids to become interested in electronic/robotics)! Thanks for sharing.
Parents
  • jc2048
    jc2048 over 5 years ago

    That looks like great fun.

     

    What happens if you have a figure-of-eight for the line? Does the robot make it across where the lines meet each time or does it get sidetracked?

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 5 years ago in reply to jc2048

    Do you know, I'm not sure if I tried a figure of eight, possibly at the children's club. But let's try it again, so here it is now.

     

     

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

     

    Well, that didn't go to well, but that was down to the turns being too steep. So, I tried a larger figure of eight and then adding some additional lines 'live'!

     

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

     

    It is perfectly OK with the figure of eight, probably because the crossing lines are at such a large angle (obtuse?) but it will pick up diverting lines as I think one side of the detector pair has a greater preference than the other.

     

    Dubbie

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jc2048
    jc2048 over 5 years ago in reply to dubbie

    Thanks for trying that. The momentum seems to be enough to get it across, though there's evidently a very real danger it will go off course afterwards.

     

    Had you thought to have it stop and back-up if it ever loses the line? Shouldn't be too difficult to do with a processor in there.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 5 years ago in reply to jc2048

    Jon,

     

    I hadn't really thought much at all about making it better. It was such a rush to even get it working at all that I was just grateful it worked in time to use with the children's club.

     

    Dubbie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • 14rhb
    14rhb over 5 years ago in reply to dubbie

    This is what Element14 Community is all about....someone asked a question and dubbie just went and tried it out: absolutely great.

     

    ps: I like the way it started to follow your freestyle lines as you drew them - children must absolutely love that.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 5 years ago in reply to 14rhb

    Yes, the children really lliked that. A truly interactive robot.

     

    Dubbie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • dubbie
    dubbie over 5 years ago in reply to 14rhb

    Yes, the children really lliked that. A truly interactive robot.

     

    Dubbie

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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