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 Apr 28 at 15:34
  • it may be possible ... research FreePIE ... andersmalmgren.github.io/FreePIE – jsotola Apr 28 at 15:37
  • @timemage, how? – Juraj Apr 28 at 15:42
  • 1
    @timemage, more about how to convert it to USB signal. but now I realized what you mean. – Juraj Apr 28 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 Apr 28 at 15:48
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 – WHITE_DEVIL Apr 28 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 Apr 28 at 15:56
  • 1
    @WHITE_DEVIL yes there is. It's called an Arduino based around the atmega32u4. – Majenko Apr 28 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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