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
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#048 – Walk The Line! Robot Example
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 26 subscribers
  • Views 1498 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#048 – Walk The Line! Robot Example

cy.wbz
cy.wbz over 12 years ago

Hello!

 

Today’s example continues to expand on the previous robot examples. In this example we are having the robot follow a black line that is printed onto a white surface. In this example we are using LED photodiodes to sense the line below the robot and then control the motors to keep the robot on track. The following hardware is used in this example:


  • PSoC 4 Pioneer Kit
  • ArduMoto shield
  • Custom Robot hardware
  • AA battery pack

 

image

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Zip File of Images
    • Project Schematic
    • Component Configurations

 

Components Used:

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • PWM
  • CyClock
  • CyPins

 

The components are configured by right clicking on the component in your Top Design schematic view and selecting Configure. Please enable the following selections in the Configuration windows for the listed components above.

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

 

In this code example we are expanding on the obstacle avoider and adding two source files to our example. These two files are LineFollower.h/c. These two source files are used to detect the line position and control the motors. The code looks to detect the line using three sensors. The robot uses the sensors in the following configuration (Right, Center, Left). Detection from any of the three sensors will direct the robot in a defined direction or course correction.

 

Hardware Connections:

 

Connect your Pioneer kit to the ArduMoto shield. Then connect your motor shield to the photodiode board.

 

The following hardware components are used: Red LEDs 3no.s, 220Ω resistor 3no.s for LED current limiting. Photodiodes 3no.s, 10kΩ resistors 3no.s for Photodiode biasing,IC LM339 and 10kΩ potentiometer, connectors to take out signals on prototype area of ArduMoto Shield.

 

image

 


image

 

Test Your Project:

 

Place your robot on a printed obstacle course. Start the robot and watch it go around the track.

 

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

 

We put together a couple of videos for an internal contest here at Cypress. The goal was to create a similar robot that raced around a track. Enjoy!

 

Part 1: http://www.youtube.com/watch?v=wpiCV7Leegk

Part 2: http://www.youtube.com/watch?v=ccXk3cwn0Bk

Part 3: http://www.youtube.com/watch?v=sgW6iJvywh4

Part 4: http://www.youtube.com/watch?v=jCdaVU2rXHg

Part 5: http://www.youtube.com/watch?v=mTKlPUFRejY

 

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
8004.Project Images.zip
Linefollower_3.zip
  • Sign in to reply
  • Cancel
Parents
  • DAB
    DAB over 12 years ago

    Hi Matt,

     

    Great videos.  The teams had way too much fun for this effort. 

    I am really bummed that I was not on one of them.

     

    Keep up the great posts,

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • DAB
    DAB over 12 years ago

    Hi Matt,

     

    Great videos.  The teams had way too much fun for this effort. 

    I am really bummed that I was not on one of them.

     

    Keep up the great posts,

     

    DAB

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