Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
 
Have you tried ignoring the bootloader completely? –  Ignacio Vazquez-Abrams Oct 12 '13 at 1:23
 
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. –  Adam Haile Oct 12 '13 at 1:25
 
The bootloader uses separate resources from the rest of the flash code. –  Ignacio Vazquez-Abrams Oct 12 '13 at 1:38
 
Then forget the bootloader... just need v-usb to work with an ATMega328P –  Adam Haile Oct 12 '13 at 1:39
 
The ATtinyX5 doesn't have a bootloader, so start there. –  Ignacio Vazquez-Abrams Oct 12 '13 at 1:59
add comment

1 Answer

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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