mikeleslie
Active member
Hi
I have a situation that seems simple to me but I just can’t seem to come up with an approach to properly deal with it. The situation is this:
I have a hall effect sensor with an output frequency in the 1 to 120 Hz range. There are some mechanical issues which require me to make “adjustments” to the output frequency.
So basically I need to have 2 concurrent processes running, one which tracks the input frequency, and one which generates a “corrected” output frequency.
I thought of 2 approaches:
1) setting it up as a PWM output and just change the frequency a couple of times a second, but that looks fairly disruptive to the system. In this case I could just set up the output and then whenever I need to, just change the frequency. Does this seem reasonable?
2) Linking 2 devices together, one to read the sensor and calculate the corrections, the other to read the required frequency and maintain the proper output signal. frequency
I know there must be a better way, any thoughts would be much appreciated. All of my projects have been with the Teensy 3.x.
I have a situation that seems simple to me but I just can’t seem to come up with an approach to properly deal with it. The situation is this:
I have a hall effect sensor with an output frequency in the 1 to 120 Hz range. There are some mechanical issues which require me to make “adjustments” to the output frequency.
So basically I need to have 2 concurrent processes running, one which tracks the input frequency, and one which generates a “corrected” output frequency.
I thought of 2 approaches:
1) setting it up as a PWM output and just change the frequency a couple of times a second, but that looks fairly disruptive to the system. In this case I could just set up the output and then whenever I need to, just change the frequency. Does this seem reasonable?
2) Linking 2 devices together, one to read the sensor and calculate the corrections, the other to read the required frequency and maintain the proper output signal. frequency
I know there must be a better way, any thoughts would be much appreciated. All of my projects have been with the Teensy 3.x.