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
SnoPuppy
Jun 15, 2005

CptAJ posted:

Quick couple of questions here. First of all, I don't really know much about electronics but I can't stop myself from breaking stuff open. That said, I was recently playing a mighty fine game of CIV4 and my computer crashed horribly. Seeing as the screen went to poo poo and I knew the videocard's fan was busted, I figured it was overheating. I decided to remove the fan and play mcguyver by putting a casefan pointing towards it. Thats when I noticed 3 bloated caps. Some of them have already started oxidizing or whatever.

So, any reasonable person would keep using the card for regular computer activities and wait to get a replacement card. But I don't have a car until tomorrow and I'm very bored. Obviously this meant rumaging through the boxes of crap in the house looking for some scrap that had matching caps. Well, the search paid off. I found the matching caps (I think) on an old motherboard. I used the soldering iron to remove them without too much trouble.

And this is where you guys come in.

- Is this advisable at all?
- How do I test the caps? I have a multitester here but I don't really know how to use it.
- Caps on the card: 6.3v 1000µf Skywell SHT (M) 105°C
Rumaged caps: 6.3v 1000µf G-LUXCON 0067 (M) LZ 105°C
Will they even work?

Thanks for the input =)

Yeah, they should work. Just be aware that you would probably be putting your card out of warranty by replacing components on it...

Adbot
ADBOT LOVES YOU

CptAJ
Sep 15, 2007
El Capitanisimo
It worked. I rock. You guys rock. We all rock. =)

*Goes back to playing CIV4*

BattleMaster
Aug 14, 2000

Mill Town posted:

Put a few kHz or so square wave out the LEDs and a high-pass filter on the detector?

e: high

Coincidentally I was just looking at a Panasonic PNA4602M, a sensor that detects only IR light at around 38kHz. You can get it for only a couple dollars on Digikey, it's tiny, and it doesn't need any extra equipment. If you have a spare PWM output or space for a 555 timer you'll be good to go.

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe

TwoShanks posted:

I am currently building several robots which are attracted to light and have ultrasonic collision sensing. I'm now trying to think of a way to make the robots able to find and move toward each other in certain circumstances. I was going to use infrared emitters and detectors but the lights produce too much IR and overwhelm the LEDs.

Any ideas for sensing systems to allow the robots to find each other? The system also needs to be as cheap as possible.

That sounds like a fun project :)

Just a word of caution to you - even though you can't hear ultrasonic frequencies, they're still dangerous to your hearing. Maybe moreso because you can't percieve how loud they are.

I work with a guy who is mostly deaf. He blames it on a few years of working with 40kHz transducers and not paying attention to their directivity or volume.

TwoShanks
Feb 27, 2007

Robots of the world unite
The ultrasonics on the robot are quite low-level - I'm only using them to detect objects closer than about 5cm or so. I'll keep it in mind though, my previous project was an ultrasonic distance measurement system with about 15m range.

The robot project has been fun so far, much more complicated than anything else I've built. It has about 15 randomly-generated variables such as speed, turning circle, sensitivity to light, etc. It also has an "energy" value which counts down at different rates depending on the speed variable and goes up when the light is above a certain value. The robot "dies" when the energy runs out.

The next step in the project is to have a "breeding" energy threshold where the robots will be attracted to the dead units and transmit their variables across with a slight chance of mutation. The dead unit then starts up with the new variables.

I'm planning to build a lot of the little things and let them "evolve" in different conditions to see what happens to the variables - it should be interesting.

catbread.jpg
Feb 22, 2007
Working on a big project. Involving two AT91SAM7s plus an ATmega8.

There's going to be a motherboard with a SAM7 and a bluetooth module, a SAM7 comms board with a CMOS camera and an infra-red system, and an ATmega8 motor control/peripheral board.

What is the best way to detect IR signals from a TV remote or similar? It will have to compete with a bunch of other similar robots. Can I just use a biasing network for an IR detecting diode, interface it in GPIO, and do everything in software?

Are there commonly available IR systems that operate on a different wavelength to standard TV ones, and would be immune to the effects of them?

TwoShanks
Feb 27, 2007

Robots of the world unite

catbread.jpg posted:

What is the best way to detect IR signals from a TV remote or similar? It will have to compete with a bunch of other similar robots. Can I just use a biasing network for an IR detecting diode, interface it in GPIO, and do everything in software?

Are there commonly available IR systems that operate on a different wavelength to standard TV ones, and would be immune to the effects of them?

This is similar to the problem I was having (thanks BattleMaster!). From recent reading, TV remotes use a carrier frequency usually around 38kHz. Various sensors are available that will only detect IR at specific frequencies - I've found them available from 30-40kHz. They are single sensors with integrated amplification, no external circuitry needed.

I've just ordered a bunch of OSRAM SFH 5110-36 sensors for this purpose.

catbread.jpg
Feb 22, 2007

TwoShanks posted:

This is similar to the problem I was having (thanks BattleMaster!). From recent reading, TV remotes use a carrier frequency usually around 38kHz. Various sensors are available that will only detect IR at specific frequencies - I've found them available from 30-40kHz. They are single sensors with integrated amplification, no external circuitry needed.

I've just ordered a bunch of OSRAM SFH 5110-36 sensors for this purpose.

Those look pretty good. Now I just have to figure out how to find/modify an IR remote to have a non-standard carrier frequency.

Jo
Jan 24, 2005

:allears:
Soiled Meat
Hurf durf magnetic compass nevermind.

ANIME AKBAR
Jan 25, 2007

afu~

catbread.jpg posted:

Working on a big project. Involving two AT91SAM7s plus an ATmega8.

There's going to be a motherboard with a SAM7 and a bluetooth module, a SAM7 comms board with a CMOS camera and an infra-red system, and an ATmega8 motor control/peripheral board.

What is the best way to detect IR signals from a TV remote or similar? It will have to compete with a bunch of other similar robots. Can I just use a biasing network for an IR detecting diode, interface it in GPIO, and do everything in software?

Are there commonly available IR systems that operate on a different wavelength to standard TV ones, and would be immune to the effects of them?
I supposed you could do a lot of it in software, but a simple analog bandpass filter and demodulator would probably be easier, unless you're much more comfortable with the software side of things.

And by the way, IR transistors and diodes normally have considerable capacitance, meaning using them at high frequencies isn't always easy. For instance, when using an IR transistor in a normal common emitter configuration, its bandwidth might only be 5KHz. Getting it above that requires some analog tricks; most likely cascoding.

How much data bandwidth are you trying to encode? Any idea what modulation scheme you'll use? Is directionality an issue?

stgdz
Nov 3, 2006

158 grains of smiley powered justice
My power amp has a 12v auto turn on feature to it. It is hooked up through a 4 screwed terminal block, two brass two black(I believe it is a passthrough). It was designed to be used in conjuction with the preamp but I talked to the manufacturer and got this information from them.

quote:

I would recommend using something that provides 100ma up to 1amp.

The amp is currently hooked up to my HTPC and I was wondering if I could use one of the 4 pin molex connectors, using yellow and black, off the psu to hook it up.

catbread.jpg
Feb 22, 2007

ANIME AKBAR posted:

I supposed you could do a lot of it in software, but a simple analog bandpass filter and demodulator would probably be easier, unless you're much more comfortable with the software side of things.

And by the way, IR transistors and diodes normally have considerable capacitance, meaning using them at high frequencies isn't always easy. For instance, when using an IR transistor in a normal common emitter configuration, its bandwidth might only be 5KHz. Getting it above that requires some analog tricks; most likely cascoding.

How much data bandwidth are you trying to encode? Any idea what modulation scheme you'll use? Is directionality an issue?

I'll be looking at the OSRAM SFH 5110-36 mentioned, which does all of the above already. The idea here is to use standard equipment (TV remote or similar, hopefully one encoded RC-5), but perhaps modified to use a different carrier frequency.

Not sending lots of data, I'll end up training it to use the arbitrary signals of the TV remote.

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
I've never worked with RC-5, but after some reading I would suggest the following approach:

If you have an IR receiver that's got built-in carrier removal, you could save yourself some trouble here and skip right to the decoding phase. Otherwise, you can assume you're going to get a ~40kHz carrier wave out of the IR receiver. In this case, I'd take the square-wave output of your IR receiver and run it through an analog lowpass filter (even a passive RC would be fine).

Since the worst-case frequency content of your signal is 1/32 of the carrier frequency, you could filter the carrier right out with even a first-order lowpass filter and still leave the band of interest pretty much untouched. Run the output through a comparator and you've got the manchester-encoded data stream, carrier-free.

The question from here is what to do with it. If you have an RTOS or something, you might be able to do all the sampling and decoding in software. Otherwise I'd either buy a chip designed for de-encoding and de-serializing your data or else use a CPLD and make my own.

EDIT:

Another approach that might be interesting would be to use 9600 baud for your manchester transition rate (which would work out to 4800 bits per second), and then running the comparator output directly into your micro's UART. You'd have to work out the mapping function between a "byte" of manchester and a nibble of actual data, but that would be pretty reasonable to do.

Poopernickel fucked around with this message at 03:35 on Apr 1, 2009

catbread.jpg
Feb 22, 2007

Poopernickel posted:

I've never worked with RC-5, but after some reading I would suggest the following approach:

If you have an IR receiver that's got built-in carrier removal, you could save yourself some trouble here and skip right to the decoding phase. Otherwise, you can assume you're going to get a ~40kHz carrier wave out of the IR receiver. In this case, I'd take the square-wave output of your IR receiver and run it through an analog lowpass filter (even a passive RC would be fine).

If I use the component above, that's all taken care of, I'm left with a serial data stream. I want to use a stock *transmitter*. Not too worried about decoding the serial data.

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
Oh, my bad -

If that's the case, you can probably do the transmitting from within software (assuming you don't have any critical tasks which need to occur at the same time). It would be pretty straightforward to send serial manchester data out of your micro. You could do it either by bit-banging, by using the UART port, or by using a peripheral of some sort (CPLD or maybe a serializer chip).

I'd avoid trying to bang out a 40kHz square wave, because that begins to approach frequencies where you will have to count and conserve your clock cycles.

Instead, I'd recommend using an oscillator of your desired carrier frequency (you can buy pre-programmed oscillator chips or build a crystal circuit) and a generic discrete AND gate, with one input tied to the oscillator and the other input tied to an inverted copy of your manchester stream (or just generate it upside-down).

Astrolite
Jun 29, 2005

Ero Ninja Gundam!
Pillbug
Can I get some advice on my H-bridge?

I want to build a dual H-bridge motor controller for my RC crawler.
The H-bridges would be controlled by some kind of atmel chip, perhaps an ATTiny.
The bridge will be running at a pwm frequency of say 3000hz.

For the sake of safety I have tried to make it impossible to short circuit the bridge by having a bridge off pin (V4) and a pwm control pin (V3). The battery voltage is 8.4v (V1) and the mosfets IRF3415 because I have a bunch of them. These are n-channel, so a voltage doubler chip is used to make the V2 voltage which is needed to run the gates of the top mosfets.
I have tried to make this as simple as possible, but although this design appears to work in simulation it makes very inefficient use of V2. The doubler chip can only supply 80mA, and I am burning it all away by sinking the mosfet gates to ground. R1 and R3 can't be increased because the mosfets have a rather high gate charge (200nC).


BattleMaster
Aug 14, 2000

Why not just use a dual H-bridge IC?

Poopernickel
Oct 28, 2005

electricity bad
Fun Shoe
I built a discrete class-D amplifier a couple of years back, and I used basically the same setup you've got (except mine was a half-bridge) and I used complementary mosfets.

What my experience taught me is that it's easier and often cheaper to buy it inside of a chip instead. :)

Depending on your interest, you can either buy chips that have the whole H-bridge and drivers inside of it, or you can buy dedicated gate drive chips (I recommend these) which accept a logic-level input and provide gate signals suitable for a power MOSFET. Check out Linear Technology's and International Rectifier's various offerings.

As far as feedback on your design goes, it seems to be missing the bootstrap circuits you typically see driving the high-side NMOS's gates. These are normally needed because you have to bias [V(g)-V(s)] and V(s) is connected to your load rather than to something with a constant voltage. This might be why you've having such a tough time running your design without using those monster pullup resistors. If you want to do the design yourself, consider using a bootstrap approac for the high-side or switching to complementary NMOS and PMOS instead. The January issue of Nuts and Volts had a pretty interesting article all about this subject.

Poopernickel fucked around with this message at 18:33 on Apr 1, 2009

Astrolite
Jun 29, 2005

Ero Ninja Gundam!
Pillbug

BattleMaster posted:

Why not just use a dual H-bridge IC?

Haven't really found any of these (or single ones for that matter) that put out the currents/voltages I'd like to use. The crawler doesn't need very much (8.4V 6A per motor) but I kinda wanted to have a scalable design for future projects such as CNC servos.

Poopernickel posted:

dedicated gate drive chips (I recommend these)

Sounds interesting. I'll have a look around. As for the bootstraps you mentioned, that's something I didn't even consider, need to absorb some more knowledge I guess..

BattleMaster
Aug 14, 2000

Astrolite posted:

Haven't really found any of these (or single ones for that matter) that put out the currents/voltages I'd like to use. The crawler doesn't need very much (8.4V 6A per motor) but I kinda wanted to have a scalable design for future projects such as CNC servos.

Oh, when you said "RC crawler" I was envisioning something much, much smaller. What are you using to power that thing, a car battery?!

Astrolite
Jun 29, 2005

Ero Ninja Gundam!
Pillbug

BattleMaster posted:

Oh, when you said "RC crawler" I was envisioning something much, much smaller. What are you using to power that thing, a car battery?!

Haha, while 6A is admittedly the peak current draw this thing still drains batteries like nothing else. It's got a 2cell (~8V) 9400mAh lipo pack in it.
By the way, I've got another rc car with a mamba max brushless system, which apparently can draw upwards of 80 amps peak. There's some zesty mosfets in that one for sure.

CptAJ
Sep 15, 2007
El Capitanisimo
Well, it kinda worked. Turns out the problem persists. Oh well, at least I discovered I can effectively change caps and those needed replacing anyway (I'm surprised they didn't fail before since they were leaking and whatnot). I wan't to try testing the rest of the caps on the card, see if they're alright (Hopefully thats the problem since I can hardly change anything else in there)

Anyway, here's the cheapo tester I have. Can it test capacitors? Actually, do any of you mind giving me a crash course explanation on what each of those functions do? Learning never hurt nobody... unless maybe Marie Curie or something I guess

Cyril Sneer
Aug 8, 2004

Life would be simple in the forest except for Cyril Sneer. And his life would be simple except for The Raccoons.
Sorry, your meter won't work for testing caps.

The left green region is for measuring resistance.
The left white region is for measuring DC voltage.
The right white region is for measuring AC voltage.
The right green region is for measuring DC current.

Your meter can also test diodes and transistors, but I doubt you'd have a use for that.

CptAJ
Sep 15, 2007
El Capitanisimo
Thanks. Its good to know what the thing does anyway.

Delta-Wye
Sep 29, 2005

Cyril Sneer posted:

Sorry, your meter won't work for testing caps.

The left green region is for measuring resistance.
The left white region is for measuring DC voltage.
The right white region is for measuring AC voltage.
The right green region is for measuring DC current.

Your meter can also test diodes and transistors, but I doubt you'd have a use for that.

Unless the caps shorted when (if?) they failed, which I've seen happen. The continuity measurement (which that meter doesn't seem to have) would be one way to check that.

There is a good chance that the caps are not the problem for the circuit - their failure was a symptom and not a cause. it would be worth using the voltage measurements of your probe and checking the polarity of the power connector that gets plugged into the card, assuming there is one.

It sounds strange, but I had a friend who required his molex connects (he wanted to put loom on the cables) and didn't get the cables plugged in the right way. The poor video card was able to regulate the voltage for a long while with the 12V rail plugged in instead of the 5V rail, but it generated tons of head and eventually lead to problems.

One of those things that couldn't hurt to check I guess.

BattleMaster
Aug 14, 2000

I thought that the option with the diode icon was the continuity test.

CptAJ
Sep 15, 2007
El Capitanisimo
Its quite an old card so it takes power from the AGP slot itself. (NVIDIA Geforce FX5700LE) Amazing that your friends card worked on the wrong rail though.

And yeah, I figured the diode test is just a continuity test. So is the resistance one for that matter, right?

Aluminum Record
Feb 2, 2008

When you rip off the breakaway pants, thrust your pelvis toward the bachelorette.

CptAJ posted:

And yeah, I figured the diode test is just a continuity test. So is the resistance one for that matter, right?

Well, in a way, I guess. The meter sends a minuscule test current through the resistor and measures the voltage drop across the resistor to compute the actual resistance. But if current isn't flowing it'll show a ridiculously high number or infinity.

Hillridge
Aug 3, 2004

WWheeeeeee!

BattleMaster posted:

I thought that the option with the diode icon was the continuity test.

It's to check the diode voltage drop, which is kind of like continuity for diodes. If you set it to that and put it across an LED, it will usually light it up slightly, which is a good way to figure out LED polarity safely.

Delta-Wye
Sep 29, 2005

BattleMaster posted:

I thought that the option with the diode icon was the continuity test.

I think it's the diode test setting :v: The way I see it, if it doesn't beep, it's not testing continuity. Sure, you can fake the test using resistance or whatever, but then you are testing resistance and not continuity :colbert:

Delta-Wye fucked around with this message at 19:20 on Apr 2, 2009

catbread.jpg
Feb 22, 2007
A continuity test is just a resistance test with an arbitrary cutoff :colbert:

BattleMaster
Aug 14, 2000

Well the diode setting on my multimeter beeps.

From Earth
Oct 21, 2005

A multimeter that is incapable of beeping is literally worthless. :colbert:

Bush Ant
Jan 4, 2009

by Fistgrrl
mine plays the mario theme song

















not really but if there was one that did I would totally buy it


edit: it actually shouldnt be too hard to implement, fitting it all in the case would be another matter, I will look into this further

Mill Town
Apr 17, 2006

Bush Ant posted:

mine plays the mario theme song

















not really but if there was one that did I would totally buy it


edit: it actually shouldnt be too hard to implement, fitting it all in the case would be another matter, I will look into this further

ATtiny13 + piezo buzzer

Delta-Wye
Sep 29, 2005
Here is a circuit only a mother could love! :fap:




This is so ugly I have no idea why I'm showing you :downs:

I did some back-of-the-envelope calculations, and I think my line-voltage->5V regulator is approximately 2.2% efficient. It's not a big deal as the power draw isn't huge, and I think the paralled 2W resistors should be a-okay.

One of my EE professors came into lab to see what I was tinkering on, looked at the project, looked at the calculations on the white board (including the drawn schematic), and after pondering this monstrosity for a few minutes said something along the lines of "If you show that to an electrician, he will never respect you again," and then walked out.

I wonder if the same applies to EE professors :v:

I was working on the firmware a bit today, it seems like it is going to work! I hope this is what you were imagining Bush Ant, it was a fun idea to put together. I've only blown 2 fuses and popped the breaker once (all through sloppy probing).

EDIT: I vote microprocessor with a lot of memory and a DAC and a small amp. Install it between the current circuit and the speaker - when it sees the attempt to drive the speaker, it starts dumping values out through the DAC into a simple amp that then drives the speaker in turn. Seems like it would work.

Delta-Wye fucked around with this message at 07:01 on Apr 5, 2009

Bush Ant
Jan 4, 2009

by Fistgrrl
oh

dear

god


you actually built it???!?!! that schematic I posted was meant to be a parody of a power supply than an actual one. like the advice to use thin green branches from trees as replacement spark plug leads if your 1000km from anyone and your leads happen to break

(which actually does work for about 5 minutes untill they dry out due to resistive heating and catch fire in your engine bay)

I can only see this ending badly, very very badly.

catbread.jpg
Feb 22, 2007
There are no words.

Mill Town
Apr 17, 2006

Delta-Wye posted:

Here is a circuit only a mother could love! :fap:




This is so ugly I have no idea why I'm showing you :downs:

I did some back-of-the-envelope calculations, and I think my line-voltage->5V regulator is approximately 2.2% efficient. It's not a big deal as the power draw isn't huge, and I think the paralled 2W resistors should be a-okay.

One of my EE professors came into lab to see what I was tinkering on, looked at the project, looked at the calculations on the white board (including the drawn schematic), and after pondering this monstrosity for a few minutes said something along the lines of "If you show that to an electrician, he will never respect you again," and then walked out.

I wonder if the same applies to EE professors :v:

I was working on the firmware a bit today, it seems like it is going to work! I hope this is what you were imagining Bush Ant, it was a fun idea to put together. I've only blown 2 fuses and popped the breaker once (all through sloppy probing).

EDIT: I vote microprocessor with a lot of memory and a DAC and a small amp. Install it between the current circuit and the speaker - when it sees the attempt to drive the speaker, it starts dumping values out through the DAC into a simple amp that then drives the speaker in turn. Seems like it would work.

what the christing rear end :psyboom:

You know, you could definitely fit a small switching supply in that large an amount of space. There are toroidal transformers that are smaller than that bank of resistors.

I didn't really think about it when you first posted, because I have a hell of a time visualizing things. I'm really terrible at it. But now I can see how much space you have to work with.

Adbot
ADBOT LOVES YOU

Walked
Apr 14, 2003

This may be a stupid question, I may be a stupid person. Regardless, I've got this question:

http://zaphaudio.com/WaveguideTMM-minimalist-crossover.gif

This is a schematic for a crossover for a speaker. Thing is, I've not previously seen one such as this, where all "routes" terminate to ground. Does this mean they all actually terminate to the (-) wire of the speaker input? I cant see this circuit working ANY other way; but I cant find any reference to similar style schematics.

Thanks!

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