|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
TTL Serial Port and PS2 Mouse Interface
Hi,
Was tinkering with a PS2 mouse in the garage the other day. Noted the two digital encoders, 3 digital inputs and the analog input (roller). Noted that four wires connected it to the PC (pins Vcc, 0, CLK, Signal). Been reading today about the TTL Serial Port on the RC. Any possibility that these two things can be electrical tied together (simply)? With some of the code samples I have seen it could then be possible to add some more capability to the robots. Let me know what you think! Regards, ChuckB |
|
#2
|
||||
|
||||
|
Re: TTL Serial Port and PS2 Mouse Interface
Just took apart a PS2 keyboard....curious if these devices can be used with very little modifications on the circuit side.
Regards, ChuckB |
|
#3
|
|||||
|
|||||
|
Re: TTL Serial Port and PS2 Mouse Interface
Quote:
|
|
#4
|
||||
|
||||
|
Re: TTL Serial Port and PS2 Mouse Interface
Quote:
Sparks |
|
#5
|
||||
|
||||
|
Re: TTL Serial Port and PS2 Mouse Interface
Quote:
|
|
#6
|
||||
|
||||
|
Re: TTL Serial Port and PS2 Mouse Interface
Quote:
The PIC can be configured for synchronous operation. |
|
#7
|
|||||
|
|||||
|
Re: TTL Serial Port and PS2 Mouse Interface
Quote:
|
|
#8
|
|||||
|
|||||
|
Re: TTL Serial Port and PS2 Mouse Interface
Quote:
![]() Last edited by phrontist : 29-12-2004 at 17:28. |
|
#9
|
|||||
|
|||||
|
Re: TTL Serial Port and PS2 Mouse Interface
Most of this has probably been said already, but here goes anyway.
RS-232 (Standard serial, what the COM port on your computer uses) is full duplex with an assumed frequency (though it varies between devices). there are 3 pins needed--Tx, Rx, Gnd. (the other 6 are status indicators). TTL is very similar, just uses 0v and 5v instead of -3v to -25v and 3v to 25v of RS-232. (Beyond Logic has some great RS-232 resources) The PS/2 format is also serial, but is half-duplex and requires a clock. While it can connect to a standard serial setup (either TTL or RS-232), if the clock speed varies a little, you're screwed. A better solution may be to take a cheap PIC/Stamp/etc. and wire the clock to an interupt and the data to a digital IO, and have it convert to/from TTL/RS-232 and PS/2. The actual data format of PS/2 devices has long been standardized (at least for basics). Beyond Logic has an article on the AT Keyboard. Here's a list of Mouse format articles I found via Google:
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|