user29147: I bought a DigiSpark (it is a development board based on the ATtiny85 microcontroller) yesterday and I wrote my first script.
I have no problems to run it on my personal PC (which I am using to program my DigiSpark). The problem is when I try to plug my DigiSpark to another PC, which doesn't have DigiSpark drivers installed. I tried to run it on two different PCs (Windows 7) and Windows just can not find DigiSpark drivers so my script does not run.
Of course I tried to plug in to different USB ports - unfortunately it did not help.
Any ideas what can I do to make my DigiSpark run on other PC without installing drivers by myself?
Thank you.

user10394: You will need to install the drivers before you can use it on other computers.
The drivers tell a Windows PC how to talk to the device.  The device is not a generic device so Windows can't use a fall back driver, like it could with a keyboard or monitor.

user33714: not true, https://www.reddit.com/r/arduino/comments/5ii5mv/why_digispark_is_not_automatically_recognized_on/
Yes, I try to get the DigiSpark to look like a keyboard to a host PC and execute a series of keystrokes. Here is my script: http://pastebin.com/dY05nbGY
permalinkembedparent
[–]cptskippy 3 points 5 months ago  
Ok, you're using the DigiKeyboard library so that should make the Digispark show up as HID device. When you plug the DigiSpark into a PC where you haven't installed the drivers, does a "HID Keyboard Device" appear in the Device Manager under the Keyboards branch?
The Digispark powers up and executes the program immediately. My guess is that you probably need a delay in your code to allow the host PC to setup the interface.
#include "DigiKeyboard.h"

void setup() {
    DigiKeyboard.delay(5000);  // Wait 5 seconds before proceeding
}

int limit = 1;
int current = 0;

void loop() {
    DigiKeyboard.update();

    if (current < limit) {
        DigiKeyboard.sendKeyStroke(0);

        DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
        DigiKeyboard.delay(100);
        DigiKeyboard.println("ipconfig");
        current++;
    }

    DigiKeyboard.delay(5000);
}

permalinkembedparent
[–]readerpl[S] 2 points 5 months ago 
You are the best!!! IT WORKS!!!!!

user33761: the digi spark make use of a bitbanged usb. (emulated usb).
because of this a new pc wont see a HID keyboard but a digi spark. only when the driver is installed it will automaticly switch to the HID driver for the emulated usb stack.
they pro micro has a hardware usb stack. this wil directly show a HID keyboard and work right away.

29147: <p>I bought a DigiSpark (it is a development board based on the ATtiny85 microcontroller) yesterday and I wrote my first script.</p>

<p>I have no problems to run it on my personal PC (which I am using to program my DigiSpark). The problem is when I try to plug my DigiSpark to another PC, which doesn't have DigiSpark drivers installed. I tried to run it on two different PCs (Windows 7) and Windows just can not find DigiSpark drivers so my script does not run.</p>

<p>Of course I tried to plug in to different USB ports - unfortunately it did not help.</p>

<p>Any ideas what can I do to make my DigiSpark run on other PC without installing drivers by myself?</p>

<p>Thank you.</p>
 10394: <p>You will need to install the drivers before you can use it on other computers.
The drivers tell a Windows PC how to talk to the device.  The device is not a generic device so Windows can't use a fall back driver, like it could with a keyboard or monitor.</p>
 33714: <p>not true, <a href="https://www.reddit.com/r/arduino/comments/5ii5mv/why_digispark_is_not_automatically_recognized_on/" rel="nofollow noreferrer">https://www.reddit.com/r/arduino/comments/5ii5mv/why_digispark_is_not_automatically_recognized_on/</a><br>
Yes, I try to get the DigiSpark to look like a keyboard to a host PC and execute a series of keystrokes. Here is my script: <a href="http://pastebin.com/dY05nbGY" rel="nofollow noreferrer">http://pastebin.com/dY05nbGY</a>
permalinkembedparent
[–]cptskippy 3 points 5 months ago  </p>

<p>Ok, you're using the DigiKeyboard library so that should make the Digispark show up as HID device. When you plug the DigiSpark into a PC where you haven't installed the drivers, does a "HID Keyboard Device" appear in the Device Manager under the Keyboards branch?</p>

<p>The Digispark powers up and executes the program immediately. My guess is that you probably need a delay in your code to allow the host PC to setup the interface.</p>



<pre class="lang-cpp prettyprint-override"><code>#include "DigiKeyboard.h"

void setup() {
    DigiKeyboard.delay(5000);  // Wait 5 seconds before proceeding
}

int limit = 1;
int current = 0;

void loop() {
    DigiKeyboard.update();

    if (current &lt; limit) {
        DigiKeyboard.sendKeyStroke(0);

        DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
        DigiKeyboard.delay(100);
        DigiKeyboard.println("ipconfig");
        current++;
    }

    DigiKeyboard.delay(5000);
}
</code></pre>

<p>permalinkembedparent
[–]readerpl[S] 2 points 5 months ago 
You are the best!!! IT WORKS!!!!!</p>
 33761: <p>the digi spark make use of a bitbanged usb. (emulated usb).
because of this a new pc wont see a HID keyboard but a digi spark. only when the driver is installed it will automaticly switch to the HID driver for the emulated usb stack.
they pro micro has a hardware usb stack. this wil directly show a HID keyboard and work right away.</p>
