1 Reply Latest reply on Aug 2, 2013 12:20 PM by jesusantoniocar

    PSoC 4 Pioneer Kit Community Project#064 – Workspace Organization using PSoC Theromostat




      In this example we are using the PSoC Thermostat project we released yesterday to showcase how to use the Workspace Explorer to manage numerous examples. In this project you will notice that we have 5 separate projects all building on themselves to create a PSoC Thermostat example. Each project is identical with minor additions.


      This example is used as a teach Lab on how to use PSoC. They teach the lab using these 5 examples incorporating numerous mix signal and digital communication peripherals.


      001 - Project List in Workspace Explorer.png


      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:

      • LCD
      • CapSense
      • OpAmp
      • Thermistor
      • PWM
      • ADC SAR Sequencer
      • UART
      • I2C
      • CyPins
      • CyClock


      Firmware Description:


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


      In this example we wanted to show users how they can manage multiple projects under the same workspace. This can be valuable when trying to work across two similar examples, testing tweaks to existing projects, or building multiple projects. For this example I wanted to walk the user through creating a Workspace and managing projects under that workspace.


      The user can create a workspace when creating a new project. When creating a new project select the ‘+’ button to access the advanced settings. Name your project, select a location to save that project, and then select to ‘Create New Workspace’  and name that new Workspace. Continue with your normal selections to create a new project.


      004 - Create a New Workspace.png


      Once you have a Workspace created you will be able to add new projects into that workspace. To do this simple navigate to the ‘Start’ tab to create a new project. Select the location for your new project, select ‘Add to Current Workspace, and then continue with your normal project selections. This will create a new project in that same workspace.


      003 - Add to Current Workspace.png


      You will see that in the example we’ve supplied for this post we have 5 examples in the workspace. This example is similar to the Thermostat example we provided in yesterday’s post.


      001 - Project List in Workspace Explorer.png


      Now that you have multiple projects in the Workspace you will want to move between those projects. To do this you will need to set the active project. You can do this by highlighting the project and then right-clicking on the project and selecting the ‘Set As Active Project’. This will bold the project name indicating that it is the active project.


      002 - Set As Active Project.png


      When in your Workspace, if you wish to copy an existing project to expand on the content you can simply right-click on the project and select ‘Copy’. Then click in the Workspace and then right-click to paste the example. Creator will create a copy of that program and add it to the workspace. Then right-click on the project and select ‘Rename’ to change the name of the project.


      005 - Copy a project.png

      006 - Paste a project.png


      007 - Rename a project.png


      In the attached example the projects were copied, renamed, and expanded to form a set of labs for users to learn Creator. In labs 4 and 5 the user will need to add in the PWM and I2C components, initializing the components to the stated configuration. This lab is used to teach the flow of Creator. Please feel free to use the examples as a guide to your project.


      Hardware Connections:


      There’s no specific hardware for this example, instead we are learning about how to use the Creator tool to support multiple workspaces using an existing example.


      Test Your Project:


      This example centers on supporting and teaching users how to create multiple designs within a single workspace.


      I hope this example can help you in your design.