element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
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
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Cypress Kits requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 5 replies
  • Subscribers 15 subscribers
  • Views 316 views
  • Users 0 members are here
  • 100projects
Related

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

cy.wbz
cy.wbz over 9 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.


 

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
  • Reply
  • Cancel
  • Cancel

Top Replies

  • piyush
    piyush over 9 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!!

  • piyush
    piyush over 9 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
    • Up +2 Down
    • Reply
    • Cancel
  • cy.wbz
    cy.wbz over 9 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
    • Up 0 Down
    • Reply
    • Cancel
  • DAB
    DAB over 9 years ago

    I built an early digital oscilloscope back in 1982 to collect and display radar signals.

    It was a rack sized unit, probably about 1000 times the volume of your board set.

     

    I hope your example helps others realize that they can do real time data collection and display with just a few tools.

     

    Great series.

    DAB

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • Former Member
    Former Member over 7 years ago

    hello!

    i am confused about the connection between pioneer board and nokia 6100 lcd,can you give a  detailed schematic diagram?

    thank you!

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • trenx
    trenx over 7 years ago

    :/ cant get the lcd screen, and cant get to figure out how to use arduino tft

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube