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 4 Pioneer Kit Community Project#097 – Rice Cooker Design
  • 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 1 reply
  • Subscribers 24 subscribers
  • Views 455 views
  • Users 0 members are here
Related

PSoC 4 Pioneer Kit Community Project#097 – Rice Cooker Design

cy.wbz
cy.wbz over 12 years ago

Hello!

 

In today’s example project we are happy to release a great PSoC 4 reference design. This example is a demo solution to create your own Rice Cooker. With our previous examples in this series we focus on projects that have limited features, often having simple inputs driving defined outputs.

 

In this example project we seek to showcase a more complete solution, something more typical of an end product that one of our customers may create.

 

In this example we have the following pieces to the design:

  • Temperature Measurement with Opamp
  • Over current protection
  • Temperature control
  • Timing
  • Data transmission (UART)
  • State Machine Control (Firmware)
  • I2C Communication
  • LCD Display
  • User Interface

 

One of the key points to note is how the schematic view is organized in this example. This is unique to PSoC Creator and PSoC experience. Here the engineer was able to divide their hardware design, segmenting it into boxes, allowing for a more readable layout. Using the schematic design layout tools you can easily accomplish this type of organization. While it may take a little time to organize it is well worth the effort to have a readable format to pass to other members of a design team. This would be analogous to design practices in large firmware designs.

 

image

 

Forum Post Attachments:

 

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

  • Example Project Zip File
  • Project Images

 

Components Used: 

 

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

  • UART
  • I2C
  • SAR ADC
  • Opamp
  • PWM
  • Segment LCD
  • CyPins
  • Comparator
  • ISR

 

Firmware Description:

 

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

 

We are not expecting this project to be a starting point for your example project, instead we are hoping to show you a more complex example project and how that project was designed and implemented.

 

You will first notice that with the main.c function we have very little code. This code is mainly calling our state machine to begin operating and moving through the various states of the Rice Cooker.

 

In the example you will see that many of the functions of the example have been pulled out into their own .h and .c files. This helps to organize your project into a more readable format. In this example the example project is governed by our state machine code. This state machine moves the application from action to action based on external inputs, either a temperature or some type of serial command. Based on the system characteristics the application will begin to perform different functions.

 

We don't want to spend a long time looking through the firmware, instead we want to stress the firmware organization via a state machine map. In these more complex systems the application code begins to resemble a real time operating system (RTOS), where actions are queued and the application code is processing actions based on interrupts and priorities. In this example we begin to see that type of design.

 

image

 

Please feel free to walk through the various functions and firmware files to understand and study this example.

 

Hardware Connections:

 

Please review the schematic capture for the example project. In that project we have listed numerous external components and the component values.

 

Test Your Project:

 

This project is not necessarily meant to be used with any kit, but more of an example of a more mature PSoC 4 design. This design may give you ideas for your own project and help you see how to stack complexity using the configurable hardware and generated source files for the various components.

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
TestRecord.zip
RiceCooker.zip
4454.Project Images.zip
  • Sign in to reply
  • Cancel

Top Replies

  • jesusantoniocar
    jesusantoniocar over 12 years ago +1
    Hello Matt. Psoc creator is very powerful united to psoc 3,4,5 devices we can build and design any application with a little components and high hardware integration. wow, excellent project. Regards, Jesus…
Parents
  • jesusantoniocar
    jesusantoniocar over 12 years ago

    Hello Matt.

    Psoc creator is very powerful united to psoc 3,4,5 devices we can build and design any application with a little components and   high  hardware integration.

     

    wow, excellent project.

     

    Regards,

     

    Jesus Antoino.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • jesusantoniocar
    jesusantoniocar over 12 years ago

    Hello Matt.

    Psoc creator is very powerful united to psoc 3,4,5 devices we can build and design any application with a little components and   high  hardware integration.

     

    wow, excellent project.

     

    Regards,

     

    Jesus Antoino.

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