element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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#09 – Graphics LCD Display
  • 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 23 replies
  • Subscribers 30 subscribers
  • Views 4256 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#09 – Graphics LCD Display

cy.wbz
cy.wbz over 12 years ago

Hello!

 

Today’s example project uses the a Graphical LCD Display Shield from Sparkfun which has a Nokia 6100 LCD. We’ve have tested this example on a number of shields that support the Nokia 6100 LCD:


SparkFun Shield

Elect Freaks

Nokia 6100 Shield

 

There are minor differences between the boards for controllers and brightness controls. Please check with the datasheet of the additional LCD screens linked above to find out what controller is used. This example uses the Sparkfun Graphics LCD screen.

 

What is unique about this example project is that we’ve created a custom Graphics LCD (GLCD) component in Creator that gives the user API controls for the LCD display. This component is not shipped with PSoC Creator as part of the general installation. The GLCD component is available in the attached example project and can be loaded into your design. This component creates an easy to use interface to write text and draw shapes on the LCD screen using APIs. Attached to this project is the Component Datasheet. In the datasheet we describe the APIs. The example project utilizes the APIs as an example. The following image is the project example output on the GLCD display. While the LCD output looks complicated you will see from the example that it uses simple APIs to create the shapes.

 

image

(Pioneer Board with the Sparkfun LCD Shield)

 

 

Additional Information on Custom Components:

 

If people are interested in additional information on custom components please see the follwoing resources for more information:

 

Implementing Programmable Logic Designs with Verilog

 

Components with UDB Datapaths

 

We also have a Knowledge Based Article that will assist users in creating a Verilog-based Custom Component:

 

Creating a Verilog-based Component

 

Also refer to the Cypress Community Components Page where additioncustom components are posted for users:

 

Cypress Developer Community

 

We also have a set of Component Training Videos that will assist users in creating components for PSoC Creator:

 

Creating a Custom Component Video

Additional Training Videos

 

 

Forum Post Attachments:

 

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

  • Example Project Zip File
  • Custom Component Datasheet
  • 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:

  • Custom GLCD Component for the Nokia 6100 LCD using the Sparkfun Shield

 

The components are configured by right clicking on the component in your Top Design schematic view and selecting Configure. Please enable the following selections in the Configuration windows for the listed components above.

 

Firmware Description:

 

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


This example project is a simple introduction to a custom component targeting the GLCD Shield. The goal if this firmware is to introduce the user to the component and show a simple example. The example prints shapes and text onto the LCD using the component's APIs. This GLCD component will be used by a number of coming examples.

 

Hardware Connections:

 

There are no hardware connections outside of connecting the Graphics LCD Shield to the Pioneer Kit.

 

Test Your Project:

 

Once the kit is programmed with the example project you will see the output on the LCD screen.

 

I hope this example can help you out in your design.

 

Best,

 

Matt

Attachments:
image
6131.Project Images.zip
GLCD_Test1.zip
  • Sign in to reply
  • Cancel

Top Replies

  • jesusantoniocar
    jesusantoniocar over 12 years ago +1
    Hello Matt. Thanks for your examples, i like this. i have a question, does i need some special connection with the Custom GLCD Component for the Nokia 6100 LCD using the Sparkfun Shield in the psoc 4 pioner…
  • cy.wbz
    cy.wbz over 12 years ago in reply to jesusantoniocar +1
    Jesus, The only connection you will need is the sparkfun LCD shield. The shield will plug into the kit-042. Once connceted you can then use the Component in your Creator design. Make sure you use the same…
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to cy.wbz +1
    Hello Matt. Thanks for your too fast response. i refer to hardware connections in the kit 042, but i downloaded the files and the image that you place in this post to make the same connections that you…
Parents
  • jesusantoniocar
    jesusantoniocar over 12 years ago

    Hello Matt.

    Thanks for your examples, i like this.

    i have a question, does i need some special connection with the Custom GLCD Component for the Nokia 6100 LCD using the Sparkfun Shield in the psoc 4 pioner kit?
    right now i have the kit cy8ckit042, and  will order for one lcd nokia.

     

    best regards,

     

    Jesus Antonio.

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

    Jesus,

     

    The only connection you will need is the sparkfun LCD shield. The shield will plug into the kit-042. Once connceted you can then use the Component in your Creator design. Make sure you use the same pin configurations in the DWR selection that are used in the example. This specifically pertains to the SPI communications.

     

    Let me know if I understood your question. When you said connection you meant hardware? Or did you mean connections with respect to the pins in Creator?

     

    Thanks,

    Matt

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

    Hello Matt.

    Thanks for your too fast response.

    i refer to hardware connections in the kit 042, but i downloaded the files and the image that you place in this post to make the same connections that you made in your project, it is very amazing for me to learn about cypress tecnologies.

     

    Best regards,

     

    Jesus Antonio.

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

    Jesus,

     

    Let us know if you need any other help. Good luck with the LCD project!

     

    -Matt

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to cy.wbz

    Hello Matt.

    I bought the shield http://www.elecfreaks.com/store/color-lcd-shield-p-462.html, because i try to buy the spakfun shiled but it is sold out,  i see in your descirption that i can use the shield that i bought, so i will write to you when i received this and test my project.

     

    thanks again.

     

    best regards,

     

    Jesus Antonio.

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

    Jesus,

     

    This shield should work. The engineer who developed the component has this shield. You will notice that the shield is brighter and has better colors. It uses a different LCD controller. In the schematic view you wil see the GLCD component, in the configuration menu you will need to select the different controller. There should be two options from the drop down menu.

     

    Good luck and let me know if there are any issue!

     

    -Matt

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • mhastings
    mhastings over 12 years ago in reply to cy.wbz

    If you use the brighter, cheaper, higher contrast graphics LCD from ElecFreaks, don't forget to drive the display backlight crontrol with a "1" or an optional PWM.  If you don't the display will appear to be dead.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • mhastings
    mhastings over 12 years ago in reply to cy.wbz

    If you use the brighter, cheaper, higher contrast graphics LCD from ElecFreaks, don't forget to drive the display backlight crontrol with a "1" or an optional PWM.  If you don't the display will appear to be dead.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to mhastings

    Hello Mark.

    Could you explain me better how can i do this  "back light"  control set up to "1", you have reason, the display looks like dead.

     

     

    thanks for your help.

     

     

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.wbz
    cy.wbz over 12 years ago in reply to jesusantoniocar

    Jesus,

     

    There was a modification from the sparkfun design.

     

    http://www.elecfreaks.com/store/color-lcd-shield-p-462.html

     

    They talk about the modifications on the discription paragraph on the kit page. "This shield base on Sparkfun design, we upgraded and modified the backlight to PWM(D10) control and button to 4 direction Joystick w/ Switch(A0-A4),more key and easy to operate." What Mark was saying is that you need to drive D10 (P3.4) with either a PWM or as a GPIO pin (driven high) to control the LCD (take a look at the back of the Pioneer kit for the layout information). You can use a CyPin component and set it to output. I think one of the Danger Shield examples has LED control using the CyPin example. Have a look there.

     

    Thanks,

    Matt

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mhastings
    mhastings over 12 years ago in reply to jesusantoniocar

    Jesus,

    All you have to do is drive P3[4] high.  For an example just take a look at the dual trace scope project that I submitted.

    http://www.element14.com/community/thread/24287

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to cy.wbz

    Hello Matt, Mark.

    Thanks.

    It works.

     

    best regards,

     

    Jesus Antonioimage

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

    Jesus, that looks really amazing. good work!

    • 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