0

If I can, which library to use (an example code will be great). Here is the module: PL2303 USB to TTL Serial Converter Module

6
  • Like Majenko said in their answer. If you don't want to get a board with native USB support for whatever reason, and want to use your Nano, the easiest thing is to have the Nano pretend to be a PS/2 keyboard, at which point you're likely using a PS/2 to USB adapter, rather than a logic level serial to USB adapter. Odds are good that you can acquire a USB to PS/2 adapter locally from someone that has old computer junk, assuming you don't just happen to have one yourself.
    – timemage
    Commented Apr 28, 2021 at 15:34
  • it may be possible ... research FreePIE ... andersmalmgren.github.io/FreePIE
    – jsotola
    Commented Apr 28, 2021 at 15:37
  • @timemage, how?
    – Juraj
    Commented Apr 28, 2021 at 15:42
  • 1
    @timemage, more about how to convert it to USB signal. but now I realized what you mean.
    – Juraj
    Commented Apr 28, 2021 at 15:46
  • 1
    @Juraj, in my comment "PS/2 to USB adapter" refers to this sort of thing, in case that wasn't clear.
    – timemage
    Commented Apr 28, 2021 at 15:48

1 Answer 1

1

No. That is serial. Just like every other USB to TTL Serial converter. The clue is in the name.

You need an Arduino with a dedicated native USB interface, like those based on the ATMega32U4 chip.

Or dedicated software on the PC that will read serial data and emulate keypresses (which is outside the scope of this website).

3
  • Is there any module that lets me do this Commented Apr 28, 2021 at 15:37
  • I posted something to that effect in a comment on your question itself. Had it been worded differently, I might have put it as an answer, or part of one. Now that you have an answer addressing what you actually asked, you should avoid changing the nature of the question though.
    – timemage
    Commented Apr 28, 2021 at 15:56
  • 1
    @WHITE_DEVIL yes there is. It's called an Arduino based around the atmega32u4.
    – Majenko
    Commented Apr 28, 2021 at 16:14

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.