Electronic – Altera DE2 interfacing with analog sensor

adcfpgaintel-fpga

Can Altera GPIO pins read the analog output of a light sensor? The light sensor output is analog and I want the Altera to turn an LED on whenever the signal of the sensor is greater than some specific value.

Can I do that directly, or do I have to connect the output of the sensor to an ADC? How would I go about that?

Best Answer

If your Altera has LVDS inputs, you've got a fairly good comparator. It's possible to make a crude Sigma-Delta (or PWM) DAC and thus get a crude ADC. It's not going to be a very good ADC- noisy and the default reference is the crummy digital supply rails and range will be limited, but if all you need is a few bits it might work for you.