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 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs My Raspberry Pi Robot: the technologies
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: zolti
  • Date Created: 6 Jul 2014 7:38 PM Date Created
  • Views 653 views
  • Likes 0 likes
  • Comments 0 comments
  • pins
  • c
  • python
  • pi
  • rpi.gpio
  • opencv
  • robot
  • raspbeery
  • c++
  • bcm298
  • raspbian
Related
Recommended

My Raspberry Pi Robot: the technologies

zolti
zolti
6 Jul 2014

In my previous post (My Raspberry Pi Robot (Let's Get Portable! Contest)) I presented my robot for the Let's Get Portable! contest. In this post I will describe the pins I used for controlling the two engines and the for LED's, also the programming languages with the additional libraries for image processing and controlling the pins.

 

First of all, I used pin nr. 2 for supplying with electricity the bridge driver. Secondly, I used pins nr. 15 with 13 for the right engine and 12 with 11 for the left engine. When both pins of an engine are set to Low or High, the engine is not working, when one of the pins is set to High, then the engine is spinning in one direction, when the other pin is set to High, then the engine is spinning in the other direction. So, when the pins 15 and 11 are on High, the engines are spinning the wheels forward, when the pins 13 and 12 are on High, the engines are spinning the wheels backwards. This is how I control wirelessly the robot, from a laptop, using one of the applications I developed. Thirdly, I used the pins nr. 7, 16, 18 and 22 for turning on and off the LED's from the back of the robot. They are good for debugging the applications, and they give a cool look also.

 

On the Raspberry Pi, I used Raspbian operating system. For the applications I used Python programming language with its default RPi.GPIO (https://pypi.python.org/pypi/RPi.GPIO) library for controlling the pins, C/C++ with OpenCV (OpenCV) library, for image processing, V4L2 driver ( Official V4L2 driver) for collecting images from the Raspberry Cam using OpenCV, and bcm298 (bcm2835) library for controlling the pins. I also made a simple GUI using C# and WPF for controlling the robot from the keyboard of the my laptop and to start and stop the other applications.

 

If somebody has questions, please ask them and I will describe more specific every step I took to realize this project.

  • Sign in to reply
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