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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
STEM Projects
  • Learn
  • Learning Center
  • STEM Academy
  • STEM Projects
  • More
  • Cancel
STEM Projects
Blog Book Carrying Robot #4 Standalone complete code Running on Raspberry PI
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join STEM Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mohanedessam
  • Date Created: 18 Aug 2015 11:25 AM Date Created
  • Views 1381 views
  • Likes 1 like
  • Comments 9 comments
  • image_processing
  • teachers_pet_robotics_design_challenge
  • teachers_pet
  • matlab_raspberry_pi
  • raspberry-pi
  • matlab
  • teachers pet robotics design challenge
  • digital_imaging
  • book_carrying_robot
  • simulink
Related
Recommended

Book Carrying Robot #4 Standalone complete code Running on Raspberry PI

mohanedessam
mohanedessam
18 Aug 2015

I have been able to complete my program that can identify the robot path using colored paper or stickers. the code is done in normal MATLAB coding similar to my previous posts.

I thought I would rather show my results first, then explain about my methodology in the following posts.

 

After I completed my code. I was able to translate this into a standalone program running independently on Raspberry PI using Simulink.

The program basically takes images from the Raspberry PI board camera, process them that and controls two motors through the Raspberry PI GPIO pins, making the robot follow the correct path.

 

the details about my code and how I made it as a standalone program on Raspberry PI will be explained in my following posts, However I will show here what I managed to do.

 

First I will show a video of the Program Running on Raspberry PI, where you can see the motors are controlled depending on the colored object position, all this is done solely on Raspberry PI (standalone program).

I was not able to upload the Video here so please follow this link:

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

https://www.youtube.com/watch?v=J7VL2jgqyqM&feature=youtu.be

 

this is an image of my setup

image

 

Also you can see in my second video a live feed while the program is running on Raspberry PI and How is it processing the images it get.

The video is shown in Simulink, however the code is still running as standalone program on Raspberry PI

I was also not able to upload the Video here so please follow this link:

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

https://www.youtube.com/watch?v=cJ8uMaAZnHM&feature=youtu.be

 

I will explain about my methodology and how to run the program as standalone program on Raspberry PI in my next posts, I will also include all my simulink and MATLAB codes.

  • Sign in to reply

Top Comments

  • madhugovindarajan
    madhugovindarajan over 10 years ago +1
    Only after re-watching did I realize that the robot wheels are turning towards the colored lines. I understand that this is just to show us what you have done, with the robot sitting on top of a station…
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago +1
    you can link the video in from YouTube by clicking the video button and selecting WEB, provide the youtube link and it will pull in the rest. I do this all the time for my videos
  • mohanedessam
    mohanedessam over 10 years ago in reply to Robert Peter Oakes +1
    I have edited the post
Parents
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago

    you can link the video in from YouTube by clicking the video button and selecting WEB, provide the youtube link and it will pull in the rest. I do this all the time for my videos

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mohanedessam
    mohanedessam over 10 years ago in reply to Robert Peter Oakes

    I have edited the post

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to mohanedessam

    There you go... perfect.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago in reply to mohanedessam

    There you go... perfect.

    • Cancel
    • Vote Up 0 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