Braeden Hamson
- Feb 18, 2016
- 240
- Joined
- Feb 18, 2016
- Messages
- 240
Hey guys, I'm working on my joystick. I have some hall effect sensors on it that provide the angle sensing, I forget their part number but they're not the focus here. The issue is the ~30º of movement the joystick has only creates ~-2.5V difference between the high and low output if the hall sensor. I can for example make the lowest value 1V and the upper limit 3.5V, 2V and 4.5V and so on. The arduino I'm using to take these voltages and talk to the computer likes a 5V difference between low and high. Because of this I have to adjust the calibration of the stick in the software in to treat the 2.5V difference as full range. This effectively cuts the resolution of the stick in half.
I'm trying to wire up an op amp to amplify that voltage, Since this is all powered off of a single USB I don't have the luxury of VCC + and -. I found a helpful TI datasheet that gives the following schematic for a single supply op amp. (first image) They give a handy transfer function (second image) I don't want an offset, b, so I've made Vref 0 and I need a gain of 2 so I've made R1 0Ω and R2 to be 1KΩ Thus making that portion of the equation 1. Then RF and RG are two sides of a potentiometer. With one side of the pot wired to the output and the other to ground, the wiper then goes to the inverting input.
The problem then arises when I build the damn thing. VCC is 5V supplied by the arduino, VCC- is ground. With input voltages from 2.5 to 1 everything works well. Below ~1V the opamp output goes to 4.5V and doesn't fluctuate. I'm using an RC4558P. I can tune my pot all day and nothing changes. Any help?
I'm trying to wire up an op amp to amplify that voltage, Since this is all powered off of a single USB I don't have the luxury of VCC + and -. I found a helpful TI datasheet that gives the following schematic for a single supply op amp. (first image) They give a handy transfer function (second image) I don't want an offset, b, so I've made Vref 0 and I need a gain of 2 so I've made R1 0Ω and R2 to be 1KΩ Thus making that portion of the equation 1. Then RF and RG are two sides of a potentiometer. With one side of the pot wired to the output and the other to ground, the wiper then goes to the inverting input.
The problem then arises when I build the damn thing. VCC is 5V supplied by the arduino, VCC- is ground. With input voltages from 2.5 to 1 everything works well. Below ~1V the opamp output goes to 4.5V and doesn't fluctuate. I'm using an RC4558P. I can tune my pot all day and nothing changes. Any help?