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#042 – Hangman Game
  • 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 3 replies
  • Subscribers 13 subscribers
  • Views 315 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#042 – Hangman Game

cy.wbz
cy.wbz over 8 years ago

Hello!

 

It has been our Friday tradition for the past few weeks to end with a game. This week we have the Hangman game. In this game the user will be using two Pmod boards, an LCD and Button board to display outputs and generate inputs for the system. The user will be presented with a  word that has some letters filled. The user will need to guess letters to complete the word. The words you will be trying to figure out are names of Countries. Your selections (correct and incorrect) will be displayed. The game will let you know if you have guessed the correct letters or have you exceeded the number of incorrect guesses, thus creating the hangman.

 

 


 

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:

  • SPI
  • CyPins
  • ISR

 

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 project PSoC 4 interfaces with the PmodCLS - Character LCD which has 16x2 Character Display to provide flexible communications using UART, SPI or TWI to give a visual output. In this example we use the SPI communication method. The example project also interfaces a PmodBTN - Push Button module with PSoC 4 to provide a user interface to the game.

 

Hardware Connections:

 

You will need to connect two Pmod modules to the Pioneer board. We are connecting the LCD to the existing Pmod header and having to wire in the second Pmod into the arduino headers. Feel free to use a breadboard sheild for the second Pmod module. The following image provides a wiring diagram for connecting the Pmod boards.

 

 

Test Your Project:

 

Connect your hardware and program your project into the PSoC 4. Follow the LCD screen messages to play the game.

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
4722.Project Images.zip
Hangman.zip
  • Reply
  • Cancel
  • Cancel

Top Replies

  • Former Member
    Former Member over 8 years ago +1

    Hello!

     

    I've attached a video of the game in action.

     

    Thanks,

    Renuka

     

     

    You don't have permission…

  • DAB
    DAB over 8 years ago

    I like your progression to increasing complexity.

     

    This method should help encourage people to learn Psoc in a step by step manner.

     

    DAB

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 8 years ago in reply to DAB

    Hello Matt.

    Great friday project. it has many lines of code specially in the main c, i can see more functions, it is great for all community. Strong examples well documented.

     

    Ready to the next week for our robots projects.

     

    have a good weekend.

     

    best regards,

     

    Jesus Antonio.

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 8 years ago

    Hello!

     

    I've attached a video of the game in action.

     

    Thanks,

    Renuka

     

     

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

    • Cancel
    • Up +1 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