EmbeddedRelated.com
Forums
Memfault State of IoT Report

interfacing a H21A1,2,3 IR detector with a BX24

Started by carolkysela April 29, 2005
> ... the BX24 doesn't seem to see the difference at all.

First, verify that the input pin you connected to is the one you're
testing in code, and that it is configured for input (tristate).
Disconnect your input, ground the pin and verify that you see logic low
(a zero) from GetPin(n). Connect the pin to +5v through your 3.3k
resistor (non-critical value, anything below a few hundred kilohms will
work), and test for a logic high (a one). If these tests fail, try
another pin. Tom
Tom Becker
--... ...--
GTBecker@GTBe... www.RighTime.com
The RighTime Clock Company, Inc., Cape Coral, Florida USA
+1239 540 5700


Carol, what is your application (sorry if I missed it earlier)? One
thing about the sensor you are using is ambient lighting. Even though
many simple sensors have a built-in IR filter, they often need to be
shielded. There are other things like modulation rate, filtering,
etc. I'm assuming your IR source is modulated with a carrier of
around 36 to 40 KHz?

- Tom

--- In basicx@basi..., "carolkysela" <carolkysela@y...> wrote:
> Hi Tom,
>
> I have previously used a part HOA7730-M22. This thing has TTL
output
> and works perfectly right out of the box. The completed HOA... unit
> (connectors etc.) goes for a bit over $10 or a little under 10 times
> what an H21A2 goes for. I don't know about it but the Sharp stuff
> probably would work also. It's just that I don't see any reason why
> the H21A2 wouldn't work and if I discover do discover a reason that
it
> won't then I will have learned something new.
>
> Carol > --- In basicx@basi..., "tombhandley" <gr13tbs@c...> wrote:
> > Carol, I don't know your application nor budget but have you
considered
> > Sharp modules that are fairly low cost, do most of the Analog
> > processing, and are packaged with IR filters? Here is a general
link
> > about their sensors:
> >
> > http://www.acroname.com/robotics/info/articles/sharp/sharp.html
> >
> > - Tom
> >
> > --- In basicx@basi..., "carolkysela" <carolkysela@y...>
wrote:
> > > Hello, I have been attempting to interface an H21A2 ir
detector to a
> > > basicx BX24. I keep reading and re-reading everything I can
search
> > > out on this but I have not been successful in getting it done.
I must
> > > be missing something about getting this device to work with the
BX24.
> > > I am strictly a hobbiest and in no way an engineer so if you
know how
> > > to accomplish this would you mind describing it to me in plain
> > > english? Thank you, Carol



the H21A2 is inside a box so there is no ambient light trouble....
there is no modulated carrier however and i am not at all certain why it
should need one... it seems to function perfectly right now but why
should such a carrier be needed? tombhandley wrote:

> Carol, what is your application (sorry if I missed it earlier)? One
> thing about the sensor you are using is ambient lighting. Even though
> many simple sensors have a built-in IR filter, they often need to be
> shielded. There are other things like modulation rate, filtering,
> etc. I'm assuming your IR source is modulated with a carrier of
> around 36 to 40 KHz?
>
> - Tom
>
> --- In basicx@basi..., "carolkysela" <carolkysela@y...> wrote:
> > Hi Tom,
> >
> > I have previously used a part HOA7730-M22. This thing has TTL
> output
> > and works perfectly right out of the box. The completed HOA... unit
> > (connectors etc.) goes for a bit over $10 or a little under 10 times
> > what an H21A2 goes for. I don't know about it but the Sharp stuff
> > probably would work also. It's just that I don't see any reason why
> > the H21A2 wouldn't work and if I discover do discover a reason that
> it
> > won't then I will have learned something new.
> >
> > Carol
> >
> >
> > --- In basicx@basi..., "tombhandley" <gr13tbs@c...> wrote:
> > > Carol, I don't know your application nor budget but have you
> considered
> > > Sharp modules that are fairly low cost, do most of the Analog
> > > processing, and are packaged with IR filters? Here is a general
> link
> > > about their sensors:
> > >
> > > http://www.acroname.com/robotics/info/articles/sharp/sharp.html
> > >
> > > - Tom
> > >
> > > --- In basicx@basi..., "carolkysela" <carolkysela@y...>
> wrote:
> > > > Hello, I have been attempting to interface an H21A2 ir
> detector to a
> > > > basicx BX24. I keep reading and re-reading everything I can
> search
> > > > out on this but I have not been successful in getting it done.
> I must
> > > > be missing something about getting this device to work with the
> BX24.
> > > > I am strictly a hobbiest and in no way an engineer so if you
> know how
> > > > to accomplish this would you mind describing it to me in plain
> > > > english? Thank you, Carol >
>
> *>. >
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 266.11.1 - Release Date: 5/2/2005




> ... there is no ambient light trouble...
> ... there is no modulated carrier...

You two are talking about different notions, I think.

Tom, she is using an optical interrupter, not an optical distance
sensor; an interrupter can operate in full sunlight. And her remote
control sure looks like an X-10 PalmPad which uses ~300MHz RF, not IR;
no IR carrier or detector module is involved. Tom
Tom Becker
--... ...--
GTBecker@GTBe... www.RighTime.com
The RighTime Clock Company, Inc., Cape Coral, Florida USA
+1239 540 5700


Tom, I've designed interrupter sensors in saw mills that had full
sunlight in certain situations. We really needed the modulation. On
another 'paw', my current robot uses a simple reflective sensor for
shaft encoding so that's basic on/off with no filters.

- Tom

--- In basicx@basi..., "Tom Becker" <gtbecker@r...> wrote:
> > ... there is no ambient light trouble...
> > ... there is no modulated carrier...
>
> You two are talking about different notions, I think.
>
> Tom, she is using an optical interrupter, not an optical distance
> sensor; an interrupter can operate in full sunlight. And her remote
> control sure looks like an X-10 PalmPad which uses ~300MHz RF, not
IR;
> no IR carrier or detector module is involved. > Tom >
> Tom Becker
> --... ...--
> GTBecker@R... www.RighTime.com
> The RighTime Clock Company, Inc., Cape Coral, Florida USA
> +1239 540 5700



> ... I've designed interrupter sensors in saw mills that had full
sunlight...

If I needed to shoot six feet outdoors I might modulate, too, Tom. Have
you encountered an environment that required optical modulation to
detect blocking of a 0.125" gap with a 0.035" aperture? Tom
Tom Becker
--... ...--
GTBecker@GTBe... www.RighTime.com
The RighTime Clock Company, Inc., Cape Coral, Florida USA
+1239 540 5700


Tom, I have a better understanding of Carol's environment and, like
the shaft encoders, a simple reflective sensor would be fine as you
mentioned. I had originally thought she was using sensors looking
several feet out in a pasture with full sunlight...

- Tom

--- In basicx@basi..., "Tom Becker" <gtbecker@r...> wrote:
> > ... I've designed interrupter sensors in saw mills that had full
> sunlight...
>
> If I needed to shoot six feet outdoors I might modulate, too, Tom.
Have
> you encountered an environment that required optical modulation to
> detect blocking of a 0.125" gap with a 0.035" aperture? > Tom >
> Tom Becker
> --... ...--
> GTBecker@R... www.RighTime.com
> The RighTime Clock Company, Inc., Cape Coral, Florida USA
> +1239 540 5700


actually, i would like to explore the possibility of measuring distance
accurately in full sunlight.... how could one most cost effectively do
that to a distance of about seven feet with a remote sensing device to
be pointed directly at the ground? anyone have any ideas?
tombhandley wrote:

> Tom, I have a better understanding of Carol's environment and, like
> the shaft encoders, a simple reflective sensor would be fine as you
> mentioned. I had originally thought she was using sensors looking
> several feet out in a pasture with full sunlight...
>
> - Tom
>
> --- In basicx@basi..., "Tom Becker" <gtbecker@r...> wrote:
> > > ... I've designed interrupter sensors in saw mills that had full
> > sunlight...
> >
> > If I needed to shoot six feet outdoors I might modulate, too, Tom.
> Have
> > you encountered an environment that required optical modulation to
> > detect blocking of a 0.125" gap with a 0.035" aperture?
> >
> >
> > Tom
> >
> >
> >
> > Tom Becker
> > --... ...--
> > GTBecker@R... www.RighTime.com
> > The RighTime Clock Company, Inc., Cape Coral, Florida USA
> > +1239 540 5700 >
>
> *>. >
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.308 / Virus Database: 266.11.3 - Release Date: 5/3/2005




define your view of accurate... in other words, 1%, an inch, a foot, etc.

best regards, Steve Thatcher

-----Original Message-----
From: Carol <carolkysela@caro...>
Sent: May 5, 2005 11:40 AM
To: basicx@basi...
Subject: [BasicX] measuring vertical distance in sunlight

actually, i would like to explore the possibility of measuring distance
accurately in full sunlight.... how could one most cost effectively do
that to a distance of about seven feet with a remote sensing device to
be pointed directly at the ground? anyone have any ideas?



> ... seven feet with a remote sensing device to be pointed directly at
the ground?

Ultrasonic rangefinders will work well there, I suspect. You have a
number of choices; check Robot Electronics, Acroname, etc. Links are in
the Links sction. Or you can do it the hard way and build one from
conceptual scratch; for instance:
http://www.web-ee.com/Schematics/Ultrasonic%20Range%20Finder%20II/slaa13
6a.pdf
Tom
Tom Becker
--... ...--
GTBecker@GTBe... www.RighTime.com
The RighTime Clock Company, Inc., Cape Coral, Florida USA
+1239 540 5700



Memfault State of IoT Report