Servo Reverser and Slow
Posted: Sun Feb 03, 2019 11:41 pm
On another forum, there is a post showing the use of an Arduino Pro Mini as a servo exerciser. A question was then asked if it could be modified to operate as a servo reverser or a servo slow. Another question was then asked if a switch output could be added so that, for example, if flaps were lowered, the switch could then turn on landing lights.
So, I've put together some Arduino code to do all three!
It is here on Github: https://github.com/MikeBland/ServoReverser.
It takes a single channel input, and outputs the same pulse but reversed on one output, the pulse slowed on a second output and a logic output that switches based on the input pulse value.
There are some #defines at the top of the file to configure the operation.
You may reverse the slow output.
You may set the end to end time for the slowed output.
You may choose whether the logic output switches high or low.
You may set the point on the input pulse where the switch activates.
You may set some hysteresis so the switch doesn't "jitter" if the input pulse is hovering around the switching point.
No doubt other functions could be added, a door sequencer was mentioned!
Mike
So, I've put together some Arduino code to do all three!
It is here on Github: https://github.com/MikeBland/ServoReverser.
It takes a single channel input, and outputs the same pulse but reversed on one output, the pulse slowed on a second output and a logic output that switches based on the input pulse value.
There are some #defines at the top of the file to configure the operation.
You may reverse the slow output.
You may set the end to end time for the slowed output.
You may choose whether the logic output switches high or low.
You may set the point on the input pulse where the switch activates.
You may set some hysteresis so the switch doesn't "jitter" if the input pulse is hovering around the switching point.
No doubt other functions could be added, a door sequencer was mentioned!
Mike