3

I'm developing a keyboard emulator using Digispark Pro (based on Arduino) which uses USB port as the keyboard interface. I haven't programmed it yet because I doubt how should I recognize the chip to Arduino IDE again using USB port after programming the board.

So my question is, how to reprogram Arduino if USB port is already recognized as keyboard HID?

migrated from electronics.stackexchange.com Nov 7 '16 at 17:17

This question came from our site for electronics and electrical engineering professionals, students, and enthusiasts.

  • Is the Arduino running with it's bootloader, or it is programmed with the target app only? – Eugene Sh. Nov 7 '16 at 17:09
  • @EugeneSh. I haven't programmed it yet. Digispark Pro has Arduino bootloader by itself. – joware Nov 7 '16 at 17:15
  • @joware you can make low speed USB keyboard host in software mainly with arduino ng oe better – Dat Han Bag Nov 7 '16 at 17:54
  • 1
    If I'm correct, after a reset, it will first enumerate as an Digispark in the bootloader. Then after a timeout, it will run the main program and enumerate as a keyboard. The only problem might be that you'd have to manually press the reset button when you want to program the chip. – Gerben Nov 7 '16 at 18:20
  • 1
    @Gerben Thank you, this is what I'm asking. So after programming the chip, for reprogramming it, I must connect it to PC and then press reset button and before reaching timeout (about 5 secs I think), I must program it again? – joware Nov 7 '16 at 18:30
1

https://digistump.com/wiki/digispark/tutorials/connectingpro It is suggested that in order to upload using the Arduino IDE you must:

  • Add the repository http://digistump.com/package_digistump_index.json in Preferences > Additional Boards Manager URLs

  • Install Digistump from the boards manager.

  • select the DigiSpark in Tools > Boards.

  • Then this is perhaps the important bit "You do not need to plug in your Digispark Pro before invoking upload" So hit upload before connecting the Digispark.

  • Then connect the Digispark when prompted by the Arduino IDE.

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.