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
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#044 – Run Away Run Away! (Proximity Robot)
  • 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 4 replies
  • Subscribers 27 subscribers
  • Views 1603 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#044 – Run Away Run Away! (Proximity Robot)

cy.wbz
cy.wbz over 12 years ago

Hello!

 

Today’s post we expand on our previous example by adding proximity sensing to our robot. In this example we use the proximity sensing capabilities of PSoC 4 to detect when a Human is close to touching it. When it detects proximity it begins to drive away. For this example you will need the following hardware:

  • PSoC 4 Pioneer Kit
  • Ladyada Motor Shield Kit
  • Digilent Robot Chassis
  • AA battery pack
  • Long wire for Proximity

 

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
  • CapSense
  • SPI
  • CyClock
  • CyPin

 

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 example we make use of the motor control APIs included in files that were part of example #043. Please make sure you include those files in this example.

In this example we’ve added a CapSense proximity detector. The firmware will detect the proximity sensor and then drive the robot away. The example also drives the RGB led to indicate if there is a proximity detection.

 

Hardware Connections:

 

The connections for this project are the same as example #043. In this example we have added a long wire that will be used as our proximity detector. This wire is wrapped around a small plastic boom that is connected to the Robot Chassis. The wire is then connected to the PSoC 4 through Pin P2[0].

 


image

 

Test Your Project:

 

Connect all of your shield boards like in of example #043 and connect the proximity wire to P2[0] on the PSoC 4 using either the shield board common connectors or directly to the Pioneer kit connector. Program the PSoC 4 and then place the robot down on the ground. Connect the AA battery pack to the robot and stand back. Attempt to pick up the robot to see that it drives away.

 

We have posted a video describing this example in the following post:

 

http://www.element14.com/community/message/81495#81495/l/re-coming-next-week--the-psoc-shybot

 

I hope this example can help you in your design.

 

Best,

Matt

 

 

 

 

Well, we'll not risk another frontal assault. That robot’s dynamite.

Attachments:
KIT_042_DCMotorShield_Robot_Proximity_RandomDir.cyprj.Archive01.zip
4118.Project Images.zip
  • Sign in to reply
  • Cancel
  • DAB
    DAB over 12 years ago

    I like the idea of capcitive sensing.

    This approach opens a lot of interesting search and detecting applications.

     

    Very cool,

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.gul
    cy.gul over 12 years ago in reply to DAB

    ...and CapSense is reliable, cheap, and very easy to do with the PSoC 4!

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

    Hello Matt, Gagan.

    Proximity sensing is the ability of a robot to tell when it is near an object, or when something is near it.
    This sense keeps a robot from running into things. It can also be used to measure the distance from a robot to some object.


    great project.

    Thanks

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago

    i really like te idea.... but i hope for less hardware in this..
    thank you

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