Help with PS/2 dev library keyboard mouse implementation


hi, trying emulate arduino uno behave ps/2 mouse control computer.  @ point, want have arduino connected 4 buttons make cursor go up, down, left, right.

here's have done far:

i have downloaded arduino 1.0 , put ps/2dev library in proper arduino folder.
i have changed wprograms.h or wconstants.h arduino.h in library files.
i have obtained ps/2 usb converter: http://www.trendnet.com/products/proddetail.asp?prod=155_tu-ps2&cat=49.  know ps/2 implementation requires active adapter, not sure if 1 got active one.
i have read through www.computer-engineering.org, have trouble understanding protocol.

here's problem:

i have connected arduino ps/2 adapter using right pin layout provided www.computer-engineering.org.  when plug in ps/2-usb adapter computer, recognizes connection , proceeds install driver files.  in devices , printers window, new device shows usb keyboard/mouse.  however, when uploaded sample script provided ps/2dev library, nothing happens when plug in ps/2-usb converter.  believe sample script move cursor diagonally.

here's tested:

i have tried connect normal ps/2 mouse ps/2-usb adapter computer.  works fine.  however, not sure if adapter active one.
i have used osccilloscope test out signal coming out of clock , data pin of arduino.  there square wave pulses: clock pin provides burst of believe clock signals; data pin provides pattern of square wave signals.  however, not sure how read wave forms.  know mouse signals 3 bytes, 2nd byte , 3rd byte representing x , y movements respectively.  when measure signal coming out of normal ps/2 mouse, signal similar ones created arduino, different.
i have tried implement keyboard code provided royboy silicon republic.  however, same result ensues.

i have read through library of ps/2 , have trouble understanding read , write function.  both provide clock signal, however, did not understand operation of if loops going = 0 < 8.

i not sure part:
code: [select]
unsigned char  c;
  if( (digitalread(3)==low) || (digitalread(2) == low)) {
    while(mouse.read(&c)) ;
    mousecommand(c);
  }

why pins have low both? though normal operation both high?  also, c coming from?

i not sure casuing problem , hope can shed light on this.

thank time.

i have same problem. know isn't sovling anything, connected laptop, has standard built-in ps/2 port, , doesn't anything. not recognizes it.
i connected 4 pins should, still nothing happens.

so means won't because of adapter think..


Arduino Forum > Using Arduino > Programming Questions > Help with PS/2 dev library keyboard mouse implementation


arduino

Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial