Arduino Mega PS2, don't work after power on off

Discussion in 'General Electronics Chat' started by Vindhyachal Takniki, Nov 9, 2018.

  1. Vindhyachal Takniki

    Thread Starter Member

    Nov 3, 2014
    465
    14
    1. I am using arduino mega 2560. A PS2 keyboard is connected to read keys & display on segment. Library used is PS2Keyboard.cpp - PS2Keyboard library Written by Christian Weichel <info@32leaves.net>

    2. Issue faced is, when power in turned off & applied again on entire system(MCU+PS2 converter+usb keyboard), keyboard don't get initialized again automatically, that is I am not able to read any keys unless I remove the keyboard from socket & connect again, then I can read again.

    3. There is small USb to PS2 converter used. Keyboard is usb.

    4. what could be issue.

    5. below is keyboard code:

    const int DataPin = 19;
    const int IRQpin = 18;
    PS2Keyboard keyboard;


    keyboard.begin(DataPin, IRQpin);
    keyboard.clear();
    c = keyboard.read();
    Serial.println(c);
     
  2. AlbertHall

    AAC Fanatic!

    Jun 4, 2014
    7,752
    1,903
    It sounds like the problem may be between the keyboard and the USB to PS2 converter.
    Do you have a datasheet for the converter?
     
  3. Vindhyachal Takniki

    Thread Starter Member

    Nov 3, 2014
    465
    14
    no.
    its low cost chinese usb to ps2 convetryer
     
Loading...