IR
Archiver
Posts: 46,084
Is there a way for a BS2p to read a IR remote?
thanks
Anthony
[noparse][[/noparse]Non-text portions of this message have been removed]
thanks
Anthony
[noparse][[/noparse]Non-text portions of this message have been removed]
Comments
A Stamp can read any IR transmitter if it has a detector. If you are talking
about IR remote control then you need something like a Firestick from
Rentron. It takes 2 Stamps to establish IR communication. Make your
question a bit more specific and perhaps I can give you a more specific
answer.
Sid
if I can read the IR remote so I may copy it, then use the stamp to
control the radio.
aconti
--- In basicstamps@y..., Newzed@a... wrote:
> For aconti
>
> A Stamp can read any IR transmitter if it has a detector. If you
are talking
> about IR remote control then you need something like a Firestick
from
> Rentron. It takes 2 Stamps to establish IR communication. Make
your
> question a bit more specific and perhaps I can give you a more
specific
> answer.
>
> Sid
Are you talking IR Remote like in a TV Remote Control? Does your car radio
have a Remote Control?
Sid
--- In basicstamps@y..., Newzed@a... wrote:
> For aconti
>
> Are you talking IR Remote like in a TV Remote Control? Does your
car radio
> have a Remote Control?
>
> Sid
I doubt if you can copy your Remote Control - it probably has a language of
its own. However, you could hook up a detector to your Stamp, point the
Remote at it and see if you copy anything. Whatever pin you connect the
detector to, write:
serin pin whatever, baud rate, [noparse][[/noparse]com]
Since you don't know what baud rate the Remote is using you may have to try
everything from 300 to 9600, both inverted and non-inverted. You can find
out if the Stamp received anything by writing
Debug ? com
Good luck
Sid
I am wanting to make an application that will require many
Infarred senders and receivers. Basically I have 12 different points
that i want to be able to individually check to see if there is an
object in front. I also want to be able to generally check the
distance. I know how to check the distance and to see if there is an
object in front like they do on the new BOE-BOTS. What I need to
know is how I can wire up all the transmitters and recievers on to
one basic stamp 2. I was thinking that I could hook all the IR
recievers onto one line and then hook each IR sender on a seperate
I/O port using a total of 13 ports. I could send out a pulse
individually on each IR sender and check the condition of the
receivers. Basically I need to know if it is ok to hook the output
of the IR recievers on one line and if this will work ok. Any help,
suggestions or ideas, would be most appreciated.
Thanks in advanced,
Travis
>Hello,
>
> I am wanting to make an application that will require many
>Infarred senders and receivers. Basically I have 12 different points
>that i want to be able to individually check to see if there is an
>object in front. I also want to be able to generally check the
>distance. I know how to check the distance and to see if there is an
>object in front like they do on the new BOE-BOTS. What I need to
>know is how I can wire up all the transmitters and recievers on to
>one basic stamp 2. I was thinking that I could hook all the IR
>recievers onto one line and then hook each IR sender on a seperate
>I/O port using a total of 13 ports. I could send out a pulse
>individually on each IR sender and check the condition of the
>receivers. Basically I need to know if it is ok to hook the output
>of the IR recievers on one line and if this will work ok. Any help,
>suggestions or ideas, would be most appreciated.
>
>Thanks in advanced,
>
>Travis
Travis -
You might want to take a look here at the Owl Ultrasonic Sensor which is
mounted on top of an R/C servo, and use the same or a similar technique
for you I/R application: http://www.robotstore.com/catalog/list.asp?cid=15
Regards,
Bruce Bates
care which of my 8 sensor's pick up the object. I use the parallax IR
sensors that have the 3 wires, but any IR sensor such as the tin can styles
would work.
What I do is hook 4 of the outputs to a 7421 AND gate.. The other 4 go to a
2nd 7421 AND gate. The outputs of the 7421 chips go to another AND gate. Any
other chip such as a 7408 for this final AND gate. Then the output of that
goes to a single Stamp pin.
All of the IR sensors output a 1 or high single. The AND gate will pass a
HIGH single to the stamp if there is no detection on all of the sensors. If
any one sensor gets a detection than that IR outputs a 0. If an AND gate
sees a 0 it then outputs this 0 to the stamp.
In your case you could use a pair of 7431 NAND gates which have 8 inputs
each. The outputs would need to be inverted with a 7400 chip. A NAND gate
outputs the opposite signal, so it needs to be inverted by the 7400.
After I get a detection I stop my robot, and use my sharp gp2d02 sensor
mounted on a servo. I rotate the servo through 180 degrees and find where
the detection occured.
When I am backing up I do not care. If I get a detection from either of the
IR sensors mounted on the rear of the robot while backing up I know that the
detection did not come from a forward facing sensor.
For the IR output LED's I simply tied them all together in parallal and
drive them all from a single 555 timer circuit. You can vary the value of
the dropping resistor on the IR leds. I found that at 36,000 HZ output I
used a 400 ohm resistor which gave me a 8 inch range detection. an 1100 ohm
resistor gave me 2 inch detection. You can also of course vary the frequency
to lower or raise detection range.
A differant option is to use a mutiplexor. For the cost of 5 stamp lines
you can have 16 digital inputs/outputs. You send an address on 4 of the
stamp lines to the multiplexor and tell it which of the 16 lines you wish to
read. For example pins 1,2,3,4 of the stamp would output a 1 0 0 1 to the
multiplexor. This would be value 9 to the multiplexor and it would output
the digital I/O line connected to port 9 of the chip to the stamp on the 5th
pin. A 74150 is a 16 line multiplexor. A 74151 is an 8 line unit and
requires 4 Stamp pins.
Finally you could use a parallal to serial convertor chip that requires you
to send a clock signal to the chip and input the data that way. I gave up on
that method as being to messy. I cannot recall a parallal-serial chip number.
I just went thru this entire fiasco this week, so happen to have all the
data handy [noparse]:)[/noparse]
Good Luck
-kerry
At 09:59 AM 1/29/03 -0000, you wrote:
>Hello,
>
> I am wanting to make an application that will require many
>Infarred senders and receivers. Basically I have 12 different points
>that i want to be able to individually check to see if there is an
>object in front. I also want to be able to generally check the
>distance. I know how to check the distance and to see if there is an
>object in front like they do on the new BOE-BOTS. What I need to
>know is how I can wire up all the transmitters and recievers on to
>one basic stamp 2. I was thinking that I could hook all the IR
>recievers onto one line and then hook each IR sender on a seperate
>I/O port using a total of 13 ports. I could send out a pulse
>individually on each IR sender and check the condition of the
>receivers. Basically I need to know if it is ok to hook the output
>of the IR recievers on one line and if this will work ok. Any help,
>suggestions or ideas, would be most appreciated.
>
>Thanks in advanced,
>
>Travis
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sincerely
Kerry
Admin@M...
WWW server hosting [url=Http://mntnweb.com]Http://mntnweb.com[/url]
Kerry Barlow
p.o. box 21
kirkwood ny
13795
607-775-1132
>Travis: I have a similar application. I only want a detection and do not
>care which of my 8 sensor's pick up the object. I use the parallax IR
>sensors that have the 3 wires, but any IR sensor such as the tin can styles
>would work.
You may be able to use a 'wired-OR' configuration if your sensors are open
drain output (most are). All you have to do is connect all the outputs
together. If any output goes LO, then they all go LO. Saves the cost and
hassle of the external gate.
I realize you have a working configuration - I'm suggesting an alternative
technique the next time you need to do this.
dwayne
--
Dwayne Reid <dwayner@p...>
Trinity Electronics Systems Ltd Edmonton, AB, CANADA
(780) 489-3199 voice (780) 487-6397 fax
Celebrating 18 years of Engineering Innovation (1984 - 2002)
.-. .-. .-. .-. .-. .-. .-. .-. .-. .-
`-' `-' `-' `-' `-' `-' `-' `-' `-'
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.
-kerry
At 04:47 PM 1/29/03 -0500, you wrote:
>Travis: I have a similar application. I only want a detection and do not
>care which of my 8 sensor's pick up the object. I use the parallax IR
>sensors that have the 3 wires, but any IR sensor such as the tin can styles
>would work.
>What I do is hook 4 of the outputs to a 7421 AND gate.. The other 4 go to a
>2nd 7421 AND gate. The outputs of the 7421 chips go to another AND gate. Any
>other chip such as a 7408 for this final AND gate. Then the output of that
>goes to a single Stamp pin.
>All of the IR sensors output a 1 or high single. The AND gate will pass a
>HIGH single to the stamp if there is no detection on all of the sensors. If
>any one sensor gets a detection than that IR outputs a 0. If an AND gate
>sees a 0 it then outputs this 0 to the stamp.
> In your case you could use a pair of 7431 NAND gates which have 8 inputs
>each. The outputs would need to be inverted with a 7400 chip. A NAND gate
>outputs the opposite signal, so it needs to be inverted by the 7400.
> After I get a detection I stop my robot, and use my sharp gp2d02 sensor
>mounted on a servo. I rotate the servo through 180 degrees and find where
>the detection occured.
>When I am backing up I do not care. If I get a detection from either of the
>IR sensors mounted on the rear of the robot while backing up I know that the
>detection did not come from a forward facing sensor.
> For the IR output LED's I simply tied them all together in parallal and
>drive them all from a single 555 timer circuit. You can vary the value of
>the dropping resistor on the IR leds. I found that at 36,000 HZ output I
>used a 400 ohm resistor which gave me a 8 inch range detection. an 1100 ohm
>resistor gave me 2 inch detection. You can also of course vary the frequency
>to lower or raise detection range.
> A differant option is to use a mutiplexor. For the cost of 5 stamp lines
>you can have 16 digital inputs/outputs. You send an address on 4 of the
>stamp lines to the multiplexor and tell it which of the 16 lines you wish to
>read. For example pins 1,2,3,4 of the stamp would output a 1 0 0 1 to the
>multiplexor. This would be value 9 to the multiplexor and it would output
>the digital I/O line connected to port 9 of the chip to the stamp on the 5th
>pin. A 74150 is a 16 line multiplexor. A 74151 is an 8 line unit and
>requires 4 Stamp pins.
> Finally you could use a parallal to serial convertor chip that requires you
>to send a clock signal to the chip and input the data that way. I gave up on
>that method as being to messy. I cannot recall a parallal-serial chip number.
>I just went thru this entire fiasco this week, so happen to have all the
>data handy [noparse]:)[/noparse]
>Good Luck
>-kerry
>
>
>
>
>
>At 09:59 AM 1/29/03 -0000, you wrote:
>>Hello,
>>
>> I am wanting to make an application that will require many
>>Infarred senders and receivers. Basically I have 12 different points
>>that i want to be able to individually check to see if there is an
>>object in front. I also want to be able to generally check the
>>distance. I know how to check the distance and to see if there is an
>>object in front like they do on the new BOE-BOTS. What I need to
>>know is how I can wire up all the transmitters and recievers on to
>>one basic stamp 2. I was thinking that I could hook all the IR
>>recievers onto one line and then hook each IR sender on a seperate
>>I/O port using a total of 13 ports. I could send out a pulse
>>individually on each IR sender and check the condition of the
>>receivers. Basically I need to know if it is ok to hook the output
>>of the IR recievers on one line and if this will work ok. Any help,
>>suggestions or ideas, would be most appreciated.
>>
>>Thanks in advanced,
>>
>>Travis
>>
>>
>>To UNSUBSCRIBE, just send mail to:
>> basicstamps-unsubscribe@yahoogroups.com
>>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>>
>>
>>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>>
>>
>Sincerely
>Kerry
>Admin@M...
>WWW server hosting [url=Http://mntnweb.com]Http://mntnweb.com[/url]
>Kerry Barlow
>p.o. box 21
>kirkwood ny
>13795
>607-775-1132
>
>
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sincerely
Kerry
Admin@M...
WWW server hosting [url=Http://mntnweb.com]Http://mntnweb.com[/url]
Kerry Barlow
p.o. box 21
kirkwood ny
13795
607-775-1132
It seems you're already getting very good suggestions, but if you really need
IR, then here's another one(albeit quite complicated one) using 4 IR
LED/receivers. The concept could however be extended to 12 or more.
I created a serial interface from a BS2 to a PIC16F84 module, using just two
BS2 pins. The PIC therefore did most of the work. When instructed by the BS2,
the PIC flashes 100 pulses (at 38KHz) to an IR diode and reads the response via
a matching (38KHZ)IR receiver. It cycled through all 4 diodes/receivers in this
way. The PIC would count how many 'pulses' the IR receivers picked during each
pulse. In this way I could determine the distance from objects by the % of hits
(i.e. 10 hits = object is far away, 99 hits = about to crash). This worked
better than varying the frequency.
The PIC would then transmit back to the BS2 which sensor found 'hits' and how
close the object(s) where. By sending 'device codes' from the BS2 to the PIC, I
could also 'talk' to individual IR LED/Receivers to get more updates and also
use the IR receivers as a remote control device. I'm currently completing a new
version and will put details & videos are on my website
http://robocube.webhop.biz.
Good Luck
Colin
______________
>Hello,
>
> I am wanting to make an application that will require many
>Infarred senders and receivers. Basically I have 12 different points
>that i want to be able to individually check to see if there is an
>object in front. I also want to be able to generally check the
>distance. I know how to check the distance and to see if there is an
>object in front like they do on the new BOE-BOTS. What I need to
>know is how I can wire up all the transmitters and recievers on to
>one basic stamp 2. I was thinking that I could hook all the IR
>recievers onto one line and then hook each IR sender on a seperate
>I/O port using a total of 13 ports. I could send out a pulse
>individually on each IR sender and check the condition of the
>receivers. Basically I need to know if it is ok to hook the output
>of the IR recievers on one line and if this will work ok. Any help,
>suggestions or ideas, would be most appreciated.
>
>Thanks in advanced,
>
>Travis
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
chips and pullup resistors like I was using. I wish I had known this a week ago.
I just assumed that +5 normal and 0 detection I could never simply hook the
output wires together.
-Kerry
At 02:52 PM 1/29/03 -0700, you wrote:
>At 04:47 PM 1/29/03 -0500, mntnweb@e... wrote:
>>Travis: I have a similar application. I only want a detection and do not
>>care which of my 8 sensor's pick up the object. I use the parallax IR
>>sensors that have the 3 wires, but any IR sensor such as the tin can styles
>>would work.
>
>You may be able to use a 'wired-OR' configuration if your sensors are open
>drain output (most are). All you have to do is connect all the outputs
>together. If any output goes LO, then they all go LO. Saves the cost and
>hassle of the external gate.
>
>I realize you have a working configuration - I'm suggesting an alternative
>technique the next time you need to do this.
>
>dwayne
>
>
>
>
>--
>Dwayne Reid <dwayner@p...>
>Trinity Electronics Systems Ltd Edmonton, AB, CANADA
>(780) 489-3199 voice (780) 487-6397 fax
>
>Celebrating 18 years of Engineering Innovation (1984 - 2002)
> .-. .-. .-. .-. .-. .-. .-. .-. .-. .-
> `-' `-' `-' `-' `-' `-' `-' `-' `-'
>Do NOT send unsolicited commercial email to this email address.
>This message neither grants consent to receive unsolicited
>commercial email nor is intended to solicit commercial email.
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sincerely
Kerry
Admin@M...
WWW server hosting [url=Http://mntnweb.com]Http://mntnweb.com[/url]
Kerry Barlow
p.o. box 21
kirkwood ny
13795
607-775-1132
-Kerry
At 11:13 PM 1/29/03 +0000, you wrote:
>Hi Travis,
>It seems you're already getting very good suggestions, but if you really
need IR, then here's another one(albeit quite complicated one) using 4 IR
LED/receivers. The concept could however be extended to 12 or more.
>
>I created a serial interface from a BS2 to a PIC16F84 module, using just
two BS2 pins. The PIC therefore did most of the work. When instructed by the
BS2, the PIC flashes 100 pulses (at 38KHz) to an IR diode and reads the
response via a matching (38KHZ)IR receiver. It cycled through all 4
diodes/receivers in this way. The PIC would count how many 'pulses' the IR
receivers picked during each pulse. In this way I could determine the
distance from objects by the % of hits (i.e. 10 hits = object is far away,
99 hits = about to crash). This worked better than varying the frequency.
>
>The PIC would then transmit back to the BS2 which sensor found 'hits' and
how close the object(s) where. By sending 'device codes' from the BS2 to the
PIC, I could also 'talk' to individual IR LED/Receivers to get more updates
and also use the IR receivers as a remote control device. I'm currently
completing a new version and will put details & videos are on my website
http://robocube.webhop.biz.
>
>Good Luck
>Colin
>
>______________
>>Hello,
>>
>> I am wanting to make an application that will require many
>>Infarred senders and receivers. Basically I have 12 different points
>>that i want to be able to individually check to see if there is an
>>object in front. I also want to be able to generally check the
>>distance. I know how to check the distance and to see if there is an
>>object in front like they do on the new BOE-BOTS. What I need to
>>know is how I can wire up all the transmitters and recievers on to
>>one basic stamp 2. I was thinking that I could hook all the IR
>>recievers onto one line and then hook each IR sender on a seperate
>>I/O port using a total of 13 ports. I could send out a pulse
>>individually on each IR sender and check the condition of the
>>receivers. Basically I need to know if it is ok to hook the output
>>of the IR recievers on one line and if this will work ok. Any help,
>>suggestions or ideas, would be most appreciated.
>>
>>Thanks in advanced,
>>
>>Travis
>>
>>
>>To UNSUBSCRIBE, just send mail to:
>> basicstamps-unsubscribe@yahoogroups.com
>>from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>>
>>
>>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>>
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sincerely
Kerry
Admin@M...
WWW server hosting [url=Http://mntnweb.com]Http://mntnweb.com[/url]
Kerry Barlow
p.o. box 21
kirkwood ny
13795
607-775-1132
hundreds of sensors? I think the serial method is best, but I have never
seen a serial interface to I/O ports. Is one sold? The serial to lcd, and
serial to servo boards are great. Why is there not a serial to I/O board sold?
I think a keyboard matrix system for hundreds of sensors would work, but
you still have say 10x10 lines in a matrix for 100 sensors. That is 20 lines
even using that method.
Does anyone have any ideas on large amounts of sensors?
-Kerry
At 02:24 PM 1/30/03 -0500, you wrote:
>Dwayne: WOOT this works fine and saves all the hastle of seperate wires,
>chips and pullup resistors like I was using. I wish I had known this a week
ago.
>I just assumed that +5 normal and 0 detection I could never simply hook the
>output wires together.
>-Kerry
>
>At 02:52 PM 1/29/03 -0700, you wrote:
>>At 04:47 PM 1/29/03 -0500, mntnweb@e... wrote:
>>>Travis: I have a similar application. I only want a detection and do not
>>>care which of my 8 sensor's pick up the object. I use the parallax IR
>>>sensors that have the 3 wires, but any IR sensor such as the tin can styles
>>>would work.
>>
>>You may be able to use a 'wired-OR' configuration if your sensors are open
>>drain output (most are). All you have to do is connect all the outputs
>>together. If any output goes LO, then they all go LO. Saves the cost and
>>hassle of the external gate.
>>
>>I realize you have a working configuration - I'm suggesting an alternative
>>technique the next time you need to do this.
>>
>>dwayne
>>
>>
>>
>>
>>--
>>Dwayne Reid <dwayner@p...>
>>Trinity Electronics Systems Ltd Edmonton, AB, CANADA
>>(780) 489-3199 voice (780) 487-6397 fax
>>
>>Celebrating 18 years of Engineering Innovation (1984 - 2002)
>> .-. .-. .-. .-. .-. .-. .-. .-. .-. .-
>> `-' `-' `-' `-' `-' `-' `-' `-' `-'
>>Do NOT send unsolicited commercial email to this email address.
>>This message neither grants consent to receive unsolicited
>>commercial email nor is intended to solicit commercial email.
>>
>>
>>To UNSUBSCRIBE, just send mail to:
>> basicstamps-unsubscribe@yahoogroups.com
>>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>>
>>
>>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>>
>>
>>
>Sincerely
>Kerry
>Admin@M...
>WWW server hosting [url=Http://mntnweb.com]Http://mntnweb.com[/url]
>Kerry Barlow
>p.o. box 21
>kirkwood ny
>13795
>607-775-1132
>
>
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sincerely
Kerry
Admin@M...
WWW server hosting [url=Http://mntnweb.com]Http://mntnweb.com[/url]
Kerry Barlow
p.o. box 21
kirkwood ny
13795
607-775-1132
mntnweb@e... writes:
> Does anyone have any ideas on large amounts of sensors?
> -Kerry
>
One that works well for me is to use a parallel to serial shift register,
especially if you want response from any one of a group of sensors. Any one
of the sensors gets tripped - your serial output goes from 0 to something
which easy to detect and act accordingly.
Sid Weaver
W4EKQ
Port Richey, FL
[noparse][[/noparse]Non-text portions of this message have been removed]
though? The largest chip is 16 parallal as I recall. I suppose you can
cascade them, but that would be messy at best for a large quantity of inputs.
-Kerry
At 02:38 PM 1/30/03 EST, you wrote:
>In a message dated 01/30/2003 14:33:35 Eastern Standard Time,
>mntnweb@e... writes:
>
>
>> Does anyone have any ideas on large amounts of sensors?
>> -Kerry
>>
>
>One that works well for me is to use a parallel to serial shift register,
>especially if you want response from any one of a group of sensors. Any one
>of the sensors gets tripped - your serial output goes from 0 to something
>which easy to detect and act accordingly.
>
>
>
>Sid Weaver
>W4EKQ
>Port Richey, FL
>
>
>[noparse][[/noparse]Non-text portions of this message have been removed]
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Sincerely
Kerry
Admin@M...
WWW server hosting [url=Http://mntnweb.com]Http://mntnweb.com[/url]
Kerry Barlow
p.o. box 21
kirkwood ny
13795
607-775-1132