randomvalue
Newbie level 5
Hi all,
I know there are several threads to this, but none that I have found addressed my question.
I have a project that requires a variable frequency be converted into a linear voltage. The frequency is generated from dc and has a max rise of 12v. It does not swing below 0. It varries from 100hz to 250hz. I would like to have the output between 0 and 5vdc. eg at 100hz the output would be 0.1v and at 250hz the output would be 4.9v. This is to feed a PIC microcontroller's ADC. I can use a voltage divider to bring the voltages down to workin levels if needed.
now the question:
I want to just use a not gate to invert the signal and rectify back to dc. Is this a possibility? if not whats wrong with my idea?
Thanks,
Random
I know there are several threads to this, but none that I have found addressed my question.
I have a project that requires a variable frequency be converted into a linear voltage. The frequency is generated from dc and has a max rise of 12v. It does not swing below 0. It varries from 100hz to 250hz. I would like to have the output between 0 and 5vdc. eg at 100hz the output would be 0.1v and at 250hz the output would be 4.9v. This is to feed a PIC microcontroller's ADC. I can use a voltage divider to bring the voltages down to workin levels if needed.
now the question:
I want to just use a not gate to invert the signal and rectify back to dc. Is this a possibility? if not whats wrong with my idea?
Thanks,
Random