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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
Smarter Life
  • Challenges & Projects
  • Design Challenges
  • Smarter Life
  • More
  • Cancel
Smarter Life
Blog A Very Compact Christmas Display - Part 019
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: COMPACT
  • Date Created: 20 Nov 2013 9:14 PM Date Created
  • Views 416 views
  • Likes 1 like
  • Comments 2 comments
  • psoc4
  • psoc_4
  • smarter_life_challenge
  • psoc_4200
  • compact_xmas_display
  • smarter_life
  • psoc
Related
Recommended

A Very Compact Christmas Display - Part 019

COMPACT
COMPACT
20 Nov 2013

Sensational!

imageimageimageimage

 

Why have I focussed so much upon standard Timer component? Well it is a extremely useful component and is a great introduction for the PSoC 4 native TCPWM (Timer Counter PWM) mechanism.

Above are screenshots of the signal captures of an AMS TCS3200 colour sensor with various light sources.

The sensor is a 4 channel light intensity to frequency converter. The channels are Red, Blue, Intensity, Green.

The more intense the light, the higher the output frequency thus the shorter its pulse duration.

 

I have used the PSoC 4 to select the desired channel and record the pulse length.

I configured it to measure a half-period. To convert it back to a frequency the measured value needs to be doubled and then reciprocated.

For this demonstration I used the handy capture counter feature to skip the first two pulses and measure the third.

Doing this enables initial poorly formed pulses to be ignored.

 

I used the design for the Old timer article but added 3 Output pins for the colour sensor's 2 address inputs and output enable input.

 

If you look closely at the screen shots you will notice that my measurement of the green LED has a small red component.

Similarly for the (pale) blue LED where there is a tinge of green.

No such observation from the RED LED.

  • Sign in to reply
  • COMPACT
    COMPACT over 12 years ago in reply to DAB

    Hi Don,

    A closer examination of the datasheet explains everything.

    The response curves of the green and blue sensors have double peaks across the visible spectrum.

    The secondary peak is substantial and needs to be factored into the interpretation of the raw data.

     

    Very Compact

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 12 years ago

    Hi Monte,

     

    An interesting discovery.

    I wonder if the material used to make the Green and Blue tint might also emit the red tint.

    Given the level of output, I suspect that it will not cause you any problem unless you want to do some very specific colour output.

     

    DAB


    • 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