Whoopsee! No problem, I can smack in the values. I am a bit sleepy I guess.
EDIT - Here it is with the values, I exported it as an image this time.
Whoopsee! No problem, I can smack in the values. I am a bit sleepy I guess.
EDIT - Here it is with the values, I exported it as an image this time.
I’m ok with Eddie’s idea. I get a buffered output from the resistor ladder with no additional cost or circuit complexity. Sweet! lol
Mike, I forgot to send you the thing I said I would send you. I will try again tomorrow.
The op-amp selection is a little problematic.
I had selected an LMV321 because it is rail-to-rail out however it isnot going to appreciate the +5V supply being much above +5.5V.
Mike put an LM321 in his schema that will work up to 32V but is not really rail-to-rail output which may hurt you at the top end of the output range.
Last observation was that using this really small package you do not have the “unlimited” short circuit duration the parent of this part is noted for. It isn’t that you will hurt the output stage but rather the package can’t dissipate the power forever because it is so small.
Let’s make the following simple changes using the LMV321M5 IC.
put a small resistor of say 51 ohms in series between J1 pin 1 and the IC1 / R3 junction to limit the output current. this will create a very small error but it should be only a fraction of an LSB with a 5V 8-bit A/D.
Add a small 5.1V zener diode across IC1 pins 5 and 2, cathode on pin 5. An MMBZ5231B from Fairchild or Diodes Inc should be good and is in a SOT-23 package as well. Now add another 51 ohm resistor between J1 pin 2 and the rest of the circuit. At 5V the zener will be out of circuit, and as the supply voltage goes up it should limit the voltage to the LMV321. If we find people can blow these up we could use a 4.7V part and still not limit the output voltage.
You should probably use an 0805 package for the 51 ohm parts and 0603 for everything else. C1 and C2 can also be had in 0603 size as 25V X7R 10% parts. Using a Lite-on LTST-C150TBKT for the LEDs (blue, 0603) you get Vf=3.4V which is great and guarantees the LEDs will be all but out of the voltage sum circuit.
This is designed to be powered from the Bot Boards 5vdc regulator. So the resistor in the output is ok, but the zener shouldn’t be required, unless you were just adding some inexpensive whoops protection.
yeah, whoops protection for the event someone powered it from the VS pin instead of +5V. I just don’t know how fragile the LMV321 is with its abs. max. rating of +5.5V for supply. You could put the parts on the prototype and test with and without them to see if it is anything to be worried about. I just didn’t want to leave it open ended and “discover” people were returning them as non-functional when they didn’t bother to read the instructions on how to hook it up.
I can make these changes. Are there any other changes that need to be made that you can think of? Also the parts that I use in Eagle cad may not always represent the actual part. As long as the footprint and the pinouts are the same, you can put any part you want in that location. for example any sot-23 will have the same footprint and work as long as the pinouts are the same. I can edit the silk to reflect the right part.