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
At The Core Design Challenge
  • Challenges & Projects
  • Design Challenges
  • At The Core Design Challenge
  • More
  • Cancel
At The Core Design Challenge
Blog Infineon Beverage Dispenser # 4 - How To Configure The OLED Display
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join At The Core Design Challenge to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: guillengap
  • Date Created: 30 Mar 2023 5:29 AM Date Created
  • Views 627 views
  • Likes 6 likes
  • Comments 2 comments
  • infineon
  • PSoCTm︎ 62 MCU
  • element14
  • modustoolbox
  • Embedded Systems
  • microcontroller
  • challenge
  • arm
Related
Recommended

Infineon Beverage Dispenser # 4 - How To Configure The OLED Display

guillengap
guillengap
30 Mar 2023
Infineon Beverage Dispenser # 4 - How To Configure The OLED Display

Table of Contents

  • Introduction
  • Getting Started
  • Adding CapSense Buttons
  • How to Configure The OLED Display
  • Device Assembly
  • Programming, Test and Troubleshooting
  • Summary

**********************************************************************************************************************

In this chapter I will show you how to configure the OLED display of the CY8CKIT-028-SENSE module. I will do this example on the PSoC 62S4 Pioneer Kit board and the difficulty is that you have to follow a few steps in ModusToolbox. 

CY8CKIT-028-SENSE

The IoT sense expansion kit is a low-cost ArduinoTm UNO compatible shield board that can be used to easily interface a variety of sensors with the PSoCTm 6 MCU platform, specifically targeted for audio and machine learning applications.

image

  • Digital XENSIVTm MEMS Microphone(s)
  • Digital XENSIV Barometric Air Pressure Sensor
  • Bosch 9-axis Absolute Orientation Sensor
  • Piezo MEMS Analog Microphone
  • Audio Codec and headset jack
  • OLED Display Module

 In my design I am interested in using the OLED display to show messages, and this device has 128x64 pixel dot matrix OLED display driven by SSD1306 controller.

Creating an emWin application

ModusToolboox has the example application "emWin_OLED_FreeRTOS", but this app does not exist for the PSoC 62S4 board. So my strategy is to create the project for the PSoC 62S2 board, and then change the project settings to select the PSoC 62S4 board.

image

I have selected the application and I have given it the project name: "emWin_OLED_FreeRTOS_Config"

image

After a few minutes, the project "emWin_OLED_FreeRTOS_Config" has been created.

image

Now we open "Library Manager 2.0" from Quick Panel

image

Click "Add BSP", then select CY8CKIT-062S4 board and click OK as shown below.

image

Select "APP_CY8CKIT-062S4" in active mode. Finally click on Update.

image

Close Library Manager. Now open the Makefile and change the target settings: TARGET=APP_CY8CKIT-062S4

image

The Flash memory of the PSoC 62S4 board (256 MB) is less than the 62S2 board (512 MB). This example code uses a lot of memory in images, so when compiled it will surely indicate errors.

image

At the moment I'm only interested in testing the OLED display. So, open the oledTask.c file, comment the "MainTask()" appwizard and show a simple message on the OLED display as shown below.

image

We recompile the project again, and now we see that there are no errors.

image

Test

After upload the code we can test the OLED display on PSoC 62S4 board. The project works well as you can see below.

image

Conclusion

Everything done so far is going according to plan. The OLED screen is working fine and could be configured to be used with the PSoC 62S4 board to integrate it into my project, although there is no example application with ModusToolbox we already learned how to make it work.

  • Sign in to reply
  • guillengap
    guillengap over 2 years ago in reply to navadeepganeshu

    Thanks for your comment! That was my goal, because I had this problem a few months ago.

    Kind regards

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • navadeepganeshu
    navadeepganeshu over 2 years ago

    This is nice! Thanks for explaining the workaround with the OLED interface.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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