LED short distance communications between props
Cluso99
Posts: 18,069
I am going to experiment doing some short (few cms) comms using a single Blue LED at each end. Other colors should work also, although Blue should be less sensitive to external light.
Initially I will use one propeller (protoboard) and 2 cogs, 1 to transmit, one to receive. Then I will get it running in both directions.
Here are some references...
RF ??? short distance comms with the prop & minimum components?·· http://forums.parallax.com/showthread.php?p=851679
LED Touch Sensor·· http://forums.parallax.com/showthread.php?p=589699
Timothy has posted code to do light detection from an LED in the "Led Touch sensor" thread which I might use for a start.
Here is the schematic I am using... P0 and P1 can be any prop pins. Two such circuits will be required. I will face each LED towards each other. It may be necessary to create a pipe between them to eliminate outside light sources??? I have superbright LEDs so will start with resistors around 3K3 and see what results I get.
Please feel free to contribute or experiment along with me · It is just a fill-in project at the moment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Initially I will use one propeller (protoboard) and 2 cogs, 1 to transmit, one to receive. Then I will get it running in both directions.
Here are some references...
RF ??? short distance comms with the prop & minimum components?·· http://forums.parallax.com/showthread.php?p=851679
LED Touch Sensor·· http://forums.parallax.com/showthread.php?p=589699
Timothy has posted code to do light detection from an LED in the "Led Touch sensor" thread which I might use for a start.
Here is the schematic I am using... P0 and P1 can be any prop pins. Two such circuits will be required. I will face each LED towards each other. It may be necessary to create a pipe between them to eliminate outside light sources??? I have superbright LEDs so will start with resistors around 3K3 and see what results I get.
Please feel free to contribute or experiment along with me · It is just a fill-in project at the moment.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
1 Happened at all
2 Got along the wiring and tthen left the led as light
this leaves you having to carry detectors or using the camera on thr phone, which can be tricky if its a few yards away. One mftr started to use leds that gave out the IR along with visible red. It was a great help when fault finding
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
Very handy, if you don't lose the card. I think it used cadmium sulfide or some such metal salt for conversion.
Why don't you substitute a piezo buzzer temporarily in-circuit for testing? Leave the resistor in place, as the piezo buzzer has a high impedance,
at least good enough for testing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH
Post Edited (James Michael Huselton) : 11/15/2009 2:19:57 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
What are you saying? ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH
Post Edited (James Michael Huselton) : 11/15/2009 3:04:44 PM GMT
Have the color be distinguishable from the forward LED. Or just use a bi-color LED.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
38Khz IR. Bit rate is probably limited to about 2400 for data, based on how 1-bit sound comes through very awful
at 9600. Detecting the IR if you can't get one of those Radio Shack cards can use a digital camera's screen.
You'll need to tinker or use an object to get the IR pulses at 38Khz. If the distance leaves something to be desired,
you can use more LEDs with a transistor for supplying more current than the propeller pin.
-Phil
Judging by Clusso's cct, simple on/off keying is the first experiment. If the data quantity is low, then speed is not an issue.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
A pulse of 1mS LED ON is followed by 1mS of Charge, then sampling to determine if the received light was on for 1mS=mark or 0.5mS for space (<=0.7mS is space, >=0.8mS is mark, sampling is done every 100uS). Distance is 3cms and 20degree angle. (missing the link where I found this info)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)
· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
They don't use any carrier just on off keying. Seems to work fine for such low data rates and distances.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
For me, the past is not over yet.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
24 bit LCD Breakout Board coming soon. $21.99 has backlight driver and touch sensitive decoder.
What method can I use to Send a parcel 1-3 ounces to you in about a week or less? I have some goodies to send, and this IR topic is one of them.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH
I don't know if it will help but it's something I used on products over 10 years ago. On the front panel with the normal leds I also had 2 infrared leds which were coupled via transistors back to the CPU's UART. I could use this across the room to upgrade the firmware and read out reports etc. Of course direct sunlight would make it a problem but these things were only ever read indoors anyway. I also did a similar thing with vending machines but the transmitting led could also be modulated to communicate with a portable HP thermal printer that was designed to interface to the IR ports of calculators.
Anyway, I used one IR led as a receiver in photo-voltaic mode (cathode to ground) coupled directly into the base of an npn transistor whose collector would feed into the receive of the cpu. The transmitter led was fed from a pnp so a low from the cpu's transmit line would turn the led on. Fairly simple stuff but it worked. One version even combined the transmit and receive into one led but still two transistors.
It also helps if you put these leds down a little tube but makes it a lot more directional.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
*Peter*
Want a couple?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH