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 020
  • 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: 22 Nov 2013 9:59 AM Date Created
  • Views 887 views
  • Likes 1 like
  • Comments 5 comments
  • psoc4
  • psoc_4
  • smarter_life_challenge
  • psoc_4200
  • compact_xmas_display
  • smarter_life
  • psoc
Related
Recommended

A Very Compact Christmas Display - Part 020

COMPACT
COMPACT
22 Nov 2013

Neither True Nor False!

image

Some remote controls double up their illumination LEDs as light detectors to reduce the part count and cost so I thought I'd attempt to reduce the part count even further with a PSoC 4.

LEDS can double as photodiodes and can be connected to transimpedance amplifiers (TIA) to convert their minuscule current into readable voltages.

This is nothing new and I've done this before with an XL Star. The specified item was not found.

 

The above circuit can be distilled to just two external components although I've drawn it with four.

The two external components are the LED and 1Megohm feedback resistor.

If there are stability issues then a capacitor can be installed in parallel to the feedback resistor.
The optional parts are two resistors to form a zero offset calibration network tune the response to the most linear response portion of the photodetector.

This offset is set so that zero output equates to the dark condition.

 

In the main program the Analog Mux must be started with AMux_1_Start(). IDAC_1 is also should be started and initialised with a value of zero for no illumination with IDAC_1_Start().

Other preparations such as the initialisation of the ADC should also be performed.

By default the Analog mux is disconnected from both its inputs so a AMux_1_Select(0) connects the LED to the IDAC.

Now the LED can be illuminated with a IDAC_1_SetValue() for a setting up to 612uA. This is sufficient for many applications particularly with modern superbright LEDs.

 

The change from illuminator to an ambient light sensor is done by with the Analog Mux by changing its connection from the current source to the TIA using a AMux_1_Select(1).

Reading the ambient light value is as easy as reading the output value of the ADC.

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

    Hi Monte,

     

    I like your proposed solution.

    I have never used an LED as a light sensor, so I do not know if the signal will be strong enough to get a good reading.  So I am very interested in your success.

     

    DAB


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

    DAB,

    Take a look at this movie, using an LED array as touch input. Really great stuff, from the same research group that created one of the first multitouch interfaces!

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

    Hi Victor,

     

    Thanks for the link.  It was a very impressive video.

    Learned two things today.

     

    DAB


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

    Hi Victor,

     

    Thanks for the link.  It was a very impressive video.

    Learned two things today.

     

    DAB


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