Thanks, it worked!!!Yes, if you don't understand the problem, change the resistors.
Changed the resistor value and found out that the lower the closest I was getting to the voltage I needed (2.5v), but the only way to reach the 2.5v, and therefore keep the range between 0v and 5v was to remove the feedback resistor. Not sure if this is a good idea, but it works in the simulation, even with the 5-terminal virtual opamp.When no pedals are pushed, the output should be 2.5V; this represents coasting. What the problem is, there is too much amplification of the input. Change the gain to half its value by decreasing the gain resistor to half its value (10k) or put in a voltage divider.
I need to go now, I'll be back in a few hours.
No, a comparator will not work. A comparator has 2 defined outputs (high and low); + being a higher voltage potential than the -, and the other way around. It will not give you a range of voltages.Found an IC at home that might work. It's an AZ339P-E1 and the datasheet says it's a quad comparator (full specs here: http://pdf1.alldatasheet.com/datasheet-pdf/view/176223/BCDSEMI/AZ339P-E1.html)
Could this IC do the trick?
Then WHY did you tell me, when I asked abouit what you meant by "balanced", that, "Each pot on each pedal is at 25% when it's not pressed (I guess that's 5Kohms), and at 75% when it's fully pressed (around 15Kohms). "?It's working well in this configuration. At the beginning LCD3 proposed the pots in the direction you mention, but then both pots where doing the exact same function (adding the output basically). I turned one around, because I knew by testing these past weeks that you needed to do it this way, and now one pedal adds to the output while the other subtracts;
Taking out the feedback resistor makes the opamp a voltage follower which, in this case, means that it will output the average of the two pedal positions, which is what you want. With the mod you have made to the pedal, when one is pressed you are averaging 25% and 25% and when the other is pressed you are averaging 75% and 75%. When neither is pressed you are averaging 25% and 75%.I don't think it needs more adjustments; just worried about taking out the feedback resistor, and if the device will be able to provide the extra 5v for the opamp.
No, a comparator will not work. A comparator has 2 defined outputs (high and low); + being a higher voltage potential than the -, and the other way around. It will not give you a range of voltages.
Both are at 25% when released; but if you think about it's just relative, because 25% towards the top pin is 75% towards the bottom pin. So when I say they are at 25% I mean towards the same direction.Then WHY did you tell me, when I asked abouit what you meant by "balanced", that, "Each pot on each pedal is at 25% when it's not pressed (I guess that's 5Kohms), and at 75% when it's fully pressed (around 15Kohms). "?
This is NOT how you have them hooked up because you have modified the pedals. Now one pot is at 25% when not pushed and the other is at 75% when not pushed. One increases as it's pushed and the other decreases as it's pushed.
So what are you going to do when you switch back to a car configuration? Remodify your pedals?
At the moment, with the last modification, I'm getting 2.5v when both pots are at 25% (the minimum they allow) and the same voltage if they are pressed at the same rate; I get 1.250v when the top pot is moved to 75% (which is the max allowed); and I get 3.750v when the bottom pot is moved to 75%. If both pedals are moved, then I get the difference (above 2.5v if the top is moved more, and below 2.5v if the bottom is moved more). It seems to be perfect this way.Taking out the feedback resistor makes the opamp a voltage follower which, in this case, means that it will output the average of the two pedal positions, which is what you want. With the mod you have made to the pedal, when one is pressed you are averaging 25% and 25% and when the other is pressed you are averaging 75% and 75%. When neither is pressed you are averaging 25% and 75%.
Yes, I just changed it to a lower value and it has no effect. What value would you recommend; 1K?Without the feedback resistor, you could remove (remove, not replace it with a shortcircuit like you did the feedback resistor) the other resistor tied to the inverting input as it is having little effect.
A 741 op-amp requires a dual voltage supply (usually +15 V and -15 V). If you don't have a dual supply, it won't work the way you want it to. The offset pins are to allow an adjustment so the when both inputs are equal, the output is 0 V. See the datasheet for the proper component connection.Finally got the opamp -I couldn't find the MC33201 so got another one (an UA741CN). I tested it first on a breadboard and it's not working.
I set the positive to 5v with a DC power supply and the output is stuck 2v; except when I move the 2nd pot, which changes the voltage to 3.5v when I move it towards the center. The other pot does absolutely nothing.
Not sure if I got the proper opamp. Maybe this one needs more than 5v Vcc.
By the way: what's the "offset null" pin for?
Thanks, since they didn't have the one you recommended I just asked for any opamp. I asked him for one with a low Vcc voltage, but the guy was a bit pissed off for not giving him the exact reference of what I wanted.A 741 op-amp requires a dual voltage supply (usually +15 V and -15 V). If you don't have a dual supply, it won't work the way you want it to. The offset pins are to allow an adjustment so the when both inputs are equal, the output is 0 V. See the datasheet for the proper component connection.
The LM748 also operates with a dual power supply, from +5 V and -5 V to +15 V and -15 V. It is best to have equal voltages away from ground.I've been looking through this list of OP-AMPS searching if any of the single ones were available in my local shop. The only ones seem to be the 15v ones, I can't find any that would work at 5v except this one LM748.
This is actually about the performance you would expect. The 741 can typically produce output voltages that are within roughly 1V to 3V of the supply rails. Thus, if powered between 0V and 5V, the highest voltage you can get out of it is going to be somewhere between 2V and 4V and the lowest voltage you can get out of it is going to be somewhere between 1V and 3V. Notice the overlap in those ranges -- this means that you could get a part that does nothing but puts out a fixed 2.14V that is insensitive to your inputs altogether and it would still be operating within spec!Finally got the opamp -I couldn't find the MC33201 so got another one (an UA741CN). I tested it first on a breadboard and it's not working.
I set the positive to 5v with a DC power supply and the output is stuck 2v; except when I move the 2nd pot, which changes the voltage to 3.5v when I move it towards the center. The other pot does absolutely nothing.
Not sure if I got the proper opamp. Maybe this one needs more than 5v Vcc.
By the way: what's the "offset null" pin for?
This is taking longer than I thought. Anyway, here is a partial list.I've been looking through this list of OP-AMPS.
You don't need to identify every opamp that would work. Remember, you only need to get your hands on ONE that works!This is taking longer than I thought. Anyway, here is a partial list.
Thanks a lot...This is taking longer than I thought. Anyway, here is a partial list.
Went through your list and they only have 1 in my local shop, the LM324N. I don't like it for this project because I prefer a DIP8 single opamp, but I'll get it anyway to keep at home for other tests and experiments.This is taking longer than I thought. Anyway, here is a partial list.
So far I think the TL081 is my best option, along with the TL071 (though it's more expensive); can't find anything else that would meet the specifications and is available at the shop.I used the TL074 and TL084 (the quad versions of the TL071 and TL081) in the first product I designed and was quite satisfied. That entire product consumed under 1mA of current, so you've got a chance at powering your circuit without having to bring in external power.
Yes, if I can get an output range between 1.250v and 3.750 I think that would do.The TL081 is not rail-to-rail and may only get you to within a volt or so of the supply rails. But that may be workable since you seem to be interested primarily in output voltages that are between 25% and 75%, or a range of about 2.5V. If you can get to within 1.25V of each rail, then you have a workable signal. Since you already need to use a light loading, you may well get that. Not something I would recommend in a production design, but for a one-off design it's an option.
Where is it that you are located? Do you have any mail-order options for getting components?
by Duane Benson
by Jake Hertz
by Duane Benson