Markbishop16
Member
Hello
I need some programming tips on how to do this:
I have a pulsing input (that will gradually build up and down between 0 and 4 Hz ) it will need to pulse an output at the same frequency until the input goes above a certain frequency (say 2 Hz )when I would like the output to remain constant at say 2 Hz. If the input then starts to drop below 2 Hz the LED will need to follow it.
This is low frequency, a mechanical wheel is going to flash an LED for an operator to watch. The actual frequency I will have to debug for accuracy, but the values here are near enough.
I understand inputs and outputs and the COUNT feature but I have no idea how to combine the counting and an output and then to hold that output until the input changes.
I hope this makes sense. The input device will be a Hall effect sensor with a magnet on the wheel.
I need some programming tips on how to do this:
I have a pulsing input (that will gradually build up and down between 0 and 4 Hz ) it will need to pulse an output at the same frequency until the input goes above a certain frequency (say 2 Hz )when I would like the output to remain constant at say 2 Hz. If the input then starts to drop below 2 Hz the LED will need to follow it.
This is low frequency, a mechanical wheel is going to flash an LED for an operator to watch. The actual frequency I will have to debug for accuracy, but the values here are near enough.
I understand inputs and outputs and the COUNT feature but I have no idea how to combine the counting and an output and then to hold that output until the input changes.
I hope this makes sense. The input device will be a Hall effect sensor with a magnet on the wheel.