interfacing BS2 with serial mouse?
Mike VS
Posts: 1
I'm trying to interface my BS2 with an old serial mouse, but I·can't figure out the serial comminications.·(I'm hoping to hook the x and y axis encoders·up to the wheels of my boe-bot kit to do dead reckoning.) The docs I've found for serial mice indicates that they communicate 1200 baud, 7N1 (see http://www.cs.net/lucid/mouse.htm). I cooked up a little program on my computer that validates this, and I can see the mouse data coming back correctly.
I tried to read the mouse data with my BS2, however I seem to be stuck, because·the·docs for SERIN don't show how to do 7 bits with no parity. It seems like I can only either use 8 bits, no parity or 7 bits even parity. Any way to do this, or should I find a different way to add wheel encoders?
thanks!
Mike.
·
I tried to read the mouse data with my BS2, however I seem to be stuck, because·the·docs for SERIN don't show how to do 7 bits with no parity. It seems like I can only either use 8 bits, no parity or 7 bits even parity. Any way to do this, or should I find a different way to add wheel encoders?
thanks!
Mike.
·
Comments
This may also work for you.
http://www.multilabs.net/ezMOUSE.html
Alan
Alternatively, Parallax's Propeller will handle all this and the code to support the mouse is already written as an object. With the Propeller, you can have Video as well and 32 pins of I/O to play with. At $25 for the 40pin DIP version, it is competative with a lot more growth options.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"If you want more fiber, eat the package.· Not enough?· Eat the manual."········
http://www.epanorama.net/documents/pc/mouse.html
At the moment I'm sniffing at an old·Logitech mouse that I·want to·abuse · as·a pulse counter to count the kW pulses of my home 230V system. If the·light·flashes 1000 times 1 KwH has been consumed.
I'll try first to manage this via the serial port. when this work I'll think of buying a BS2 and a PINK device. In the same closed/cabinet the router is located so this is a first step up to some Home Domotica.
Regards,
Marcel
Post Edited (Simplemind) : 7/11/2006 2:12:31 PM GMT