4
\$\begingroup\$

I've been trying to figure out how to use v-usb on an ATMega328P but pretty much all the tutorials I've found are for ATTiny or use the ATMega328P but use a modified bootloader. I don't actually care at all about being able to program the chip over this USB connection and would rather just use the FTDI connection. I just want to have USB HID capability once the sketch starts.

Does anyone know how to use v-usb and still have complete compatibility with Arduino and use its default bootloader??

Edit: The bootloader issue may be moot. It may just work with the default. In that case, great. But I would still love to be pointed to something that shows exactly how to setup the hardware and firmware to get v-usb working on an ATMega.

\$\endgroup\$
5
  • \$\begingroup\$ Have you tried ignoring the bootloader completely? \$\endgroup\$ Oct 12, 2013 at 1:23
  • \$\begingroup\$ Ignoring it as in not using it? Or just not worrying about it and trying the code anyways? I do need some sort of bootloader. \$\endgroup\$
    – Adam Haile
    Oct 12, 2013 at 1:25
  • \$\begingroup\$ The bootloader uses separate resources from the rest of the flash code. \$\endgroup\$ Oct 12, 2013 at 1:38
  • \$\begingroup\$ Then forget the bootloader... just need v-usb to work with an ATMega328P \$\endgroup\$
    – Adam Haile
    Oct 12, 2013 at 1:39
  • \$\begingroup\$ The ATtinyX5 doesn't have a bootloader, so start there. \$\endgroup\$ Oct 12, 2013 at 1:59

1 Answer 1

1
\$\begingroup\$

vusb-for-arduino This is actually quite an old project (it works with arduino 0020) but it can be used as a good reference and probably easily ported to the newer IDE

Also look here its a newer project but it only has keyboard

\$\endgroup\$

Your Answer

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

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