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
Project14
  • Challenges & Projects
  • More
Project14
Blog PSoC®︎ 6 WiFi-BT Pioneer Kit - Blink LED using Cypress PSoC Creator
  • Blog
  • Forum
  • Documents
  • Theme Suggestions
  • Polls
  • Members
  • More
  • Cancel
  • New
Join Project14 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mahmood.hassan
  • Date Created: 29 Jun 2019 8:47 PM Date Created
  • Views 1099 views
  • Likes 2 likes
  • Comments 0 comments
  • RoadTest
  • cypress psoc6 wi-fi bt pioneer kit
  • psoc6
  • cypress
Related
Recommended

PSoC®︎ 6 WiFi-BT Pioneer Kit - Blink LED using Cypress PSoC Creator

mahmood.hassan
mahmood.hassan
29 Jun 2019

This blog post is the Part of PSoCRegistered 6 WiFi-BT Pioneer Kit (CY8CKIT-062-WIFI-BT) - Review Product LinkProduct Link (Figure 1). This post is also related to previous ones so for better understanding kindly take a look at those too.

 

image

Figure 1: PSoC6 WiFi-BT Pioneer Kit (details)

 

Blinky LED

In the previous post we have learn how to successfully build and test the Hello World project based on UARTprintf example. Now we are going to build a Blinky Led project from scratch without using any example. In this example we will alternately blink the Red and Green part of onboard RGB led (LED5) (figure 2) at 1Hz with 500msec on and off duration. The schematic of LED5 on PSoC6 pioneer board is also shown in figure 3.

image

Figure 2: On board RGB LED on PSoC6 Pioneer board of PSoC6 WiFi-BT KIT

image

Figure 3: Schematic diagram of Onboard RGB Led (LED5) (source: HERE)

It will help us in understanding the basic work flow of PSoC Creator code generation. After building the project we will also learn how to debug it using PSoC creator. All the step required to built a blinky led project without using any pre-build example are given below.

 

Create a New Project using Empty Schematic as project template

image

Rename and Select the New Project Location (optional) and Click Finish to Create a new project with empty Schematic

image

New Project with Empty Schematic is Created Successfully and we will use these side panel to create a Blinky LED project

image

Search for output and select Digital Output Pin from component Catalog and drag it to empty Schematic. We will add two digital output pins and then rename them to RED_Led and GREEN_Led

image

To Blink an LED we will use PWM module of PSoC6 mcu. So add a PWM component on TopDesign Schematic.

image

To drive the PWM module we need some clock source therefore also add a clock component.

image

Change the Clock component configuration if you want to rename or change the Frequency otherwise leave as it is.

image

Change the PWM component configuration such that we get a 1Hz PWM with 50% duty cycle

image

The complete TopDesign schematic after renaming and interconnecting all the components.

image

After setting the clock and PWM component we will assign the physical pins to Digital output pins in TopDesign Schematic. Go to PIN assignment window under design wide resources

image

Assign the Physical pins connected to Red and Green LEDs of onboard RGB Led (LED5)

image

Add PWM_1_START(); in main() function before the forever for loop inside the main_cm4.c file

image

Build the Project to check for any error and it will build successfully

image

After successful build, program the Blinky Led Project to test on physical hardware. And will worked perfectly Now we modify the PWM period and duty cycle and verify the result on physical hardware.

image

Video

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

  • Sign in to reply
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