Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Shame Boy
Mar 2, 2010

Sorry if this has already been asked, but how about inexpensive oscilloscopes? I'm just setting up a bench for my hobby projects, but all the good oscilloscopes seem to be hundreds of dollars. I found a few tiny hand-held ones on the cheaps, and a few that interface with a computer instead of having a screen which I might be able to work, but what about quality? Is there a huge difference between cheap oscilloscopes and expensive ones? Do you think I would be able to do the fairly basic stuff I need to do with a cheap (sub-$150) one? I just want to look at waveforms to see how my circuits are doing and to see what other circuits are doing for hacking stuff apart.

For context, my specific first project I'm targeting is to build a Geiger counter, as it's not terribly complicated and it's cool enough to keep me interested, but I want to make sure the pulses aren't awful and noisy so I can read them with a microcontroller and I can't really think of a way to do that without a scope. Also I'd like to do some sound-based projects in the future. My dad is an electrical engineer and I grew up around this stuff and did it a bit for fun as a kid so I remember a lot of basic things about parts and how they go together, can tell my resistors from my capacitors and such, but I never really built anything terribly advanced on my own.

Adbot
ADBOT LOVES YOU

Shame Boy
Mar 2, 2010

So I'll probably need to save up for something actually good or it's a crapshoot I take it (though I will look into that DSO-203 and the logic analyzer, thanks peepsalot!) Oh well, maybe I can borrow one of my dad's ancient analog CRT scopes while I'm waiting, at least I can pretend I'm a 1950's mad scientist :science:

Shame Boy
Mar 2, 2010

Cool, I'll look into Rigol then. I talked to my dad today, and he said that while he did have an old spare analog scope I could have, it was in pieces as he was replacing the control systems since they were "noisy, worn and getting a bit oxidized with age". He has the new parts, just hasn't gotten around to putting them in yet, so I guess that's out at least for now. Anyway, thanks for your help guys.

Shame Boy
Mar 2, 2010

Delta-Wye posted:

Okay, plan B. Let's complicated this bitch :ohdear:

How about a ring oscillator that uses the water level to either vary a capacitance value. Not sure the best way to form the capacitor, though. I was thinking a ghetto parallel plate cap that is either air-gapped or water-gapped depending on the water level. As it lowers, you should see a shift in the oscillation frequency. Whether you can form a cap that has a measurable period, and whether that period will shift enough for easy measurement, I'm not sure.


or


Using something like this:
http://tushev.org/articles/electronics/43-measuring-frequency-with-arduino
or
http://interface.khm.de/index.php/lab/experiments/arduino-frequency-counter-library/
for the measurement.

You know, they could just dump an assload of salt in the water to raise the conductance. Plus this would probably kill the tree, and then they wouldn't have a dirty-rear end tree ruining their perfectly good water sensing apparatus :science:

Shame Boy
Mar 2, 2010

priznat posted:

This has probably been mentioned before, but the icircuit app is pretty nifty for just seeing how electronic stuff behaves.

http://icircuitapp.com/

:10bux: but nicely done and can be helpful for visualizing what is going on. Shows you where the current is flowing, etc.

Looks great, but can I get it on something that doesn't have a tiny screen and that I don't have to poke at with my big greasy fingers?

Actually, I've been looking for a good, cheap circuit simulator for the computer for a while too. I tried some free ones out but I didn't really like any of them. I used to have this one back in the 90's that I learned a ton from, but I can't remember the name of and I'm pretty sure the company went out of business. It had a "rocket" component and a "car" component for some reason, which was enough to keep my 8 year old self interested in learning about poo poo. It was a full-fledged circuit simulator though, not just a kid's program, and I remember it had a pretty straightforward UI and I liked it.

Shame Boy
Mar 2, 2010

timb posted:

It's available on the Mac App Store so that certainly fits the bill. I've got it on both my iPhone and Mac; it's pretty great for :10bux: honestly. It's nice to be able to sit down and fiddle with something on my laptop at night then transfer it to my iPad to work with in the garage.

I didn't see that, but I don't have a mac. Thanks anyway :unsmith:

EDIT: I'm trying out LTSpice (yeah it's still free) and that seems to be fine, thanks tonberrytoby.

Shame Boy fucked around with this message at 03:44 on Dec 13, 2012

Shame Boy
Mar 2, 2010

SnoPuppy posted:

I'll put in another vote for LTSpice - don't think that just because it's free, it's a lesser tool.

LTSpice is easily the best spice simulator I've used, both in terms of performance and capability.

And, while I know you said you don't have a mac, I can vouch that it seems to work perfectly under wine if there are any other mac/linux users who need a good simulator.

I went ahead and bought that app for my android phone to play with when I'm bored at work, it's designed well enough to use on my phone comfortably so I can get some fun out of it. But yeah, I'll be using LTSpice on my PC (and I'm actually running it under WINE and it works fine).

Shame Boy
Mar 2, 2010

I got this neat geiger counter kit for christmas and managed to put it together in just under two hours. I'm quite satisfied with it as it worked the first time I turned it on, and now it's happily clicking away in the corner. Anyway, I'm going back over the circuit to try to understand exactly how it works, and I've gotten most of it (the detector circuit, the microcontroller, etc) but I have no idea how the high voltage supply works. Here's the schematic:



A 555 timer, inductor, two transistors and a bunch of resistors, capacitors and diodes? Huh? What does the 555 even have to do with anything, I thought that was just for making signals, timing, switching etc? Sorry if this is kinda a basic question but I've never encountered a HV supply quite like this in my electronics hobbying before :shobon:

Shame Boy
Mar 2, 2010

Delta-Wye posted:

http://www.ledsales.com.au/kits/nixie_supply.pdf

Here is a similar circuit with an explanation. The 555 is being used as a controller for the switching supply. Not really what it's designed for, and probably not as efficient or accurate as a dedicated IC, but it works.

EDIT: Here is a description of the circuit that one was based off of: https://sites.google.com/site/diygeigercounter/circuit-description

Ah thanks, that makes sense.

Shame Boy
Mar 2, 2010

Delta-Wye posted:

http://www.amazon.com/Weller-WLC100-40-Watt-Soldering-Station/dp/B000AS28UC/

This Weller WLC100 is about half the price on amazon as the Hako and I've been using it for a while for all sorts of stuff (including small SMD stuff). It sounds like most of what you're going to be doing will be through-hole stuff and it will do that just fine if you can find it for an agreeable price.

I got this one for Christmas and it works great. My dad has almost the same model which he bought twenty years ago and it still works fine even though he's assembled countless projects with it (though he replaced the tips a few times I think)

Shame Boy
Mar 2, 2010

Double post, sorry :(

Shame Boy
Mar 2, 2010

Powdered Toast Man posted:

I'm thinking about building a multi-station USB charger with micro-USB connectors. I've sourced some durable-looking PC mount connectors from Digi-Key and I've been looking at the pinout/specs for USB...do I need to do anything other than provide constant, regulated 5V? I'll be charging stuff like cell phones or accessories that have their own batteries and charging circuitry built-in.

I did something like this once, and yeah basically you just need a good steady 5V and ground and most things will just suck as much juice as they can. You might want to be careful in this regard as having many devices connected will suck a surprisingly high amount of current. The USB spec is only supposed to go up to 500 mA but some things can take as much as 5 loving amps when charging if they just try to suck up whatever is available, according to Wikipedia.

Shame Boy
Mar 2, 2010

orange sky posted:

I don't know if this warrants its own thread, so here goes:

I want to build a gift for my SO, whose voice is pretty high pitched. My own voice is much lower, thus I think I can separate the frequencies and choose those that only she achieves. I have plenty of programming skills and I'm willing to spend some money on this.

The main idea is building a transparent object with a LED inside that lights up whenever she's speaking. Now, I have a basic idea of how to program this, but I don't know what's available in terms of hardware that I can use. I think buying an FPGA is overkill (and too big for my purposes). Anything else I can use? Is an Arduino capable of doing something like this?

I was thinking of building a MatLab script that analyses the sound input and outputs 0 or 1 wether the sounds it picks up are in a certain frequency and power. Now what I don't know is how to pick up the sounds and translate them into samples. All I've ever used are waveform generators, programmed for a certain wave.

Any tips on what I should look into? Just some guidelines would be cool, I'll then buy the gear and put it all together myself.

Thanks in advance!

You can't just do some kind of band-pass filtering to filter out low frequencies and only accept high frequencies, then feed that to an amplifier and some kind of logic that would only trigger on sufficiently "strong" signals? I mean if you want this to be really accurate and only respond to specifically her voice that would take some fancy programming, but if you just want it to respond to a certain range of frequencies and not others that's somewhat easy to do even without a microcontroller, I believe.

Shame Boy
Mar 2, 2010

Slanderer posted:

The problem is that even a lower pitched voice will have higher pitched overtones stuffed in there. That, combined with general ambient noise, means that a single bandpass filter isn't really enough.

Maybe some guys with big glasses and pocket protectors in the 50's did this kind of thing in labs, with big filters made using tube op amps and other crazy poo poo, but the golden age of analog has long since passed. We have forgotten their works, and will never again achieve their glory.

Yeah, I was thinking find a frequency that is very strong in her voice but not as strong in his voice, and then make it so that in normal conversational volume it would trigger for her but not for him. I'm also assuming that this is just some kind of novelty "I built this 'correctness' detector honey, it's specifically tuned for our marriage!" thing, and not something that would need to reliably trigger on her voice but not his in all conditions. Of course I'm still probably underestimating the complexity of the human voice.

Shame Boy
Mar 2, 2010

orange sky posted:

Thing is, I don't know if I have access to the kind of stuff needed to build/test a band pass filter. I'll try to talk to the electronics guys at my university. And yes, it's just a band pass filter that I need, not something fancy only for her voice.


What I meant would be building a matlab script that compares running samples (from audio), collects x samples and draws a conclusion from it. I'd then work out a way to output it to C, yes, in order to run it in a basic processor. Thing is, Parallel Paraplegic is totally right, I only need a filter since I don't want to get into speaker recognition or anything, I want it as simple as possible.

I only looked into a higher level solution than electronics because electronics isn't really my area, I'm used to working with other stuff, so I wanted to stay confortable. It would probably turn out much more expensive though. I'll look into the electronics and the way I could make it small, I don't want a breadboard in it.

I'll talk to the electronics guys at my uni, they'll probably be able to tell me what I need to make it simple and small if I'm going to do it that way.

Well don't put too much stock in my answer, I got shot down by everyone who has actual training here so I'm actually doubting the feasibility of it myself now :shobon: However talking to your electronics buddies would probably be a great place to start, assuming there is a simple solution to this.

Shame Boy
Mar 2, 2010

peepsalot posted:

You might be interested in this guy's code:
http://elm-chan.org/works/akilcd/report_e.html

He made FFT library in assembly for atmega (chips used in arduino). It looks very responsive. I haven't tried implementing it myself, but it looks like he's done most of the hard work. Once you have the FFT of incoming audio I think you could compare it to her known profile without too much trouble.

There's actually a tutorial about doing FFT in arduino's native C-ish language too. It even has some information on finding specific frequency peaks and doing some basic DSP.

Shame Boy
Mar 2, 2010

Martytoof posted:

Putting the cart before the horse, I collected way too much surplus electronics gear for my skill level and I'm basically drowning in parts and test equipment and stuff. Total first-world-problem but the disorganization is kind of making me want to not work on electronics when every time I whip out a multimeter probe cable it gets tangled on like 5 other cables. I don't really know why I posted this since this isn't livejournal, but it's just an observation that cleanliness and organization is important in everything :q:

Sell some of it.

To me.

For a very low price.

Shame Boy
Mar 2, 2010

Slanderer posted:

Holy loving poo poo.

Agreed, this guy has basically made every DIY project I've ever done seem like LEGO in comparison.

Shame Boy
Mar 2, 2010

I was thinking of building an audio amplifier with digital volume control driven by, say, the Arduino I have lying around. I like the idea of controlling random things around me with my computer and amplifier circuits are fun. I was thinking I would control the volume by building a voltage divider and adjusting the value of one of the resistors, as described here: http://embedded-lab.com/blog/?p=2967

However I was wondering, do I really need the digital potentiometer chip? I was reading elsewhere that for reasonably low frequency circuits you can make a fairly effective variable resistor by using PWM to control a transistor that repeatedly shunts power away from (or into, depending on how you set it up) a normal resistor, the idea being that if you use a 2k resistor at a 50% duty cycle the circuit would only "see" a 1k resistor. I'm just wondering if this would be unacceptably noisy for an amplifier and I should just get some of those digital potentiometer chips, or if I could just smooth it out with a capacitor or otherwise handle it. If I don't need to get those chips, I think I have everything I need to breadboard the circuit right now.

Shame Boy
Mar 2, 2010

Aurium posted:

Following on this, the default pwm frequency on your arduino is approximately 490 Hz, which is absolutely audible. You'll need to bump it up quite a bit.

Human hearing goes up to around 20khz, so that's an absolute minimum there. Depending on what pin and what timer is on that pin the pwm frequency will top out at 61500hz or 31250hz, either of which should work for you. Keep in mind there are some functions depend on these settings, timer0 is used for mills() and micros(). I don't think that either timer1 or 2 is used by default (by things other than analogwrite() anyway)

A couple of things to get you started.


Wow, I had no idea it defaulted to a frequency that low, I always assumed it was in the mid-tens-of-kHz range for some reason. Thanks!

longview posted:

My recommendation is an actual pot with a dc motor, that's how commercial products used to do it.

Reading back the volume could be a problem, but if you can find one intended for quadrophonic audio then you could put a DC voltage on the spare track and the value will be proportional to the position of the pot (log scale makes it a little harder).
About two years ago I was able to make an Arduino read an IR remote, that controlled two of these, one was a volume, the other acting as an input selector, when you turned the pot it would jerk the motor at the input boundaries.
When you changed input using the remote or by turning it manually it would also remember the volume, and it could cancel a remote-initiated input change if you moved the selector manually (stopping the motor if the value went the wrong way).
I never built it up properly with actual inputs and I had trouble converting the voltage reading into evenly spaced angles on the pot then (I now know more math, and could probably do it properly now), but if you can get motor controlled pots that's the best solution IMO.

I also had no idea that pro models would just use motors to turn pots, I always thought they'd have a more... elegant solution? I guess it makes sense though as it lets you manually adjust the knobs too. I have some research and experimenting to do, thanks guys.

Shame Boy
Mar 2, 2010

longview posted:

As a matter of fact I do know an ex military communications guy, I might give him a call.

Gas was my first idea, but won't the compression effects of the water reduce the volume to a fraction of the volume at the surface, meaning we would need a very large amount of gas and a pressure relief valve to prevent it blowing up as it decompressed?
If we need 60 liters of gas to surface a kg or two of negative mass then the weight of the container might be a deal breaker.

A funky idea we had was to use a permanent magnet in the chassis and then attach a bit of scrap metal, then we'd have an electromagnet of opposite polarity to temporarily demagnetize it and let the metal go, I don't know if it's practical but it's a cool idea.

I like the electromagnet, if it fails you just wind up with it floating to the surface too early and you try again, whereas if the balloon fails you lose it forever. Of course if you can't demagnetize it enough you also lose it forever, so you better be sure it's a good electromagnet, maybe build in some logic to try the electromagnet a few more times if it doesn't detect itself ascending the first time (in case the scrap metal falls off but then gets stuck to the permanent magnet again once you turn the EM off)

Shame Boy
Mar 2, 2010

So I went to the thrift shop today and got a bunch of neat old stuff to break apart and see how it works, harvest for parts, etc. The coolest thing I got was an old Texas Instruments TI-8250 printing calculator from what looks like the early 90's. I took the screen out of it as it has a pretty nice little segment display, but I can't seem to find any datasheets or information on this screen. Here's some pictures of it:





I looked around for "Futaba 11-MT-62G" datasheets (and variations of that) and only found datasheets for other devices that referenced that they USED a "Futaba 11-MT" component, but no sheets for this screen itself. There seems to be a little glass stem on the side of it as well and the whole thing is sealed, does this mean it's some kind of gas discharge thing that I'll need high voltage to drive?

VV Yeah I figured I might have to do that, I was just hoping I'd get lucky and someone here would have experience with a similar device. VV

Shame Boy fucked around with this message at 04:10 on Jan 14, 2013

Shame Boy
Mar 2, 2010

Slanderer posted:

That's a vacuum fluorescent display. Even compared to many LED displays, they are useful because they have extremely high contrast. They are kinda fun to play around with if you have a power supply or two to figure out the voltage requirements and pinout. This might help--it helped me when I played with some years back. Make sure not to put too much current through the filament--it shouldn't be glowing! The different VFDs intended for DC or AC control can be controlled any way you choose, but will probably not work as well, so keep that in mind.

EDIT: If you still have the rest of the calculator, take a look inside. You may be able to salvage the drive and/or control circuitry, or at the very least, figure out what voltages it is using to control it. Figuring out the pinout is trivial, so you should be good to go.

Thanks for the links! I actually did try to figure out the pinout when I first opened it up, and it's not as easy as I would hope. The traces go all over the board, curve in weird ways I've never seen traces curve (it's like some of them were drawn by hand) and connect to a bunch of different things, including some Darlington IC's, this big IC on the back with no writing on it that I assume is the main calculator chip, and these two big traces that go all around the board which I think are the main power/ground lines, but I'm not sure. Nothing seems to connect directly or indirectly to any sort of ground I can identify, it's all going through a bunch of other components before it gets to the power circuitry. I'll go back and see if I can sketch it out tomorrow I guess.

EDIT: Now that I know what the heck it is, I managed to find the datasheet to a very similar model that has a very similar pinout that I think I can work with. Thanks!

Shame Boy fucked around with this message at 05:03 on Jan 14, 2013

Shame Boy
Mar 2, 2010

Thanks to that ghetto data sheet, the tutorial-y page Slanderer linked, and my own insomnia I got it to work! Looks like all the segments are nice and bright and functional, and I got them all sketched out and mapped to which segment what pin goes to and what voltages etc to use so I don't have to refer to the ghetto datasheet again :) Totally gonna use this in a project some time, it looks great. Thanks guys!

Shame Boy
Mar 2, 2010

Rexxed posted:

The goal of the project is to not have to check the mouse traps in the basement every day and also not have dead mice fouling up the traps. So there'll be a RF transmitter with a microcontroller on each trap one and a receiver that can just alert me when the transmitter(s) are doing stuff. The Atmega328 is probably overkill for something that will be using maybe two I/O pins but I got an Arduino Uno as a gift and even "too much" microcontroller is still only like $2.

Exactly how mouse-infested is your basement anyway :cry:

Shame Boy
Mar 2, 2010

Anyone have any tips or tricks for cutting perfboard? I tried to score it pretty deeply (first one side then both sides) and snap it in half on the edge of a table and it just flexed a little and refused to budge. I finally wound up using pliers to crack it off (which was very visceral and snapped in a weirdly disturbing way, like how I'd imagine spines would snap :ohdear:), and while it did crack right on the score I had made, half of the piece I was cracking off twisted and broke apart. I managed to save enough to still put my circuit on but it wasted more than I'd like since I had to throw some away. Do I need to score it even more (I think I scored it pretty drat deep but I could be misjudging) or should I just invest in a good Dremel tool? Any other ideas I missed?

Shame Boy
Mar 2, 2010

sixide posted:

Is this classic phenolic perfboard or some sort of FR4 circuit board in a perfboard layout?

The phenolic stuff can be cut with a boxcutter and snapped, it's pretty trivial. If that doesn't work you could try coming in from the edges with a sidecutter, it should be no problem to cut hole-to-hole one at a time.

It's "Epoxy Fiber". I guess I'll look for the "classic" kind next time.

Shame Boy
Mar 2, 2010

Jonny 290 posted:

How I cut my boards, with really good success rate:

-Score on both sides with X-acto, lining up as close as I can
-Place on edge of lovely MDF desk (you want that hard 90 deg edge) with cut lined up with edge
-Use something like a book to hold down the part on the desk
-karate CHOP! Don't ease it, snap on that thing. You've given it the weak point.

Sometimes I go over it with a flat file afterwards to pretty it up (outside, of course)

I can do anything from perfboard to double-sided glass epoxy board with this method.

Yeah I basically did this and the fucker cut my hand open but didn't break. I guess I just got the "extra tough" stuff or something :(

Shame Boy
Mar 2, 2010


I think they mean why can't you just connect the LED to yourself (and not connect yourself to anything else) and have it work, because the human body is a pretty okay "ground" for some things (IE static discharge). I'm guessing it doesn't work because your voltage source also has to be connected to the same ground, as "voltage" is only really meaningful as a relative value, so it's "+5 volts with reference to this thing we say is zero (the 'ground')." Since the voltage source is not using you as the zero "thing" itself, the rest of the circuit doesn't have any charge with reference to you and therefore no energy flows. I'm completely talking out of my rear end here so someone with better training could probably explain it better.

Shame Boy fucked around with this message at 23:53 on Jan 20, 2013

Shame Boy
Mar 2, 2010

huhu posted:

Just spent the last two hours assembling and troubleshooting the circuit and got everything running smoothly. Except for the fact that I bought lovely LEDs and the color detection system I made doesn't work because the one LED is so much more bright than the others and this leads to a false positive every time. :suicide: At least I learned a lot and have a strobe light now!

You can't just put some extra resistors or maybe a voltage divider on that one particular LED?

Shame Boy
Mar 2, 2010

So I tried cutting some more of that thick perfboard today by scoring it and putting it under a book and breaking it right on the edge, and it worked perfectly with very little effort. I guess when I was doing it before it was flexing too much and couldn't break. Thanks for the help again guys!

Shame Boy
Mar 2, 2010

Bad Munki posted:

So I've narrowed it down to five options. The low ESR option isn't available unless I'm buying seven thousand of them, so that's out. With that in mind, do I want high frequency, low impedance, or general purpose? All else apparently the same.

I doubt that thing needs to be high frequency if it's just a power supply. Wouldn't low impedance imply low ESR? I'm not really sure but it makes sense that it would.

Shame Boy
Mar 2, 2010

icantfindaname posted:

edit: Okay, since that last question was fixed, here's another: How the heck do I get wires to stay in the arduino as I'm stuffing the whole thing inside a flashlight casing? I used braided wire to connect everything because the solid wire was way too stiff and the solder joints were falling apart. Would an arduino shield work?

Did you tin the ends of the braided wire first? It keeps them from fraying and generally helps keep them in the holes in my experience. You could also probably just electrical tape the wires to the arduino, if you don't care about removing the arduino for other projects. The best way would probably to make a little shield for it, maybe out if perfboard, then solder all the wires to the shield. This would have the added benefit of allowing you to easily remove the arduino later for programming or other projects. Watch out for that arduino spacing error though, it's a bitch to deal with on perfboard if you have to use the full range of pins.

Shame Boy
Mar 2, 2010

EDIT: ^^ Basically what they said ^^

Moist von Lipwig posted:

I was hoping I could get some quick advice here.

So I have a headset (single ear cup and boom mic) that was a 2.5mm jack but quite frayed. I have a spare cord with a 3.5mm jack on it so I thought I'd graft them together but when I stripped the wires I got this:



I'm an idiot, what do I do!?

Is there a better thread to ask in? I think there used to be a DIY electronics thread but I can't find it.

That copper twisted around the white wire is the ground line which doubles as a shield against interference, some cables have them and some just put the ground line in another wire (probably the white or black wire in the other one, but I'm not certain). If you have access to a continuity checker, you could use that to find out which wires go to which part of the jack (tip, middle or base). Then, assuming you kept the old jack you cut off, do the same to that one to figure out which wires are which and wire up accordingly. If you have a multimeter you could use that as well, or you could probably pick up a cheap continuity checker at Radio Shack, they're just little things that beep or light up when they detect a complete circuit. I wouldn't guess at this, you'd run the chance of shorting out whatever you plug it into (unless someone else here already knows exactly which wires go to what, I have to check whenever I hack a cable apart just for peace of mind :shobon:)

Also it looks like you're wiring a mono headset with microphone to what is usually assumed to be a stereo headphones-type jack (which is fine, it will work) but make sure whatever you plug it into is not expecting stereo headphones and is in fact designed to have a mono headset with microphone plugged into it - otherwise it will try to run sound signals through the microphone and probably destroy it. If you don't need to use the mic you might want to just leave that completely disconnected.

Shame Boy
Mar 2, 2010

peepsalot posted:

Those component packs look like pretty ripoff prices to me. You could go on mouser and get all that poo poo for probably $50 or something.

I mean I guess it's nice that it's all prepackaged and layed out as a kit, but it depends how much you value your time of finding and buying all that stuff yourself.

You can get resistor packs with 20x-100x of every common value for $10-$20 on ebay or whatever
like this http://www.ebay.com/itm/1-10M-1120p...=item1c29f16a51
or this http://www.ledsee.com/index.php/resistor/e12-range-resistor-set-1-8500-pieces-detail

Same with capacitors, etc. http://www.ebay.com/itm/1uF-2200uF-...=item19d4ef9d1f

Yeah, I've found that a lot of people who don't do electronics don't realize that components are mass produced to such levels that a lot of them have absurdly low prices. Some of them are fractions of a cent each. If you go to mouser or jameco etc and just buy the stuff that's in that kit you can probably save a bunch. My last order had about 400 total quantity of items and cost me about $55 shipped. Then just get yourself a good breadboard and some kind of power supply (I use a wall wort that I run through a little board with a 5V regulator and some capacitors on it, really simple to build - here's the same basic circuit though I put bigger caps on it: http://www.instructables.com/id/5v-Regulator/). If I were you I'd just buy the book by itself, then get the parts separately. I definitely recommend buying some of those grab-bags for capacitors and resistors and LED's etc like peepsalot said. Jameco has them, Amazon has them (though it's more expensive from them) or you can get the eBay ones. It's great for fleshing out your supply of some of the most frequently used parts, and they usually come in the most frequently used values.

Now keeping all those parts sorted is a bit of a bigger problem. I keep my parts in a big tackle box, but this probably isn't ideal since it's not anti-static. You can buy specifically anti-static containers but they're a bit more. Still probably cheaper than that kit.

Shame Boy
Mar 2, 2010

So I'm trying to figure out what the heck I'm doing wrong here. I'm trying to recreate this circuit for a CMOS NAND gate, only using BJT's. So this circuit but with discrete PNP and NPN BJT transistors:



Everything seems to be going fine if I build everything (connecting A and B to a pull-down resistor connected to ground) but leave out one of the PNP's. However, the second I connect the missing PNP (which could be either one) the LED I'm using to indicate the output state dims to about half of its normal brightness and the PNP heats up really fast, actually burning my finger and releasing the smoke in one case where I didn't pull it out fast enough. I have no idea how I'm doing this, I have 1k resistors on every possible path to ground (I even replaced them with 100k and it didn't make a difference) and the resistors don't seem to heat up much at all. Some permutation of this circuit should be possible to build with discrete BJT components, right? Am I missing some fundamental "catch on fire" property of BJT's that I don't know about that prevents them from working in this circuit?

Shame Boy fucked around with this message at 03:07 on Feb 4, 2013

Shame Boy
Mar 2, 2010

Yeah I should have posted a schematic, right now I'm just dicking around on the breadboard but I guess "hey guys my thing that kind of looks like this isn't working, help!" is a pretty dumb thing to post. Sorry! :doh:

Anyway I had missed a path to ground that I didn't see until I carefully went back over what I had done. Somehow I missed it in all the previous goings-over I did. I am a dumb again, I guess. It's not heating up anymore but it's still not working, probably due to the several reasons you have already pointed out. I did actually have resistors on the bases. I've put an LED between the NPN's and ground to see if they're actually turning power on and off, and they are, but the voltage across the output never changes. I tried lowering the value of the resistor on the NPN's output thinking that if it had a preferential path to ground it might at least drop the voltage across the output, but still nothing. I will draw up a schematic and get back to you guys, sorry I didn't do that to begin with :shobon:

Shame Boy fucked around with this message at 03:48 on Feb 4, 2013

Shame Boy
Mar 2, 2010

Okay, here's what I drew up, including the values of resistors I currently have in there while loving around with it.



If I switch A and B to low, the MONITOR LED is off and the OUT LED is on. If I switch them both to high, MONITOR comes on, but OUT remains on, and the voltage across OUT remains totally unchanged.

Shame Boy
Mar 2, 2010

SnoPuppy posted:

I think the problem is the bases of the PNPs and NPNs are connected together. This provides a path for current to flow from the PNP emitter through the base, and into the 220 ohm and base of the NPN transistor, turning it on. It is generally a very bad thing to have high base currents.

Try sticking a 1K on the base of each transistor and see what happens.

edit:
After looking at it again, and reading your post a second time, I think that you have the base-collector junction of your NPN transistors forward biased when the inputs are pulled high. This causes current to flow through the base to the collector and turn on the LED.

I added the 1K resistors and no luck. The forward-biasing makes sense, but it's weird that the voltage remains exactly and perfectly unchanged as far as I can tell (down to three decimal places, according to my cheap and unreliable multimeter). I assume that means I can't actually build this circuit with BJT's then?

Adbot
ADBOT LOVES YOU

Shame Boy
Mar 2, 2010

asdf32 posted:

Ok so based on a second look and reading everything you said your problem still isn't entirely clear. But here are some more points:
-Definitely have resistors directly on the bases 1k. Ditch the 220 on the switch, that just confuses things. Have the switch tie directly to GND or 5V.
-You don't want the diode and the resistor on the emitter of the NPN's. This complicates and confuses the circuit because the NPN's turn on when current (dependent on voltage) flows between the base and the emitter. If the emitter voltage is floating on top of an R and D, and not tied to ground, it's behavior becomes more complicated - as current increases through the diode the emitter voltage increases across the resistor, this can choke off the emitter current if it gets too high (as an aside you can make a decent current source this way, but that's not what you're doing). Imagine driving a car where the gas pedal moves as the car changes speed - that's what you've got there.

-I'd suggest adding an ON and OFF diode, one going from OUT to GND and one going from 5V to OUT. This will be a clean way to see what's happening.
-Last, try downloading LT Spice if you're doing this stuff. Here is a picture from LT spice. The voltage sources on the left are the switches, the resistors on the right provide a load on the output:



I'll see if this works, but wouldn't removing the resistor between the NPN's and ground mean that current can flow essentially uninterrupted through the whole thing (effectively bringing back the catching-on-fire issue from earlier?) Should I put a resistor before the PNP's instead? Anyway thanks for everyone's help with this, I never realized the differences between transistor types could make this big a difference.

Also, I tried LT Spice a while ago and couldn't get it working (I'm one of those freaks who uses linux, so entirely my fault :)), so I'm actually using what I first learned this poo poo on back in the 90's, CircuitMaker (which works perfectly in WINE for some goddamn reason). It's got full SPICE simulation and does most of the things more modern software does, while being an interface I'm already familiar with, so meh.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply