|
Phew! I've crawled through the entire thread over the past two weeks, and I wanted to say thanks for all the great information in here (mtwieg - your OpAmp/Comparator article was especially informative). I have a plan for my first 'real' project, though I need a little advice on how exactly to go about it. I'd like to make a battery-operated, analog electronic thermometer. Basically, the output would just be a line of LEDs of various colors, each corresponding to a minimum temperature (I'm hoping for an LED for each 5'c, from -20'c to 45'c). I've got a 10k Thermistor and all the LEDs I need (as well as various assorted resistors, capacitors, transistors, and diodes), however I'm not 100% on how I should set it all up yet. My plan was to effectively have two 'units'. First, the temperature probe, which would have as intput a supply voltage, would contain the thermistor in parallel with a resistor (from what I had read this can help to provide a linear voltage output over the target temperature range). This voltage output would then be fed into the 'display', which I think would essentially be like a LED VU-meter: A cluster of comparator-LED circuits in parallel, each taking the probe lead as input and a differing reference voltage depending on the desired temperature the LED is supposed to correspond to. The other end of the LEDs would go to the power supply, via a ballast resistor for each LED (is there a better way to do this?) Does this sound like a reasonable approach? The basic circuit I had in mind looks something like this (All resistor values arbitrary ATM; pretend one of the ones on the left is the thermistor): One other optimization I was thinking of would be to have the power to the LEDs be pulsed instead of always hot so as to save battery power. I have a bag full of 555s I could use, or would this be overkill? I'm still not 100% sure that I know how to drive an arbitrary number of LEDs in parallel and produce consistent current across each...
|
# ¿ Dec 5, 2008 18:59 |
|
|
# ¿ May 20, 2024 00:32 |
|
BattleMaster posted:You need to make a voltage divider with the thermistor and a resistor, not a parallel circuit. If you match that 10k thermistor with a 10k resistor, the output should be VCC/2 at the optimal temperature. Edit: Okay, now that you added a diagram I can see that's what you were already doing. This page was where I got the impression that I could just use another resistor to make the Thermistor circuit roughly linear -- is that not correct? quote:You would probably prefer using an LM35 temperature sensor, which accurately outputs 10mV per degree Celsius. The datasheet for the LM35 also includes an application note that tells you how to make a bar graph thermometer, but it uses a couple of ICs designed for that task which is probably not as do-it-yourself as you'd like. That's cool, I may look into that (if not for this, than for the next evolution of the project). e: quote:Edit: Holy poo poo, edits galore! I was looking at the datasheet for the bar-graph LED driver and you might want to rip off the schematic of its internals for your project. Hubis fucked around with this message at 21:07 on Dec 5, 2008 |
# ¿ Dec 5, 2008 21:02 |
|
OK, can someone help me figure out what bonehead problem I'm having with building a buffer for an audio circuit using an Op-Amp? I'm starting to get into wiring up my own guitar pedals from scratch. I have mocked up some fairly ambitious circuit designs in the Falstad simulator, but I'm trying to wade very slowly into actually implementing the circuits to make sure I'm not overlooking any obvious problems. Step 1: I've got a box which contains 2x1/4" TS jacks (input and output), wired to a 3PDT toggle as a true bypass. In the off position, my signal is passed straight through; in the on position, it goes to two leads which are wired to my breadboard. There is also a ground lead which connects the ground of the input and output cables, which is then wired to the ground of my breadboard. Step 2: Wiring the leads together, I'm getting a clean connection in both on and off states, so my switch seems to be working. Step 3: I have also seemed to wire a very simple passive low-pass filter using a 0.1 uF film cap and a 10K pot. All is well and good (although the effect isn't really all that impressive -- sounds more like a volume control than anything else). Step 4: My problem. I'm trying to build my first active circuit now, which is just a simple OpAmp buffer between the input and the output. I'm using a 4558 dual-OpAmp I got from Small Bear Electronics, and the circuit looks like the following: code:
|
# ¿ Mar 19, 2009 14:11 |
|
ANIME AKBAR posted:Well first of all, your op amp is supplied by nine volts. We'll call the negative terminal of the battery our ground (0V). So your buffer can only work with voltages in your supply range (0-9V). In the real world it can't even do that, and your usable signal range will never reach the supply rails, so you're actually stuck with maybe 1.5-7.5V. If your input signal is not in that range, it will not perform properly. Of course, that makes perfect sense. The two-battery configuration worked fabulously (although now there's some hum in the sound, which I assume is coming from the preamplifier not expecting a DC-offset in its input signal). Do you have any suggestions on how I'd go about applying a DC-offset to the input using only a single battery? Every pedal I've ever seen or worked with uses a single bipolar supply (usually either 9v or 12v, unless it has tubes), so I assume there's a fairly simple solution. Looking at some simple schematics online like this one (posted earlier), it seems like they produce a +4.5v source (Vb) using a resistor divider, then somehow use that to pull up the input voltage. I'm not quite clear on how that works, however. So, what do I have to modify to make this work: (Thanks for the assistance, btw. There's a huge amount of really great resources for learning this stuff all over the internet, but all that bootstrapping turns to crap when something goes minorly wrong and you have no idea what the right questions are to find a solution )
|
# ¿ Mar 19, 2009 18:01 |
|
Hubis posted:Of course, that makes perfect sense. The two-battery configuration worked fabulously (although now there's some hum in the sound, which I assume is coming from the preamplifier not expecting a DC-offset in its input signal). OK, thinking about it a bit more, I came up with this: Which should mix the AC input with the +9V DC leads to give me (9v + 1vAC) / 2 = 4.5v + Signal/2 Is this a sane approach? Should I be using lower value resistors in the mixing stage? Is there a way to do this without cutting my signal in half, or should I just add some gain to my OpAmp stage?
|
# ¿ Mar 19, 2009 19:26 |
|
Delta-Wye posted:I'll give a shot at this: if you unplug the analog input (just use the DC input) the resistor divider will bias the opamp input to 1/2 of 9V, or 4.5 V. The output will also go to 4.5V DC, but because there is a capacitor that blocks the DC component, the final output of the circuit is 0V. When you add a AC signal (guitar, whatever) it is superimposed on the 4.5V, amplified, and assuming the capacitor is correctly valued, passes through just fine. (Just did a measurement; my guitar seems to put out around 10-30 mV if I clip the leads to the cable) So I should have something that looks like this? It seems to work in the simulator, at least. I've seen a lot of circuits use a capacitor in the input like this, which if I understand properly is to prevent overloading the inputs? Would I be better using a resistor there or something? I'm kind of at the stage right now where I can just think of capacitors as frequency-dependent resistors, but I'm not sure if that's always a valid assumption... Also, how do I determine if my capacitor to remove the DC offset is the right size? I understand how high-pass filters work in terms of R-C circuits, but (based on your comments) in this case I am just running the output through a capacitor without a resistor shunt to ground. Is this ok, and/or does it simply require that I assume a high-impedance input on whatever this is plugged into? e: SnoPuppy posted:Your first one was more correct. Just make sure to add a DC blocking cap to the input. Yeah, sorry for the confusion; that's a virtual scope lead that I left on the circuit when I took the screenshot.
|
# ¿ Mar 19, 2009 20:52 |
|
ANIME AKBAR posted:You've got the right idea. Your main concern will be your source impedance (in the case, the impedance of you pickups or whatever feeds into the input). You want the AC impedance of the biasing network to be low and the DC impedance to be high. The capacitor effectively kills all DC and passes all the AC. However the biasing resistors can still load down the AC signal, which is bad. So you should make those resistors bigger; like maybe bump them to 100K. Don't go to high or they'll lose their effect, though. Awesome, I'll give this try and see if I have any more stupid questions
|
# ¿ Mar 20, 2009 00:49 |
|
|
# ¿ May 20, 2024 00:32 |
|
clredwolf posted:Me and some friends had an impromptu 'poo poo that looks cool in a microwave' buildoff. Holy poo poo we had some awesome sparks. Best ones were: My favorite piece of "Microwave Magic" was taking a couple grapes, slicing them in half so that only a small flap of skin connected the two halves and sitting them on a tray, spread open. If done right, you can create these brilliant blue/red balls of fire above the grapes, which is drat cool. e: http://www.youtube.com/watch?v=_ux8nSWmAz0 Hubis fucked around with this message at 06:10 on Apr 19, 2009 |
# ¿ Apr 19, 2009 06:07 |