Prev: Star Wars - in your back yard
Next: Litz wire
From: Matt on 20 Feb 2010 13:42 On Feb 19, 10:41 pm, George Herold <ggher...(a)gmail.com> wrote: > On Feb 19, 4:02 pm, Matt <hamplif...(a)gmail.com> wrote: > > > > > > To distinguish between left and right without having to code the pulses, use two Tx/Rx pairs operating > > > at different frequencies. > > > Actually that's a good idea. I hadn't thought of that, but I'm pretty > > sure it would have been an issue and reason for revision #1 !! > > > > It sounds like you'd like to do some synchronous detection of the IR. > > > Chop the IR at some frequency and then pick out that same frequency in > > > the detected IR. The phase shifts should be small and can probably be > > > ignored. Which makes things easier. One way to do this would be to > > > have the same square wave that turns the IR on and off also switch the > > > gain of an amplifier looking at the detector signal. The gain should > > > switch from +1 to -1. Then a bit of low pass filtering and you are > > > done. For the background IR the signal first gets added and then > > > subtracted. But your copped transmitter only adds to the signal.. > > > Yep, that's pretty much it. I was actually stuck on only picking the > > modulated signal up. The detector and emitter would be phase shifted > > and I thought it'd never work. Then I read up on Phase Lock Loop stuff > > and my brain started hurting...... I'm not sure I can handle PLL. It > > sounds like I have a lot of bench testing to do with chopper > > circuits..... either that or get an order together for Jameco with the > > tuned Ir detectors. > > > Or make sure the robot only runs in the dark. HA! > > > Man, this got complicated fast! I had no idea. > > Well if you don't mind spending a few bucks you can buy 'lockin' > chips. The AD620 does the switching for you if you feed it the square > wave and signal. > There's probably more clever ways to do this. > > > Man, this got complicated fast! I had no idea. > > Really, sounds like fun, you've already got the robot moving around? > > George H. Cool. Yea, the robot is moving around now. It's pretty stupid though. It drives forward until it runs into a wall. I have limit switches on the nose to detect an impact. Then it rolls back and away from the limit switch about 90 degrees and rolls forward again........ pretty entertaining actually! I put 3" rubber knobby tires on the back and a 2" rubber swivel caster on the nose. It's driven by some modified RC servos for continuous rotation. It runs on hard floor and carpet, so I was pleased with that...... all built on a 3/4" MDF plank for now. I found four devices in some junk I have. I can't find any information on them or any information on the components on the board. It looks like an Ir receiver, probably tuned to a frequency because there's a three pin connector off the board labeled with Vcc, GND, and SIGNAL. The numbers off the unit are EUR-411 (probably means nothing) and UR41PB9A. The component I think is the Ir detector has 302 45 and a 14- pin IC #5021S....... I can't find a thing on these. I hooked them up to 3.3VDC and then 5VDC. The output is about 1V level voltage no matter what the emitter modulated frequency is. I've tried DC to about 75kHz square wave.
From: Matt on 20 Feb 2010 13:47 On Feb 20, 12:15 am, "m...(a)sushi.com" <m...(a)sushi.com> wrote: > On Feb 19, 9:19 am, Matt <hamplif...(a)gmail.com> wrote: > > > Yea? Thank you, I should have mentioned it's not for data > > transmission. Sorry about that. > > > My idea is an array or Ir units (maybe 3 or 4) around the bot to be > > used for navigation. > > Does the emitter have some built in resistor? If not, you should be > driving it with current, not voltage. > > If you meditate on how a communications system works, the fundamentals > are based on a priori knowledge of the signal. Thus if you send a > chopped signal, you have a priori knowledge of that frequency. I'm > more of a linear person, so I would AM the current going to the > emitter. I suppose chopping is just as good since either method will > give a strong signal at the fundamental frequency. Pick a frequency > not likely to occur in real life. That is, you wouldn't want the > detector to be triggered by a flashing computer display. > > Say you pick 50kHz. Your receiver, after some signal conditioning, > could be feed to a switched cap filter bandpass. Low pass filter off > the clock feed through, and AC couple to remove offset. Now from this > point, you have two choices. You could drive an energy detector > circuit, or do an envelope detector. That is rectify, low pass filter, > and then the output is a signal relative to the strength of IR > detected. > > Use a different frequency for left and right. Very good. I can't find the LM567, LM567c, LM565 PLL devices or any PLL devices locally. I may try the choppers today...... just for kicks, I will definitely use different freq for left and right. That's an excellent suggestion. I'm also going to run a freq that's not a multiple of 60Hz just to be safe. Oh, and yea the emitter is current limited. Right now it's running off a Freq generator, 1.3VDC (not 1.3V p-p) square wave, current limited to about 40mA...... I'll eventually run it off 5VDC and pick a current limiting resistor to match.
From: miso on 20 Feb 2010 23:48 On Feb 19, 5:05 pm, Matt <hamplif...(a)gmail.com> wrote: > First I had no idea there were PLL IC's available. Wow. I'll look into > it. > > Second, the reason I'm building this from components is the Sharp > sensors I found were $30 a piece, times probably four is WAY too much. > Spark fun has em' for $14. Pretty tempting. > > Thank you all. I'd like the challenge of building a system from > components so I may do that..... at least until I get discouraged :) > I'll learn a lot though. > > I think I've got enough from your advice to research and build > something. Thank you again. > > P.S. The brains of this will be the Parallax BS2. I'm having a ball > with it. I'm made several kinds of bots with it. It sure is a lot more > capable than the Atmel I used to use! > > I'll fire up the oscilliscope and play some more. I don't think they make the old XR-2211, which was a classic tone decode chip. I think you should consider my AM demod scheme. It sounds complicated, but you can get a linear estimate of the reflected signal, not a go/no- go detection of the carrier. Locking on a signal sounds good, but all that means is you have a means to detect when the light of known (a priori) modulation is being reflected, but not how much light is being reflected, which is related to the distance to the object somewhat. [Reflected light also depends on the color of the wall, how shiny it is, etc.] A PLL scheme can lock on a signal in the mud, but you probably don't want that kind of sensitivity. Rather, you just want to know if you are near an object, so the more linear approach like AM demod seems more appropriate to me. If you were building a communications systems, then the PLL would make more sense.
From: Fred Bartoli on 21 Feb 2010 03:44 miso(a)sushi.com a �crit : > On Feb 19, 5:05 pm, Matt <hamplif...(a)gmail.com> wrote: >> First I had no idea there were PLL IC's available. Wow. I'll look into >> it. >> >> Second, the reason I'm building this from components is the Sharp >> sensors I found were $30 a piece, times probably four is WAY too much. >> Spark fun has em' for $14. Pretty tempting. >> >> Thank you all. I'd like the challenge of building a system from >> components so I may do that..... at least until I get discouraged :) >> I'll learn a lot though. >> >> I think I've got enough from your advice to research and build >> something. Thank you again. >> >> P.S. The brains of this will be the Parallax BS2. I'm having a ball >> with it. I'm made several kinds of bots with it. It sure is a lot more >> capable than the Atmel I used to use! >> >> I'll fire up the oscilliscope and play some more. > > I don't think they make the old XR-2211, which was a classic tone > decode chip. > > I think you should consider my AM demod scheme. It sounds complicated, > but you can get a linear estimate of the reflected signal, not a go/no- > go detection of the carrier. Locking on a signal sounds good, but all > that means is you have a means to detect when the light of known (a > priori) modulation is being reflected, but not how much light is being > reflected, which is related to the distance to the object somewhat. > [Reflected light also depends on the color of the wall, how shiny it > is, etc.] A PLL scheme can lock on a signal in the mud, but you > probably don't want that kind of sensitivity. Rather, you just want to > know if you are near an object, so the more linear approach like AM > demod seems more appropriate to me. If you were building a > communications systems, then the PLL would make more sense. Then don't lock on, but lock-in :-) Synchronous detection is really simple to setup and a simple on/off modulation scheme will provide the OP the distance information he needs, with excellent distance detection range. Oh, I just read your post and see it's what you've said. And if the uC has an ADC and it's not too heavily loaded, then you can just choose a low enough chopping frequency and have almost all that done in SW. -- Thanks, Fred.
From: Frnak McKenney on 21 Feb 2010 13:09
On Fri, 19 Feb 2010 17:05:40 -0800 (PST), Matt <hamplifier(a)gmail.com> wrote: [...] > Second, the reason I'm building this from components is the Sharp > sensors I found were $30 a piece, times probably four is WAY too > much. Spark fun has em' for $14. Pretty tempting. Sharp offers a wide variety of IR-based sensors, and the price varies with the features. I did a quick check at Digi-Key (www.digikey.com) and found modules with prices from $3 to $40 under "Sensors - Optical - Distance Measuring". This one just tells you whether there is an obstacle roughly 5cm away or not: $3.41 GP2Y0D805Z0F Fixed-distance detector And this one: $10.93 GP2Y0A02YK0F Distance-Measuring Sensor returns a voltage in the range 0-3V (roughly) indicating how far the detected object is. If you look over the various datsheets (far right column in the Digi-Key listings) you can get some idea of how they work and which one(s) would be appropriate for your design. As with all IR measurements, your results will vary according to the IR reflective properties of the object and the amount of IR "noise" in your environment. Sunlight, for example, contains enough IR to completely swamp many IR devices. If you'd rather roll your own, there's an article on p.32 of the February 2010 issue of SERVO magazine called "The CheapBot Smart Proximity Detector" that uses a microprocessor, two IR LEDs and one IR receiver module to determine approximate distance to objects the robot is approaching (or being approached by: your feet, pets, small children, etc.). On Digi-Key, these TV remote control receiver/demodulator chips are filed under "Sensors - Optical - Photo Detectors - Remote Receiver", like this one: $1.31 Vishay TSOP321xx, 323xx series They are avalilable to respond to various IR "carrier frequencies", e.g. for the Vishay a TSOP32140 expects a modulated 40kHz carrier. Again, to educate yourself on their performance and how they work, review a datasheet or three. [...] > I'll fire up the oscilliscope and play some more. That's the spirit. Nothing like the warm glow of a burning 'scope and the smell of escaping Magic Smoke to make one's day. <grin!> Frank McKenney -- If teachers now lack the knowledge they need to teach reading and other subjects well, it is not because they are innately incompetent but because they have been trained under faulty romantic ideas about the nature of reading and the worthlessness of "mere iformation". -- E.D. Hirsch, Jr./The Knowledge Deficit -- Frank McKenney, McKenney Associates Richmond, Virginia / (804) 320-4887 Munged E-mail: frank uscore mckenney ayut mined spring dawt cahm (y'all) |