>>>> Rick C wrote:
>>>>> s7382 wrote:
>>>>>> I am controlling a speaker/LED with a PC fan. The speaker's tone
>>>>>> and the LED's blink rate should be proportional to the speed of the
>>>>>> fan. How do I do so? The fan looks like this:
>>>>>>
https://i.stack.imgur.com/kjAMj.png
>>>>> How fast do you want to blink the LED?
>>>>>
>>>>> What frequency do you want to drive the speaker and what wave shape
>>>>> works for you?
>>>>>
>>>>> What is the PWM frequency range and/or pulse width range?
>>>>>
>>>>> What tools do you have available?
>>>>>
>>>>> Very likely you can do this with a simple counter chip depending on
>>>>> the frequency ranges.
>>>> I should have asked for the details on the tach output since that
>>>> measures the fan speed.
>>> Should be pulse per revolution, or hundreds per second. So, one input
>>> counter and two output counters. Micro controller or FPGA if desired.
>> What's wrong with one counter? The tach output is most likely high
>> enough it can be either used directly or divided down and the LED
>> certainly will need to be divided down. Why use multiple counters?
>> Maybe you are thinking of counters in an MCU? Too complicated.
> Need to shift up for audio/speaker as well.