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#01 - Blinking LED
  • 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 22 replies
  • Subscribers 27 subscribers
  • Views 3366 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#01 - Blinking LED

cy.gul
cy.gul over 12 years ago

To kick-start our 100 Projects in 100 Days community effort around the PSoC 4 Pioneer Kit, today I'm posting a simple "Blinking LED" project.

 

This is a very simple project that will help you get started with your first design for the PSoC 4 Pioneer Kit.

 

Project Schematic:


                    Actual screenshot from PSoC Creator schematic (TopDesign.cysch)image

 

 

In this design, a PWM Component drives the Pin Component which is connected to the Blue LED on the Pioneer Kit. The PWM modulates to make the blue LED blink at regular intervals

 

Hardware connections on the Kit:

  • Blue LED - P0[3] (this is internally wired, no extra connections required)

 

Software Setup:

  • See steps #1 - #6 from the main post here

 

Project Files:

  • Blinking LED.cywrk.Archive01.zip

     

Attachments:
Blinking LED.cywrk.Archive01.zip
  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 12 years ago in reply to shabaz +2
    The IDE installed fine, and I was able to compile a demo program. Just in case anyone tries it with Windows 7 64-bit: For me, when I tried to compile, it said a license had expired (although I've not installed…
  • shabaz
    shabaz over 12 years ago in reply to Former Member +1
    I see! It sounds straightforward and not so scary any more :-)
Parents
  • Former Member
    Former Member over 11 years ago

    Hi Im new here.I got my Pioneer kit couple of days back.

    I tried this example as it was already available.and It worked just fine.

     

    But I was curious as I wanted to try and build it on my own.
    so I started placing component in creator 2.2 same as this example,Even I carefully look inside every setting of component.
    I did my best to blink LED but LED is not blinking,instead it stays ON.

     

    I attached my file with this reply...
    Where is the problem??I m feeling very shame as I cant build even simple project like this.I can use ready example given here but I want to do it by my self...:)

    Attachments:
    Designtest.cydsn.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.gul
    cy.gul over 11 years ago in reply to Former Member

    Hi Dev,

    did you remember to setup the PWM Component configuration correctly?

     

    like so -

    PWM Component Config

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • cy.gul
    cy.gul over 11 years ago in reply to Former Member

    Hi Dev,

    did you remember to setup the PWM Component configuration correctly?

     

    like so -

    PWM Component Config

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 11 years ago in reply to cy.gul

    yes i did same setting...

    I modified the post and added my project file too.
    only difference you will notice is I used green LED.

    I m not getting where i did mistake...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.gul
    cy.gul over 11 years ago in reply to Former Member

    Dev,

    attach your project here, I can try and take a look at where you might be going wrong.

     

    Edit - i just noticed you already posted your project, I'll take a look soon. brb

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.gul
    cy.gul over 11 years ago in reply to Former Member

    Hi Dev,

     

    I found the source of your issue -

     

    The main.c file in your project needs to lines of code to 'start' the hardware Components.

     

    All Components in PSoC need to be explicitly started with a simple API. This is provided so the user can have complete control over all of the hardware Components and chose when to start/stop them.

     

    PWM_Start();

    Clock_Start();

     

    Place these 2 lines in the initialization section on the top of your main.c

    This is what your entire main.c should look like -

     

    #include <device.h>

     

     

    void main()

    {

        /* Place your initialization/startup code here (e.g. MyInst_Start()) */

        Clock_Start();

        PWM_Start();

       

        /* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */

        for(;;)

        {

            /* Place your application code here. */

        }

    }

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to cy.gul

    Yes...it's now working...
    I didnt aware about editing in main file.I will take care next time,

    (where can i get info about this kind of syntax for programming,I mean is there any guide on Cypress site or so??

     

    Thank you so so much for quick reply...now I will head towards new project  image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.gul
    cy.gul over 11 years ago in reply to Former Member

    Dev,

    i would recommend looking at these projects, they include good lab exercises with full step-wise details on how to build these projects:

     

    6706-Aug-2013PSoC 4 Getting Started Lab 1 (LED Blinky)
    6807-Aug-2013PSoC 4 Getting Started Lab 2 (PWM LED)
    6908-Aug-2013PSoC 4 Getting Started Lab 3 (CapSense UART)
    7009-Aug-2013PSoC 4 Getting Started Lab 4 (ADC)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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