Measuring Amplitude of AC Signal from Phototransistor

I'm trying to use a diffused RGB LED and a phototransistor (TEMT6000) to determine the color of a surface. I want to reflect red, green, yellow and blue light off a multi colored surface and determine a color at a point by measuring the intensity of the reflected light using the phototransistor. I will blink these colors one at a time of course.

I'm trying to use an ADC to measure the amplutide of the output signal from my phototransistor.

I'm testing with this breakout board from sparkfun (BOB-08688). My output signal will stay within VCC and GND. To avoid interference with ambient light I want to blink my RGB led at a TBD frequency, use a high-pass filter to eliminate the DC components (ambient light) and output only the frequency my LED will blink at. My output signal's amplitude should peak when the LED light is reflecting off a surface of the same color.

How do I convert a signal with a constant frequency but a varying amplitude to a form where an ADC can accurately measure its amplitude?

Thank you!

by moles_n_men
April 22, 2020

Your last paragraph sounds for all the world like a description of a detector for an amplitude modulated radio signal. You might be able to use the old crystal radio approach---diode rectifier to convert the ac to variable dc then measure that.

by Foxx
April 22, 2020

No Answers

No answers yet. Contribute your answer below!


Your Answer

You must log in or create an account (free!) to answer a question.

Log in Create an account


Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

Search Questions & Answers


Ask a Question

Anyone can ask a question.

Did you already search (see above) to see if a similar question has already been answered? If you can't find the answer, you may ask a question.


About This Site

CircuitLab's Q&A site is a FREE questions and answers forum for electronics and electrical engineering students, hobbyists, and professionals.

We encourage you to use our built-in schematic & simulation software to add more detail to your questions and answers.

Acceptable Questions:

  • Concept or theory questions
  • Practical engineering questions
  • “Homework” questions
  • Software/hardware intersection
  • Best practices
  • Design choices & component selection
  • Troubleshooting

Unacceptable Questions:

  • Non-English language content
  • Non-question discussion
  • Non-electronics questions
  • Vendor-specific topics
  • Pure software questions
  • CircuitLab software support

Please respect that there are both seasoned experts and total newbies here: please be nice, be constructive, and be specific!

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.