I have a sensor that puts out 0-5 volts. When it is putting out 5 volts though, I need 0 volts. When it is putting out 0 volts I need 5 volts. When it is putting out 4 volts I need 2 volt.
How many volts I have : How many I need
0 : 5
1 : 4
2 : 3
3 : 2
4 : 1
5 : 0
I think you guys get the point. How can I do this?
How many volts I have : How many I need
0 : 5
1 : 4
2 : 3
3 : 2
4 : 1
5 : 0
I think you guys get the point. How can I do this?