IR Communication using PDA (rs232)?
Nitrohawk
Posts: 17
Bear with me as I attempt to explain my objective regarding IR and my PDA.
·
My goal is to make use of my PDA for WiFi connectivity and via IR communicate commands to my BS2.
·
The generic set up would be like this:
·
SERVER <--(wifi)--> PDA <--(IrDA)--> BS2
·
I have done a little research and it sounds like I would need to use something like the MCP2150 to do all of the initial discovery mode as well as the handshake. I would then need to create a three wire serial connection with the MCP2150 from the BS2.
·
Here is the datasheet for the MCP2150
http://rocky.digikey.com/WebLib/Microchip/Web%20Data/MCP2150.pdf
·
Is this the best method to make use of the BS2 or is there another method that I have over looked?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
0011010000110010
Nitrohawk
·
My goal is to make use of my PDA for WiFi connectivity and via IR communicate commands to my BS2.
·
The generic set up would be like this:
·
SERVER <--(wifi)--> PDA <--(IrDA)--> BS2
·
I have done a little research and it sounds like I would need to use something like the MCP2150 to do all of the initial discovery mode as well as the handshake. I would then need to create a three wire serial connection with the MCP2150 from the BS2.
·
Here is the datasheet for the MCP2150
http://rocky.digikey.com/WebLib/Microchip/Web%20Data/MCP2150.pdf
·
Is this the best method to make use of the BS2 or is there another method that I have over looked?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
0011010000110010
Nitrohawk
Comments
++
The MAX-3100 will support IrDA, and provides an 8-byte buffer, so it will send and recieve data while the BS2 is doing something else -- if you REALLY want to go that route. Requires an external baud-rate crystal. www.PHAnderson.com used to sell both the chip and crystal in single quantities.
Really, wired RS-232 would be better, if possible.
My PDA will be on the same platform as the BS2, so distance is not an issue.. as a matter of fact, they will be sitting right next to each other.
The PDA is a Dell Axim X5. I have not really looked into cables for the device, mainly because I want to be able to slip my PDA into the robot and take control without having to fidget with cables.
allanlane5, you said something about this MAX-3100, Do you have some links or diagrams of this hooked up with the BS2?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
0011010000110010
Nitrohawk
http://www.maxim-ic.com/appnotes.cfm/appnote_number/3025
Straight from the vendors mouth. Note the BS2 does '3-wire' or "SPI" communication using the SHIFTIN/SHIFTOUT keywords.
And here's a BS2 app directly:
http://www.emesystems.com/BS2IrDA.htm
Oh, and note IR is notorious for being sensitive to sunlight and flourescent lights -- so you might want to 'hide' the link inside a light shield.
That cable is sounding better and better to me.
Post Edited (allanlane5) : 2/7/2006 9:00:05 PM GMT
I will take your suggestions and attempt to implement over the next few days.
My largest stumbling block was how to get the MAX3100 or the MCP2150 to talk to the BS2. That second link:
http://www.emesystems.com/BS2IrDA.htm
put it all together.
Next is to find out what makes a good IR shield. Tinfoil?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
0011010000110010
Nitrohawk
Just take a black Magic Marker to a paper drinking straw, making it opaque, and cut a length that suits your needs.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
Thanks for the suggestion.
I will see if I can make that work!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
0011010000110010
Nitrohawk
This is unlike RF, which is basically 'radio waves'. RF must be blocked with electrical shields, like grounded aluminum foil. IR can be blocked with anything that blocks light -- like a black piece of paper or cardboard.
·
I was under the impression (granted, I have done little actual research) that IR has the ability to penetrate some semi opaque·materials.
But based on my platform, this really should not be such an issue. I can easly build a shield letting in little to no light (natural or man made).
Thanks for all of the pointers.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
0011010000110010
Nitrohawk
You may have been thinking of UV...another kind of light. There are materials that one would think would block any kind of "light" that are quite ineffective at blocking UV...even some that appear totally black.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Truly Understand the Fundamentals and the Path will be so much easier...
My personal experience is that IR can punch through many opaque plastics. For example, ball point pen bodies. I discovered this while trying to make a replacement for the "eye tube" used on Parallax's SumoBots.
Just my $.02
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
If you would like to use the mcp2150 but have no exp with it, Buy a book!LOL
The book is called PDA Robotics and it depicts the PDA controlling a Pic micro controller but it does have alot of info on connecting a PALM OS PDA OR WIN CE PDA to a robot. The pda connects to vishays tfds4500 IRTrans then the IRTrans connects to the mcp2150. I am currently working on the whole MCP2150 BS2 bot. And it is worth the little bit of study.