Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Can Teensy do this? Ps2, USB , HID

  1. #1

    Can Teensy do this? Ps2, USB , HID

    Hi and thanks for any input.

    I want to be able to send keystrokes to a PC via USB and PS/2 from a small embedded linux box that only have a USB port.
    Can this be done with Teensy? Would I need any additional hardware?

    thanks for Your help!

  2. #2
    Yes, and yes.

  3. #3
    thanks for your input!
    i have a lot of different approaches on this. with different hardware.
    i am glad that teensy can be the solution.
    will look more into the documentation and start testing

    is this forum the best place to look for advice?

    My Project breaks down to:

    1. send keystrokes from linux box usb port to teensy
    ?what is the smartest way to do this? as a usb serial port?

    2. send recieved scancodes to PC USB
    ?let teensy be a usb hid keyboard?

    3. send recieved scancodes to pc ps/2
    ?how can this be done? looked at a ps2 library for inputing ps2 to teensy. but nothing on having teensy sending ps/2.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,934
    I believe there's a library called ps2dev which emulates a PS/2 device. I have not personally tried it.

    It's available here: (scroll down to the end of the page)

    http://playground.arduino.cc/componentLib/Ps2mouse

  5. #5
    Thanks!

    1. I tried the mouse example included in ps2dev found on that page. But I get errors that I do not understand. Any ideas?

    In file included from C:\arduino-1.0.4\hardware\teensy\cores\teensy/WProgram.h:6,
    from C:\arduino-1.0.4\hardware\teensy\cores\teensy/Arduino.h:1,
    from ps2_mouse.pde:4:
    c:/arduino-1.0.4/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected unqualified-id before 'double'
    c:/arduino-1.0.4/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'
    c:/arduino-1.0.4/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)' before 'double'


    2.
    I see no way to send characters from a Linux USB port to the Teensy 2.0 if I am going to use the Teensy USB to connect to the remote PC.. I have to add a USB to TTL RS232.
    Am I wrong?

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    19,934
    I put a fix into 1.14-rc1 for this error. It should compile with 1.14-rc1.

    http://forum.pjrc.com/threads/23582-...te-1-Available

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •