I'm working on a brushed dc motor driver and I have to monitor the current. so I use ACHS-7121 current sensor. This sensor convert +-10A into 0V to +5V and have +2.5V in zero current.
Now I want to shift this to 0v to 10v without including the current direction. It means that the sensor shows that 0V to +2.5V means the current is negative and +2.5V to +5V the current is positive. But I want the op-amp map the values that include negative current (0V to +2.5V) on positive values and ignore the current direction. \$ V_O = |V_I -2.5| \times 4 \$
I found difference amplifiers such as AD8276 but I'm not sure about that if it works for me or not if I use single positive supply. Can anyone suggest another solution or confirm that AD8276 works fine?