element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 1 Low Power Kit] Project #04 – Square Mouse
  • 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 1425 views
  • Users 0 members are here
Related

[PSoC 1 Low Power Kit] Project #04 – Square Mouse

cy.wbz
cy.wbz over 11 years ago

Hello!


In the example released today we will show the user how to create the simplest of USB projects. In this example we will be using the USB-HID driver provided on Windows, Linux and Mac machines.


In this example the CY8C24x93 device will enumerate using the HID driver and control the mouse on the user’s screen. The cursor will move around the screen in a square pattern.



image


For more information take a moment to review the earlier posts:

 

Project #1

Project #2

Project #3


Forum Post Attachments:


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

  • Example Project Zip File
  • Project Images


User Modules Used: 


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

  • USBFS


Firmware Description:


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


In this project we will create a simple USB HID mouse which will move in a square pattern on the computer screen. The main.c source code includes both the mouse controls and the USB parameters initialization using the USBFS APIs. The key to the example is the usage of the USB wizard provided with the USBFS user module. To access the USB wizard navigate to the Chip Editor window and right click on the USBFS user module in the Workspace Explorer. Select the USB Setup Wizard to launch the configuration window.



image

 

The USB Setup Wizard provides users a graphical experience when setting up and configuring the USB device. Here the user is able to describe the device, set descriptors, and apply attributes to the device. When the features have been applied the user module will apply those changes. The user then generates their project to apply the settings and generate the APIs for the user module. For this example we have created a basic HID example for users to test and explore.



image


Hardware Connections:


There are no hardware configurations for this example. All of the onboard connections have been made. The user will need to connect the PSoC 1 USB connector to the host computer after programming.


Test Your Project:


Build the project and program the PSoC 1 device using the program button in PSoC Designer, Program>Program Part. Once the device has been programmed change the USB connection to the PSoC 1 USB connector.


Once the device has connected the mouse cursor will begin to move in a square pattern around the PC screen. To stop the cursor control you can unplug the kit from the USB port.



image


I hope this example can help you in your design.


Best,

Matt

  • Sign in to reply
  • Cancel
Parents
  • clem57
    clem57 over 10 years ago

    element14jamie

      Hi! could you check the links to both attachments. I did and get the following message:

    Error

    An general error occurred while processing your request.

    Thanks,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • element14jamie
    element14jamie over 10 years ago in reply to clem57

    Hello All,

    Thank you, I will have this looked into.

     

    Jamie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • element14jamie
    element14jamie over 10 years ago in reply to clem57

    Hello All,

    Thank you, I will have this looked into.

     

    Jamie

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • sapbasisperf@gmail.com
    sapbasisperf@gmail.com over 7 years ago in reply to element14jamie

    Hello,

     

    I know this is a very old post, but I would like to build this project. Can someone supply it or fix the links.

     

    Thank you,

    Bill

    • 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