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#012 – Pioneer Board Oscilloscope
  • 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 5 replies
  • Subscribers 29 subscribers
  • Views 2103 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#012 – Pioneer Board Oscilloscope

cy.wbz
cy.wbz over 12 years ago

Hello!


This example utilizes the analog and digital components of PSoC 4 to implement an oscilloscope. The oscilloscope supports software voltage scaling, time scaling, and measuring signal parameters. The oscilloscope supports input signals of amplitude 0-3.3V and signal frequencies of up to 20KHz.

 

Note: There was a minor change to the download file made on 5/17/2013 to include more comments on the design and code.


image

 

Forum Post Attachments:

 

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

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

  • SPI Master
  • PWM
  • ADC SAR Sequencer
  • CyPin
  • CyClock

 

Note this example does not use the GLCD component detailed in element14 examples #009-011.

 

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. A brief description of the project is given below.

 

The SAR ADC of the PSoC 4 is used to sample the input signal and store the digital values in a buffer. Out of these sampled values, 128 samples are selected starting with a value greater than average of the collected samples. The selected samples are then displayed on the Color LCD.

 

The three buttons available on the Color LCD shield are used for voltage scaling, time scaling and to display the signal parameters (Vp-p and frequency).

 

Button S1 is used for voltage scaling. On every button press, the scaling value is incremented and the collected samples are suitably scaled before they are displayed on the Color LCD.

 

Button S2 is used for time scaling. On every button press, the period of PWM is varied which changes the sampling frequency of the SAR ADC.

 

Button S3 is used to display the parameters of the signals (Vp-p and the frequency). On every button press, the minimum and the maximum value of the samples as well their positions are found and used to calculate the Vp-p and the frequency of the signal. This is a crude method implemented to calculate the signal parameters and accurate values cannot be expected.

 

Hardware Connections:

 

Please connect the Sparkfun Graphics LCD Shield to the Pioneer Kit.

 

To read in an analog value insert a wire into A5 or P2[5]. This pin is the outside pin on the ‘Analog In’ header of the GLCD shield or J2 header on the Pioneer Board. The user will need to also make sure to tie the ground of what they are testing to the ground of the Pioneer board.

 

Test Your Project:

 

Once the kit is programmed with the example project the user will be able to connect an input to the Shield and being to use the oscilloscope.

 

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

 

Best,

Matt

Attachments:
0005.Project Images.zip
Mini oscilloscope project 5-17-2013.zip
  • Sign in to reply
  • Cancel

Top Replies

  • piyush
    piyush over 12 years ago +2
    Its an great project for begginers!! Its a good alternative, i'll surely build one and use it at home!! Great work Matthew!!
Parents
  • piyush
    piyush over 12 years ago

    Its an great project for begginers!! Its a good alternative, i'll surely build one and use it at home!!

     

    Great work Matthew!!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • piyush
    piyush over 12 years ago

    Its an great project for begginers!! Its a good alternative, i'll surely build one and use it at home!!

     

    Great work Matthew!!

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Cancel
Children
  • cy.wbz
    cy.wbz over 12 years ago in reply to piyush

    Piyush,

     

    Thanks for the feedback. I hope you enjoy it. I had to clean up a litttle text this morning to remove some erroneous CapSense statements. The example was developed by one of our Application Engineers, Anush. I've asked him to monitor this posting to answer any questions that might arise.

     

    Also I've updated the project that's posted in my comment above. Anush went through and added more comments to the schematic files. Take a look at the new project.

     

    Many thanks!

    -Matt

    • 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