-3

I'm beginner in Arduino and recently programmed an Arduino uno board with various PS/2 to USB converters. They work when typing in Serial Monitor of Arduino IDE, but not in the other programs such as Notepad.

enter image description here

How can I connect the board as HID keyboard for usual works with my PS/2 keyboard?

Update:

As @KIIV mentioned in the comments, Uno hasn't native USB and his suggestion is to start with boards such as Leonardo.

I want to ask, what is the straightforward way of using Uno for this purpose?

asked Jul 24, 2023 at 14:33
6
  • 1
    Start with board with native USB and not UNO with USB-to-serial on different chip. Arduino leonardo for example Commented Jul 24, 2023 at 14:42
  • 2
    please do not post a picture of text ... post the text instead Commented Jul 24, 2023 at 15:00
  • Thank you @KIIV, great answer! I googled your guide and found that some types of Arduino haven't built-in USB communication. As new question, is any way to work with Uno, as well? Commented Jul 24, 2023 at 15:09
  • Thank you @jsotola for your hint about site's laws, I'm not so familiar with them. The question and its text has been edited. Commented Jul 24, 2023 at 20:42
  • 1
    I thought I answered this question. Oh, I did... stackoverflow.com/questions/76755556/… Commented Jul 24, 2023 at 22:30

1 Answer 1

2

As the Uno has no generic USB module, it generally works only as a virtual serial device. Without additional hardware you cannot make a Uno work as a USB keyboard. In principle.

A possible solution is the usage of V-USB. This nice library uses bit-banging to realize low-speed USB communication. A USB keyboard commonly is such a low-speed USB device.

Another possible solution is an accompanying software "driver" on the PC. It will receive the key events via the USB serial port and translate them to key events for the operating system. But I'm sure you will not want this.

answered Jul 25, 2023 at 7:38
2
  • I learned new things from your answer, @the busybee. Thanks. Commented Jul 25, 2023 at 15:43
  • @Khabarkhaan You might want to take the tour to learn how this site works. For example, you are not supposed to comment "thanks!" but to mark an answer as accepted. This is the best way to help future visitors on the same issue. Commented Jul 25, 2023 at 16:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.