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
  • 14rhb
    14rhb over 5 years ago

    Great project Dubbie, I'd never really looked at how this was done before, LDR-LED combination sounds like a good approach.

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

    Great project Dubbie, I'd never really looked at how this was done before, LDR-LED combination sounds like a good approach.

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

    I must admit to not having used an LDR - LED combination before, I've always used specialised infrared LEDs and phototransistor detectors. It turned out a lot more difficult than I thought. The first problem was that the 3D printed holder just acted as alight diffuser for the LED and the LDR was constantly surrounded by bright light and didn't detect anything else!. I had to reduce the light output of the LED and put black marker on the sides of th eLED. Plus I moved the LDR from the top of the 3D part to the bottom, nearer the black line, to try and cut-out more of the sideways light from the LED. It could really have done with more experimentation to get the separation of the LDR from the LED (angle of incidence) right, as well as the spacing of the two detectors. I designed it based on a black line of 6 mm width and then realised I couldn't make a black line 6 mm wide! Fortunately, with a lot of physical and software tweaking I managed to get it to work but it was very much a last minute thing.

     

    Dubbie

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

    Dubbie,

     

    What a great learning exercise.  It is easy to do something the same way that we have done it before, but you learn so much more by trying something new.

     

    Well done!

     

    Gene

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

    Knowing this is your own bespoke sensor and you put lots of effort into the experimentation/design of that part makes it even better IMO.

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • 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