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
Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
3rd year ECE just wanting to say this thread is looking great. I am actually in the market for a nice oscilloscope now so I can work on some designs. I am really interested in a USB based solution since they seem to give a ton of the features of high end scopes while still being relatively cheap.

And if you are going to be soldering lots of surface mount parts you might want to look into getting an air solder station instead of a iron based one. They use a solder paste instead of solder wire and a really fine nozeled hot air gun and by god do they make soldering .22" pitch parts easy. They really complement a nice soldering iron more than replace it since you are going to need the iron for larger parts, you can't really use paste to solder wires together, or for through hole parts.

And for those of you who want to get into building your own PCB's we used http://www.4pcb.com/ in one of my classes and they offered pretty good rates. You provide them with a Layout file and they will make a pretty nice PCB. The instructors said we've ordered over 2000 boards from them and only 1 has had an error, and that was because two traces were too close together.

Adbot
ADBOT LOVES YOU

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

joebuddah posted:

Could somebody tell me a good book to learn plc programing? I'm probably going to buy a DL06 from automationdirect.com. I recently got some nifty automation devices for helping a friend tear down one of the machines at his job as they were selling it for scrap metal.

We used the free manual from directsoft when learning to program ours. DS5 works on the allen bradley series which are pretty much an industry standard. Well the manuals are free on the website and the documentation for ladder logic was pretty straight forward. What are you trying to accomplish with the PLC though?

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

spencer for hire posted:

This is the main reason why I'm interested. I've found numerous sites online that have board layouts for different effects but I have yet to find a source for the reason behind placement of resistors and capacitors. Obviously designing my own pedal would be a project for the extreme future but I'd like to at least know the theory behind the design and how each part affects the sound. Do you have tips or know of any resources to how they shape sound? Like how would you go about designing a delay from scratch?

If you provide me with a schematic I might be able to analyze it over the weekend and do my best to describe it in stages with SPICE simulations and :words:

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

WilfBerT posted:

Has anyone has an experience with these relatively cheap (~$200US) USB digital storage oscilloscopes?

http://www.beigly.com/catalog/hantek-dso2090-oscilloscope-p-96.html

I am thinking of getting one off eBay, however I would like to get some feedback from some people before I drop $200 bucks. I would be using this oscilloscope mainly for audio circuitry so the 40MHz bandwidth is more than enough!

Thanks

It can't do an FFT which probably can't be expected from any $200 scope but I really wouldn't buy a scope that couldn't do it. It's really nice to be able to see harmonic content of your output waveform especially in audio circuits.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

ValhallaSmith posted:

I hate these things. They tend to be laggy and poorly featured. They work ok if you are just trying to automatically log some waveforms. But for interactive work they are kind of a pain.

Really, you would be best served by getting a real scope off of ebay. An analog tek 7000 series mainframe scope can work pretty well. Or just save up 1000$ for a small tek scope. Or hit ebay every day and learn which scope are worthwhile and which are not.

Instek can sometimes have cheap equipment as well. I kind of wish there was more of a market, an opensource scope kit would be nice.

That is not entirely sure. We have some usb scopes in my labs that have no lag and have a slew of features present in more expensive in only the more expensive Tektronix. Things like FFT are a bit slower than an entire DSP based system like those in a good high end scope but still it functions well enough for basic measurements. Also the ability to dump data directly to excel is oh so nice, although you can do that with some of the newer cheap scopes anyway so it is a moot point.

If you have an engineering school near you I recommend you check out their salvage store, whatever the hell they call it, mine had http://www.tek.com/products/oscilloscopes/tds1000_tds2000/index.html these for sale for like $50 a piece or something, of course they probably had the insides gutted about 30 times because of the silly freshman EEs killing them somehow(still not sure how to kill a scope but I've seen it done). Deals can also be had on craigslist pretty regularly if you live in a big city.

I just started a class on DSP's and I can honestly say these are by far the most interesting things I have touched upon in any class ever. We are only a week into lecture and have already learned how to implelement relatively complex high order filters really easily. Digital ROCKS!

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Cyril Sneer posted:

*sigh*

ah well, maybe with everyone focusing on digital subjects these days, there'll be more jobs for us RF people.

we can work together to create the greatest things ever. The lines between digital and everything else are shrinking so fast that without a strong digital background I can't see how you really won't sink in the industry.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Three-Phase posted:

From what I've seen, digital and RF go hand in hand. Especially when you're talking about things like CE testing for noise immunity.

I work with bigger stuff, where you need to make sure different cables are separated. (Like not running an unshielded twisted-pair carrying a 4-20mA signal right next to a massive 500kmcm cable that can cary 600 amps. - That's a class-4 versus class-1 if I remember correctly, and without shielding they would need to be a meter or so apart.)

It is amazing how diverse the field of EE is. It gets even more diverse when you throw the C in there and do ECE. It really surprises me it hasn't broken down further at this point at most major colleges since there really is no way for anyone to be proficient in all of this stuff by the time they graduate.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

UserNotFound posted:

Right after "make your own power supply" should come "make your own DMM"! I used an ICL7106 integrated A/D and 3.5 segment LCD driver. The entire circuit can be constructed using basic circuit knowledge and information in the data sheet. Not a beginner project, but certainly something to do early on in DIY that it well explained in app. notes.

Yeah you kinda need a dmm to calibrate your dmm though...

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
I have noticed recently that my parts kit is really lacking in variety of components. I have sorted resistors and any parts I need for my classes but I would like to expand a lot. I really like the idea of buying the presorted resistor boxes and stuff because it is so much easier than going through them later. Anyway can anyone recommend a site that sells presorted components in pretty large numbers.

Small Bear Electronics had a nice selection of caps but I am looking more into some 1% resistors, electrolytic caps, and well I don't even know anymore.

Also a site that sells good soldering irons besides e-bay would be nice. I have a relatively decent weller adjustable iron but I am looking to move to a real soldering station with more precise temperature control.

EDIT: I am an idiot and should have checked jameco. I have used them before but never realized they had the grab bag things which are awesome.

Locker Room Zubaz fucked around with this message at 22:55 on Feb 2, 2008

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
The talk of flip flops a few pages back brought back horrible memories of my intro to digital electronics class where we made a timing circuit using nothing but flipflops. I can't even remember how one works now!

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
I got my Jameco grab bags the other day and drat were the parts crappy. I recommend the Electrolytic grab bag without question but the TTL one was basically 40 line buffers and a few CMOS NAND gates. Nothing really worth it at all. The Analog IC bag was just a ton of poo poo that is basically useless.

I guess you get what you pay for.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

clredwolf posted:

That's amazingly awesome. Jameco just kind of lumps everything together and sends it out the door. Sorting parts suck, especially when you can barely read the drat letters on some of those ICs.

And yeah, Jameco's resistor pack was kind of worthless. Lots and lots of 10k ohms, but nothing over 100kohms at all. That's kind of important for some things, you know? Their electrolytic grab bag was alright though, I actually use those.

I definitely recommend the elecrolytics because they are a good range of values and voltage ratings and are actually useful. Oh i got the potentiometer grab bag and it was good too. Huge range of values and its a pain in the rear end to find proper potentiometer values.

For resistors you can get a presorted box of 1-1MOhm values from most electronic stores.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
Has anyone made a working Class D amplifier? Or have any experience with them? I know it is basically just an H Bridge switching at incredibly high frequencies. I am wondering because I have to come up with my senior design project ideas soon and was thinking of doing a Home Theater receiver. I could use Class AB in there but what is the fun in that? Class D is the future and it is loving awesome because of how much less power is required and how efficient they are, I really don't want to spend 20hours designing a massive toroid based PSU for a class AB circuit anyway. So does anyone have any experience in them?

Hell is anyone actually working with audio a lot? I really want to learn more about it, i only have basic DSP knowledge, so effects and poo poo like that, and a moderate knowledge of low power amplifiers, I built a 50W class AB amp in lab once but that was a while ago. If we have any acoustics guys I would be so happy if you could just give a rundown of some cool stuff, like what goes into a good amplifier design and things that are more complex than just MAKE THE SIGNAL BIGGER. I say this because I see tons of schematics for amplifiers on the internet and they do things different than what I have learned, and there is a pretty common theme between the designs.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
I wanted to get a DSP to mess around with, i think they are freakin cool, outside of class but drat are they expensive. For a decent AD Blackfin on a test board it is $500 :(

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Delivery McGee posted:

I do have a toggle switch laying around unused. Not sure where I'd mount it, though, as it's pretty big. I wonder if I could repurpose the AM/FM switch, since I don't listen to AM radio.

Now, to figure out which is left and which is right.

wouldn't you need a TPDT swtich for that? You have 3 channels that need switching, left, right, ground(Well ground might not need switching but left and right do). I would think a simple slide switch would work pretty well and would only cost a dollar or two at mouser.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

babyeatingpsychopath posted:

The thing about opamps is they need dual voltages, because they amplify signals that have both positive and negative voltage. Without positive and negative voltage (or differential voltage, such as from a voltage divider) the opamp just won't work at all. It will "do stuff" but not what you think it should be doing. With DC filter caps on the input and output, it won't do anything at all.

I played around in spice with this for a bit and am convinced that opamps are magic.

there are tons of single rail op-amps out there that put a dc offset into the signal so it can swing high and low, then you can just throw a decoupling cap on the output to remove the DC.

quote:

You realize the two are the same thing, right? Small, identical dots? Just that one comes with grammar and the other with numeric values? I don't know if they teach anything except equations and being a smug prick at engineering school.

Get out of here you aren't providing anything to the discussion and are just being a lovely troll and enticing flames. This thread is about information and learning not about being a cock and bitching about people not wanting to do your work.

edit: didn't realize there was another page on this thread.

Locker Room Zubaz fucked around with this message at 17:51 on Mar 21, 2008

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Nerobro posted:

While I don't have any lights on it, my bike helmet is red. :-) And I have a obnoxious red flashing taillight. My goal is to have enough light that I can ride confidently in the dark.

I have a PCB layout that will net a very neat looking headlight. I have a road bike, and nothing is uglier than a bunch of stuff hanging off the bars. My bars are about 7/8" thick, and two rows of LED's are only about half an inch wide. I'm looking to have the headlight be a "stick" of light.

Digging around on digikey, I found two good candidates. And I think I settled on the LM2576. http://www.national.com/ds/LM/LM2576.pdf It has a wider acceptable input voltage than the LM1575. The whole reference design is the chip, the inductor, a diode to handle the back emf from the inductor, and two caps. I think that's about as simple as it can get.

Better than that, someone on ebay is selling sets of 10 of the needed components for $23. Having a stockpile of 5v 3A SMPS wouldn't be a bad thing.

the 2576 is a good part and will work fine for what you are doing. It gets a little finnicky at low input voltages, the spec sheet says it can go down to 2.5v input but it stops working at like 4, so if you are going to really low voltages stay away from it.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Fifty-Nine posted:

Resistor codes always end with a tolerance band which specifies the precision of the resistor's indicated value. It could be gold (+-5%), silver (+-10%), red (+-2%), or brown (+-1%). In practice I've only ever seen resistors with gold or silver tolerances, in which case you always read it starting on the side that opposite the gold/silver tolerance band.

Now, if your tolerance was red or brown you'd still start on the opposite side of that, but if your resistor value began with the same color as well, then I have no clue how you'd tell just by looking at the bands.

assuming it wasn't some freakish out spec component there are only so many standard values for components, standard values will be cheaper than a custom value so they will almost always be used.

1%
code:
10.0	10.2	10.5	10.7	11.0	11.3	11.5	11.8	12.1	12.4	12.7	13.0
13.3	13.7	14.0	14.3	14.7	15.0	15.4	15.8	16.2	16.5	16.9	17.4
17.8	18.2	18.7	19.1	19.6	20.0	20.5	21.0	21.5	22.1	22.6	23.2
23.7	24.3	24.9	25.5	26.1	26.7	27.4	28.0	28.7	29.4	30.1	30.9
31.6	32.4	33.2	34.0	34.8	35.7	36.5	37.4	38.3	39.2	40.2	41.2
42.2	43.2	44.2	45.3	46.4	47.5	48.7	49.9	51.1	52.3	53.6	54.9
56.2	57.6	59.0	60.4	61.9	63.4	64.9	66.5	68.1	69.8	71.5	73.2
75.0	76.8	78.7	80.6	82.5	84.5	86.6	88.7	90.9	93.1	95.3	97.6
5%
code:
10	11	12	13	15	16	18	20	22	24	27	30
33	36	39	43	47	51	56	62	68	75	82	91
10%
code:
10	12	15	18	22	27	33	39	47	56	68	82
so you for most situations you can figure out the value by seeing if it is a standard value, or measuring it but that is cheating.

And if the resistor has a 4th Band it is failure rate. Brown=1%, Red=.1%, Orange=.01%, Yellow=.001%.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Mr. Powers posted:

Does anyone have any familiarity with purchasing and interacting with image sensors? I'd like to start getting into some embedded computer vision projects, but I don't want to rely on dismantling GameBoy cameras for sensors that aren't very good anyway. I'd like to be able to get a camera element and feed it into an ADC and process from there, etc, etc.

couldn't you hack apart a USB web cam and extract the bitstream?

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Mr. Powers posted:

I don't know, that's why I was asking. I was hoping there was someone here who has more experience with this.

my DSP teacher had a little camera he bought at a robotics shop that interfaced via serial port with our DSP and it had an integrated ADC on it. It was only like 1MP but i will ask him where he got it because that seems to be what you are looking for. I would think though that a skilled programmer could interface with a webcam but I don't know. I will google it I guess.

Edit: Heh found what you were looking for http://www.jrobot.net/Projects/AVRcam.html

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Zuph posted:

I'm having some trouble figuring out how to interface a handful of 14-segment displays to a microcontroller. The micro I'm using has enough power to drive the LEDs directly, but there's no way I can sink the necessary amount of current through the micro to properly multiplex the display. Allegro made a current sinking driver chip at one time, but it has since been discontinued, and Maxim makes a chip that does a fantastic job of controlling the displays directly, but it's $15 a pop, and moreover hard to find.

What are my options here?

you can use a BJT or MOSFET low switch to dump the current. A very cheap 2n3904, i think they are $.02 a piece, can deal with 100mA current sustained and 200mA peak and still operate pretty well at 25MHz, although you aren't going to be switching anywhere near that speed.
The only problem with this is you are going to be using a ton of BJTs, one per segment.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Zuph posted:

I can drive the segments fine from the Micro (or, in this case, a shift register to minimize port lines), but each segment is common cathode, so I could (theoretically) need to sink up to 300mA of current.

well there are higher current BJTs, they go up to about 1A, for cheap so current shouldn't be an issue. The real issue will be wiring everything.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

mtwieg posted:

I've been busy lately with finals along with my own ongoing development of a major project, so I've been busy lately. Next update will probably come in the next couple days.

Also I want advice on something. I have a device that runs on three AA alkali batteries, and I want it to have three light outputs, each controlled by a MCU. However, each "light" needs to be fairly visible, so it will consist of many individual LEDs (from 6 to 12), each with a Vf of up to 3.5V (for blue). So I'm trying to think of a way to drive these things fairly efficiently (and cheaply) off my given supply. I don't need any kind of dynamic brightness control or fast response time. Just a simple on/off function.

As I see it my options are:
-Use some kind of boost circuit to drive each light with all its LEDs in series. There are ICs designed to do this, but each channel requires it's own boost circuit, so I'd have to have a lot of external components. Efficiency would be optimal, though. I could also use a single boosted supply to bias each string of LEDs and sink each string with a current source, but this would hurt efficiency.
-Run all the leds in parallel. The simplest way to do this would be for one light, each led is in series with its own current limiting resistor, and all of these are supplied directly from my batteries and driven with one low side switch. This would be simple and cheap, but efficiency would be crap because I lose power over the resistors and the switch. Also variations in the Vf of leds will cause variation in brightness; how much, I'm not certain.
-I could also use a specialized IC that sinks a regulated current. However, it would likely need to have one channel per led (at least 18 sinks), and it would have be pretty robust to draw all that current.
-Have a separate supply for the LEDs, like a 9V battery. This would have the advantage of being simple and reliable, plus the supply voltage for all my other analog stuff wouldn't be effected by the current draw. I'd rather avoid adding another battery, though, since this is designed to be a small portable device. Also I'm not sure what the internal resistance of the average 9V is, so it might not be able to deliver to my needs.

Any suggestions?
If you use a 555 timer you can pulse them on and off at about 100hz and that will cut current draw substantially.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Hypnolobster posted:

I just ordered a Weller WES51, which is going to be loving great, because I've been stuck with pencil irons ever since I started dicking around with electronics. I ordered it to enhance the enjoyment of my newest project (tube-hybrid headphone amp).
I'll be doing lots of point to point wiring and lots of board work. Anyone have tip suggestions for me?

Also, where can I get one of those awesome no-water tip cleaners that looks like a big ball of steel wool?

Double also, where can I find a huge multi-pack of wire? I need a bunch of stranded wire in varying colors. 16-22ish.

jameco has great prices on wire from my experience. They also have a ton to choose from and will do special orders if you nag em.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

SnoPuppy posted:

If you ground the negative rail, everything in the opamp will be referenced to a "virtual ground" that is Vcc/2. Thus, you would need to AC couple the input and outputs, otherwise you will get a signal that has a strong DC offset.

Remember, voltage is just the difference between two arbitrary points (one of which is normally ground, but not necessarily).

not all opamps will function without a negative supply. A lot will just do nothing unless you power them properly so be careful with this and read the datasheet.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

PickledFetus posted:

What is a good way to get started with microcontrollers? I am taking an Embedded Systems class right now and we're using Xilinx MicroBlaze, which is a soft-core VHDL microprocessor that you synthesize onto an FPGA. Its pretty cool because you can synthesize all kinds of on-chip peripherals (UARTS, timers, memory, etc) depending on what you want for your design, but the board itself is kind of expensive, so I'm looking at a number of cheaper hardware uCs to use in smaller projects. I know the AVR is popular, but I'm looking at all the info at https://www.avrfreaks.net and its kind of intimidating - whats a good AVR chip and development/programming platform to start with? I'm not necessarily tied to the AVR, either, it just seems like its a popular platform.

an atmega16 is a really nice full featured micro and I would recommend it from my experience.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Mr. Powers posted:

http://www.mypic32.com/web/guest/home

Just thought I'd share this with everyone. It's a design contest that looks like it will be pretty easy to get free goodies from (you just need to make it past the first round, and 128 people will get debug kits). I was going to enter, but then I read the details that the companies involved are granted limitless licenses to anything you create, and they are allowed to sublicense, etc. Basically, you come up with ideas, they pick the good ones, give you a few small prizes, and sell them to companies for a lot more.

Wouldn't be hard to come up with a BS project with some good drawings and details to get past the first round, though.

gonna have to throw something together in visio so it looks really pretty.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Chalupa Joe posted:

why not do two gain stages in series each with a gain of somewhere around 10?
The LM324 is a quad opamp IC after all, and this will give you an overall gain of 100 leaving one opamp free for an output buffer.


Other thoughts: is a gain of 100 close to your supply rails?
Even though the LM324 can work on a single supply, you'll still need to bias your input signal.

something like:


This should give a voltage gain of 121 (11x11).

R1 and R2 set your bias voltage, in this case 4.5V or half of the supply (9V, but 12V should be fine)

Because resistors (and active components) have noise, and reactances (capacitors/inductors) don't, we add some more components to our biasing network...

C1 (47uF, the value like everything else in the schematic, was just chosen arbitrarily) is used to kill thermal noise from the biasing resistors by shunting it to ground, R3 is a high value resistor (any value higher than 470k is fine) to 1) stop the voltage divider being loaded down by whatever you're biasing, and 2) the lower current through the resistor = the lower the noise.

Edit: your volume control should be after the output of the gain sections, otherwise you're just amplifying noise.

Why do inductors not have noise? I would think being large coils of wire they would act as antennas inducing noise into the circuit. I have also heard of electrolytic capacitors inducing noise because they have all that bubbling goo inside of them.

Please set me straight.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
Ok i'm starting on a project right now to make a scrolling LED display. I am really unsure of what i'm going to need and how to go about it, although I do want to do most of it by myself I figure why not at least get a starting point down.

Here is my current plan, I am going to use a ATMEGA16 to control a big ole grid of LEDs. My plan was to make an addressing scheme similar to how RAM is access with a column address and a row address and divide the memory into that, maybe have the column be ground and the row's be hot. When the address is hit the LED will then turn on! Voila easy as pie. The issue with this is I need tons and tons of address lines, unless I multiplex the lines but then speed becomes an issue. How would be the best way of doing this? Am I completely over complicating this because if I am please tell me.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

RegonaldPointdexter posted:

Usually, matrix multiplexing is the way to go when controlling an LED array. With an ATMEGA16, speed shouldn't be a problem at all.
How big is your LED array?

I am thinking of doing 10x200 in 5x7 matrices but that seems like a lot of soldering and burned fingers.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
Welp i found a great guide for making a LED array http://www.acm.uiuc.edu/sigarch/tutorials/ledarray/

looks to be the same thought process I went through too. Welp now to source some LED 8x8 grids and get this project started

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
http://www.sparkfun.com/commerce/product_info.php?products_id=681 found some LED matrixs for anyone that cares. They are 8x8 and the company that sells these even makes a serial backpack so you can just send it a big array and it will decode it and stuff, although they are $50 a pop.

It looks to me that I am going to need a ATTiny or ATMEGA on each matrix because there is no way I can address the entire 72x8 array with just a single chip because I need 18 outputs per chip, 2 for each column since they are bicolor LEDs and then 1 for the clocking of the counter.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
Does anyone know anything about ARM processors? I have worked on an Atmel before, i love those things, but these look simply too good to be true for a lot of the bigger projects I will be soon getting into since my senior project is coming up. So does that look like a good deal? or am i being stupid and should stick to Atmel?

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

hobbesmaster posted:

I take it you mean AVR? Because Atmel makes ARM7 and ARM9 based microcontrollers, amongst other things. They also have an interesting looking architecture in the AVR32 line. (also, check out the new AVR xmega series if you haven't already and have used the atmega series)

The question is what are you going to be doing. I'm in a similar situation looking at different microcontrollers for an upcoming senior project (robot for an IEEE contest in case anyone cares). We used a single atmega for the robot last year, but it wasn't doing anything more computationally intensive than a moving average and some comparisons based on ADC readings. This year we're looking at image processing, which brings us to much larger controllers if things need to be done quickly. The beagleboard seems like a good choice, there is also gumstix, but they're pricier. I haven't used anything other than 8bit MCUs either, and would also appreciate some advice on these ARM dev boards.

Yeah I meant AVR, thanks for correcting me. And my senior project is also lots of image processing and i think it will require a good amount of computational power so I am looking into learning on the beagleboard. I am actually thinking about ordering one and just figuring it out as I go.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
Don't bother building anything remotely high frequency on a breadboard. There is so much parasitic inductance and capacitance so you will not get a working circuit no matter how hard you try.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
About to buy the beagle board and futz around with it. It looks to be a monstrously good deal for what's on board, i love that it has a DSP on it, and I want to learn to code for ARMs since they are so common in the market.

Edit: Jeeze I was looking at the specs of this thing and it is ridiculous. I don't think I will even be able to scratch the surface of the capabilities of this with my limited embedded system knowledge. Still going to be a fun thing to mess around with i think.

Locker Room Zubaz fucked around with this message at 05:12 on Aug 18, 2008

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:
Well the nice guys at Cypress Semi came to my school the other day and gave us a tour of their product and some free samples. They make the PSoC, Programmable System on a Chip, and it looks to be a pretty cool device for beginners and advanced users. Its a mixed signal array that lets you put both digital and analog components on the chip and it also has a relatively fast micro controller on it. For beginners it has a really simple drag and drop interface and for advanced users you can program the micro controller and pretty much design your own blocks for the analog/digital sections. The software is free to futz around with too so if you want to just see what developing for one would be like you can.

If you are a student and shoot them an e-mail i would think you could work out a deal where you can get a discount or an eval board.

Their page is really terrible for linking so if you want to check them out go to cypress.com and look into the "PSoC EVAL1 Academic Development Kit" in the store.

I haven't really messed around with one yet but from the limited stuff i've done they seem to be a great way to do somewhat advanced stuff, like controlling an LCD or using an ADC, with very minimal coding.

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

hobbesmaster posted:

Don't worry, you'll hate it with a passion soon enough.

Well i have used the PSoC a bit over the weekend and am still undecided on it. I think if I had no idea how to program a microcontroller I would think this is the greatest thing ever. The problem I have is I know what I want to do but it is incredibly hard to describe with some simple graphical blocks and transfer functions. For example I wanted to make a variable pulse PWM to control a servo. In the PSoC it took me about an hour to figure out the logic behind it. On my mega16 it took about 10minutes to figure out the timer preloads and set all the registers I needed.

I think what it comes down to is how well you are planned to do your project. If you have everything planned out ahead of time, flow charts and all that jazz, you will be able to implement it on a real micro faster. However, if you have a vague idea of what you want to do a PSoC might be a bit better.

I haven't really tooled around with the analog portion of the chip yet but it looks pretty cool

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

Sweevo posted:

I'm trying to build something to control a heated seat in a car. I did some reading and came up with this:



It uses an 741 op-amp as a comparator, and I want the load to switch off when the seat goes above a pre-set temperature.

R3 is a NTC thermistor attached to the seat
R4 sets the temperature cut-off point
LOAD is the heater element itself - approx 5 amps, 2.5 ohms.

It's adapted from a circuit I found online, but the original used a transistor to control a relay, which I wanted to avoid as the relay clicking on/off every few seconds would be annoying. So I replaced it with a MOSFET (Q1). Have I done this right?

Am I calculating to power dissipation of the MOSFET correctly: P = I^2 * Rds(on), which gives approx 1 Watt (assuming typical MOSFET parameters). This doesn't seem much for a 5 amp load.

I don't think a 741 will be able to source enough current to toggle that mosfet. I would look into using a buffer or open collector hex inverter, 7406, to get more current into the gate. As long as you exceed saturate the gate with Vcontrol>Vgs you will start the switch up but with very little current it is going to take a very long time to get the mosfet conducting.

And just a little tip that might save you some problems later. Seperate the ground from the load control circuit and run it by itself directly back to the ground. This will prevent high currents being dumped through it, which will happen on inrush, from loving up the low level logic that is on the other ground. You can't begin to imagine the poo poo that gets hosed up when your ground suddenly floats to 500mV

Adbot
ADBOT LOVES YOU

Locker Room Zubaz
Aug 8, 2006

:horse:
~*~THE SECRET OF THE MAGICAL CRYSTALS IS THAT I'M FUCKING TERRIBLE~*~

:horse:

RivensBitch posted:

I'm trying to interface an electret condenser microphone with a PIC 16F628A microprocessor. I just need a simple way to let ambient audio influence my program, so a simple circuit that flips a pin on the pic high or low based on a certain audio threshold would be great.

I have a LM324 quad op amp and a simple mic.

Any suggestions on a simple circuit to accomplish this?

Wouldn't it be possible to use a bandpass filter for the frequency range you want to get and then a comparator that detects when your predefined threshold is met. You could then just have the comparators output connected to the external interrupt pin which would then do exactly what you want.

This is of course assuming PICs have external interrupt pins

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