Fearful Ferret
New Member
I've got a photo interrupter circuit which switches its output between 0V and 5V based on whether an object is between the arms of the photo interrupter. The signal I'm expecting will be about a 30-80 Hz square wave with 5-10% duty cycle. I need to measure this signal in real-time using C++; specifically, I need to be able to associate each rising edge with a timestamp. I'd rather avoid having to buy an AD converter and just use a port that I can interface with in C++. I've thought about using the sound card's AD converter using a mic port, but I'm not sure if it'll work with such a low frequency signal and I'm not sure how to access the audio information. It's been a while since I've used C++, so try to be specific with help in that regard.
Thanks in advance!
Thanks in advance!