Hey all,
I'm using a ratiometric hall-effect sensor to measure the motion of a lever, but I need to scale and offset the output as well as do a few other things. I've tried for several days now, but it's definitely way beyond me. It's a bit complicated, so I'll explain below.
I have a lever with a magnet attached, and as the lever is pushed down, the magnet approaches a hall-effect sensor. Currently with the hall-effect sensor powered by 8V, it's output is approx 4.2V resting, and 1.2V with the lever fully-pushed in.
The output I want for the motion of travel is 0 to +5V. I also want to have a small dead-zone at the start of the motion, that I can trim to ensure that the output is never above 0V while the lever is in it's resting position.
The second part of this problem is that I also want this 0 to +5V sensor output to interface with the amp bias input pin of an LM13700 OTA. I'm using a +/- 15V power supply and I've measured this bias input pin to be at -14.2V. When the lever is resting (output 0V), this bias input pin shouldn't be sinking any current (in fact, it can be sourcing some current). But as the lever is depressed fully (and the offset and scaled sensor voltage is outputting +5V), this bias input pin should be sinking approximately .8mA - 1mA.
I hope this all makes sense. If anything needs clarification, I can try to explain better.
Like I said above, I currently have the hall-effect sensor running off +8V (just a voltage divider off the +15 supply), and the magnet oriented to reduce the sensor's output voltage as the magnet approaches as the lever is pushed down. But, if changing any of this around can make things easier, it can all change; hall-effect sensor power supply, magnet orientation, etc. If it helps, the hall-effect sensor has a maximum supply voltage of 10V.
Attached is my attempt...
It might need explaining, since I'm a bit of a hack
- The hall-effect sensor's output is just simplified as a switch between it's min and max output @ 8V supply.
- the first op-amp scales, inverts and offsets the hall-effect sensor's output.
- the diode and resistor to ground stops the negative output from the opamp reaching the second stage, allowing the first little bit of negative voltage to essentially be a "dead zone" in the lever's travel that I can trim.
- (the 100k resistor to nowhere is the 0-5V output)
- the second op-amp is just a buffer
- the third op-amp is a non-inverting summer, with the voltage divider at the bottom providing an offset so that the output voltage of this stage is slightly below -14.2V when the previous stage is at 0V.
- the 6.8k is a current limiting resistor going into the -14.2V to represent the bias input pin of the OTA.
whew, okay.. hope that all makes sense. I'm guessing there are easier, more logical ways to do this.
- Mike
I'm using a ratiometric hall-effect sensor to measure the motion of a lever, but I need to scale and offset the output as well as do a few other things. I've tried for several days now, but it's definitely way beyond me. It's a bit complicated, so I'll explain below.
I have a lever with a magnet attached, and as the lever is pushed down, the magnet approaches a hall-effect sensor. Currently with the hall-effect sensor powered by 8V, it's output is approx 4.2V resting, and 1.2V with the lever fully-pushed in.
The output I want for the motion of travel is 0 to +5V. I also want to have a small dead-zone at the start of the motion, that I can trim to ensure that the output is never above 0V while the lever is in it's resting position.
The second part of this problem is that I also want this 0 to +5V sensor output to interface with the amp bias input pin of an LM13700 OTA. I'm using a +/- 15V power supply and I've measured this bias input pin to be at -14.2V. When the lever is resting (output 0V), this bias input pin shouldn't be sinking any current (in fact, it can be sourcing some current). But as the lever is depressed fully (and the offset and scaled sensor voltage is outputting +5V), this bias input pin should be sinking approximately .8mA - 1mA.
I hope this all makes sense. If anything needs clarification, I can try to explain better.
Like I said above, I currently have the hall-effect sensor running off +8V (just a voltage divider off the +15 supply), and the magnet oriented to reduce the sensor's output voltage as the magnet approaches as the lever is pushed down. But, if changing any of this around can make things easier, it can all change; hall-effect sensor power supply, magnet orientation, etc. If it helps, the hall-effect sensor has a maximum supply voltage of 10V.
Attached is my attempt...
It might need explaining, since I'm a bit of a hack
- The hall-effect sensor's output is just simplified as a switch between it's min and max output @ 8V supply.
- the first op-amp scales, inverts and offsets the hall-effect sensor's output.
- the diode and resistor to ground stops the negative output from the opamp reaching the second stage, allowing the first little bit of negative voltage to essentially be a "dead zone" in the lever's travel that I can trim.
- (the 100k resistor to nowhere is the 0-5V output)
- the second op-amp is just a buffer
- the third op-amp is a non-inverting summer, with the voltage divider at the bottom providing an offset so that the output voltage of this stage is slightly below -14.2V when the previous stage is at 0V.
- the 6.8k is a current limiting resistor going into the -14.2V to represent the bias input pin of the OTA.
whew, okay.. hope that all makes sense. I'm guessing there are easier, more logical ways to do this.
- Mike