Hi all,
I have a 0-5v variable signal. I'm looking for a device that can perform some logic operations. Basically, I want to create a circuit that passes the variable signal without modifying it, except when 0v is received I want to output 2.5v instead.
To give you some background info...
In simple terms, I'm using a potentiometer to control a motor via a controller.
2.6-5v turns the motor in one direction.
0-2.4v turns the motor in the opposite direction.
At 2.5v the motor stops.
This is being operated via radio control.
The problem is that when you turn off the radio control, the motor controller receives 0v which makes the motor go full speed in reverse (and has caused a number of "accidents"). Instead, when the remote is switched off, I want the motor to stop too.
In my mind, it's a simple logic gate that says:
If inputA == 0v Then
output 2.5v
Else
output inputA
End
But I don't know how to achieve this with electronic components.
Thanks all in advance for any advice
I have a 0-5v variable signal. I'm looking for a device that can perform some logic operations. Basically, I want to create a circuit that passes the variable signal without modifying it, except when 0v is received I want to output 2.5v instead.
To give you some background info...
In simple terms, I'm using a potentiometer to control a motor via a controller.
2.6-5v turns the motor in one direction.
0-2.4v turns the motor in the opposite direction.
At 2.5v the motor stops.
This is being operated via radio control.
The problem is that when you turn off the radio control, the motor controller receives 0v which makes the motor go full speed in reverse (and has caused a number of "accidents"). Instead, when the remote is switched off, I want the motor to stop too.
In my mind, it's a simple logic gate that says:
If inputA == 0v Then
output 2.5v
Else
output inputA
End
But I don't know how to achieve this with electronic components.
Thanks all in advance for any advice