PSoC Lab 05: PWM controls RGB LEDs

 

Objective

 

Required Reading Material(s)

 

Background Information

Theory on current experiment.

 

Required Components List

Hardware Components

     
     

 

Circuit / Schematic Diagram

 

 

 

Related Reference Material(s)

 

Procedure

Creating a New Project

Launch the PSoC Creator and create a New Project. In the New Project wizard, select Empty Schematic, edit the name of the Project and Workspace.

 

PSoC Components and TopDesign.cysch

After you create a project, the PSoC Creator will bring up the TopDesign.cysch tab, with an empty schematic. You need to add the following components to the TopDesign.cysch.

 

 

Configurations

 

 

 

 

Sample Firmware Code

 

Building the code and Programming

You can build the project using the Build menu or Build icon PSoCCreator Build Button. The Output panel shows the build results. Any errors will stop the build process and messages identifying these problems will be displayed in the Output panel.

To program the PSoC with the newly build firmware, connect the PSoC board to the PC using the USB cable. Load the program using either the Debug➤Program selection or the following Program icon PSoCCreator Program Button. The programming status is also shown in the Output panel.

When programmed, you can test your system and observe the results.

 

Lab Experiments

 

 

Questions

Around five questions should be based on Required Reading Material. Two more challenging questions will require students to perform additional research for extra credit points

 


Exercises

 

 

 

 

 

PWM controls RGB LEDs