I have a two-way thumb gas control which outputs two Hall-effect signals, each between 0.7 V and 4.0 V. I want to connect it to one ADC pin to control a motor.
Normally I run it with one Hall-effect signal and an extra switch that grounds an Rx pin that controls driving the motor in reverse.
Now my idea is to do it with a two-way thumb gas control connected in parallel to the ADC pin and separated with a diode.
For reversing the motor direction, I thought about using a transistor to pull the Rx pin to ground when the backward thumb gas control is active above 0.7 V.
Are there any objections regarding this?
If no, would be glad to got some tips which diode and transistor I could use and how to dimension the resistors.