Show Posts
Pages: [1]
1  Using Arduino / Installation & Troubleshooting / Re: Connecting to Windows via USB on: January 29, 2013, 11:03:40 pm
Thank you, James. I'll think about writing my own driver.

Anybody else? Did anybody try to communicate with Arduino devices from Windows, without installing the IDE and updating the drivers?
2  Using Arduino / Installation & Troubleshooting / Re: Connecting to Windows via USB on: January 29, 2013, 08:56:48 pm
I was right after all, it's not that simple. Dude, thanks for the reply, but how dow I know "whether the serial makes sense"?
I need to transfer those little things we call "bytes" between Arduino and PC.
Can you please give me a link to an example of a PC program, preferably in C++, which talks to Arduino over USB without a driver?
I could never find anything which shows how to talk to USB directly, there is always a driver which translates into it.

And I'm just curious, why Micro would be different?
What if I find out that I need to switch to another model, with more inputs or more memory? Is it a whole new story?

Thanks for your help.
3  Using Arduino / Installation & Troubleshooting / Re: Connecting to Windows via USB on: January 29, 2013, 12:46:41 pm
Now I see how helpful it is ask a question here: as soon as you post a question, an answer pops up all by itself.
I have no idea why would people suggest to update the driver manually from a control panel and by looking for it in the Arduino IDE folder.
Why not just run a setup executable from FTDI site ? ( http://www.ftdichip.com/Drivers/VCP.htm )

I guess now I need to find a way to uninstall the IDE driver and try to install the FTDI driver from scratch.
Hope it works.
Please let me know if you have tried installing the drivers this way on a new computer, I mean without installing the Arduino IDE first.
4  Using Arduino / Installation & Troubleshooting / Connecting to Windows via USB on: January 29, 2013, 12:16:40 pm
Let's say I want to give the world a revolutionary musical instrument based on Arduino (naturally).
This instrument needs to be connected to any Windows PC by musicians, not computer programmers or other nerds like me.
I don't wan't to insult the good musicians by asking them to go to the Control Panel, middle-tripple click on USB Serial port in the Administrative Computer Management, find the driver, download an updated driver, try again, and then trow the revolutionary music istrument out of the window.

Is there a way I can make a setup program, which would install the correct driver without any user interaction?
Or maybe I don't even need a driver? Maybe I can somehow use the default device, which is installed when I connect the Arduino?
I want my customers to run the setup program once, connect the USB cable, and never think about the connection again.

I did do some research and could not find anything which I can easily incorporate into my setup.
I'm planning to use Arduino Micro, if it matters.

Thank you for all your helpful responses.
5  Using Arduino / LEDs and Multiplexing / Good look-up table for LED brightness on: March 15, 2012, 01:37:46 pm
I have the RGB LED shield with super-bright color LED's. I was looking for a good translation table of pulse width (analogWrite on the PWM pins) for it.
I have found a good formula and made a little function based on it. Below is the C program and the resulting table. The LED brightness output looks linear and as smooth as real Guiness.

Just do "analogWrite(_ledTable(color))" instead of "analogWrite(color)"

/* Pulse width to brightness tables. Calculated with X=2.5
    for(int i = 0, j = 1; i < 256; i++, j++) {
        int v = (int)(pow((double)i / 255.0, X) * 255.0 + 0.5);
        if(v == 0 && i > 0) // Have 0 only for 0, at least 1 for anything above
            v = 1;

        printf("%3d, ", v);
        if(j % 16 == 0 && j > 1)
            printf("\n");
    }
*/
byte _ledTable[256] = {
  0,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,
  1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,   1,
  1,   2,   2,   2,   2,   2,   2,   2,   2,   3,   3,   3,   3,   3,   4,   4,
  4,   4,   4,   5,   5,   5,   5,   6,   6,   6,   6,   7,   7,   7,   7,   8,
  8,   8,   9,   9,   9,  10,  10,  10,  11,  11,  12,  12,  12,  13,  13,  14,
 14,  15,  15,  15,  16,  16,  17,  17,  18,  18,  19,  19,  20,  20,  21,  22,
 22,  23,  23,  24,  25,  25,  26,  26,  27,  28,  28,  29,  30,  30,  31,  32,
 33,  33,  34,  35,  36,  36,  37,  38,  39,  40,  40,  41,  42,  43,  44,  45,
 46,  46,  47,  48,  49,  50,  51,  52,  53,  54,  55,  56,  57,  58,  59,  60,
 61,  62,  63,  64,  65,  67,  68,  69,  70,  71,  72,  73,  75,  76,  77,  78,
 80,  81,  82,  83,  85,  86,  87,  89,  90,  91,  93,  94,  95,  97,  98,  99,
101, 102, 104, 105, 107, 108, 110, 111, 113, 114, 116, 117, 119, 121, 122, 124,
125, 127, 129, 130, 132, 134, 135, 137, 139, 141, 142, 144, 146, 148, 150, 151,
153, 155, 157, 159, 161, 163, 165, 166, 168, 170, 172, 174, 176, 178, 180, 182,
184, 186, 189, 191, 193, 195, 197, 199, 201, 204, 206, 208, 210, 212, 215, 217,
219, 221, 224, 226, 228, 231, 233, 235, 238, 240, 243, 245, 248, 250, 253, 255 };
6  Using Arduino / LEDs and Multiplexing / Do I need to de-bounce buttons on Mux Shield? on: March 15, 2012, 01:31:00 pm
If I connect a regular push button (momentary switch) to the Max Shield, do I need to de-bounce it in the code or the shield will take care of it in it's analog converter?
Please andwer only if you know for sure or have tried it. I know the theory, I just want to save some time, which I have very little of.
I promise to drink at least one bottle of beer to the health of every meaningful responder.

Thank you.
Pages: [1]