element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#053 – PSoC Eye
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Cypress Kits requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 13 subscribers
  • Views 275 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#053 – PSoC Eye

cy.wbz
cy.wbz over 8 years ago

Hello!

 

Today we are focusing on integrating sensor detection with motor control. We have created what is lovingly called the ‘PSoC Eye’. In this example we are using the Wii Remote IR tracking sensor to control two servo motors that pan and tilt to track the movement of an IR light emitting target.

  • PSoC 4 Pioneer Kit
  • Pixart WiiMote IR Camera
  • Servo Motors

 

 

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 (x2)
  • I2C
  • 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 example we use the I2C component to communicate with the IR sensor. The values received by this sensor will determine the movement of the two servo motors to maintain the sensor’s view of the target. We are using two PWM components to control the two servo motors.

 

We have also attached two specifications to this post, one specification for the Pixart sensor and the second for the two servo motors.

 


 

Hardware Connections:

 

In this example we have attached both the servo motors and the Pioneer kit to plexiglass. A custom breadboard is used to connect the Pioneer board to the Sensor and Servo motors. The schematic is included below. The two motors are used to pan and tilt the sensor. The bottom motor is fixed to the plexiglass and will spin allowing for azimuthal (pan side to side) angle calculation. Fixed to the top of that motor is the second motor that will move the sensor about the polar angle (tilt up and down). In this example the bottom and top motors will spin 180 degrees allowing you to track all objects in one hemisphere of available space.

 


 

Test Your Project:

 

Program your Pioneer kit and then move a IR emitting object around in front of the sensor. You will see that the PSoC 4 device will control the servo motors to track the object.

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
PSoC_Eye.zip
1512.Project Images.zip
Vigor_VS1_Servo.pdf
Pixart_WiiMote_IR_Camera.pdf
  • Reply
  • Cancel
  • Cancel
  • DAB
    DAB over 8 years ago

    Hi Matt,

     

    Another cool application.

     

    DAB

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • cy.gul
    cy.gul over 8 years ago

    this is a nice way to make a motorized pan/tilt security camera with night vision sensing and tracking

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 8 years ago

    Hello Matt.

    Thanks for this project.

    Infrared imaging is used to analyze light at wavelengths longer than those of the visible spectrum and provide analogous displays for interpretation. It has applications in industry, law enforcement, military, medical, and consumer electronics.

    great project and i would like to build a similar application with my pioneer kit.

    http://www.youtube.com/watch?v=JqGr3BRNiN8&feature=player_embedded

     

    best regards,

     

    Jesus Antonio.

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • cy.wbz
    cy.wbz over 8 years ago in reply to jesusantoniocar

    Jesus,

     

    I've asked the Engineer who developed this to add a video. He will post it when it is complete.

     

    Please feel free to post your project when you are complete.

     

    Thanks,

    Matt

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube