1

I have an Arduino Nano v3.0 ATmega328p board. I want to make an auto keyboard that types in a string when its plugged in. I have googled and found that these chips doesn't support that feature unlike "pro micro". keyboard.h is not supported with this chips. So is there any alternative way to use it as a HID and emulate keyboard inputs using any other additional shield other than using the built in USB port. Im a noob in this field, please help. Thanks in advance.

  • You can emulate USB on the atmega328. Look at the VUSB project. You just need a few resistors, diodes, and a USB cable. – Gerben Dec 7 '16 at 15:22
  • Thank you @Gerben If you could give me some useful links so that i can get the basic codes, that would help me :) – Susmith Dec 7 '16 at 15:43
  • Just google "vusb" and "vusb keyboard". Maybe some of the Adafruit guides for their pro trinket which uses VUSB. I'm currently on my mobile so linking is kind of difficult. – Gerben Dec 7 '16 at 17:45
-2

I found this link : http://www.practicalarduino.com/projects/virtual-usb-keyboard Is that what you've been looking for?

  • Error compiling for board Arduino Nano. at line #include UsbKeyboard.h . Will nano support this library? – Susmith Dec 7 '16 at 15:39
  • It saying you are missing UsbKeyboard.h in the same directory as your project. – Tagadac Dec 7 '16 at 15:54
  • 1
    @Tagadac although your answer may point to an answer of the original question, this is not the kind of answer expected on Arduino.SE: we expect you to provide more details than just a simple link. You can possibly try to sum up, within your answer, the important points mentioned in the link you provide (and still keep that link as a reference). – jfpoilpret Dec 7 '16 at 21:09
  • 1
    Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Feel free to add a more complete answer that directly answers the question. At least summarize how the virtual USB idea works. :) – Nick Gammon Dec 8 '16 at 20:11
  • 1
    An answer can't be just a link. Explain the answer and maintain the link as reference, please. – aalku Nov 17 '17 at 10:30

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.